Subject: kern/27190: SunOS 5.5.1 binary does not run on 2.0_RC3/i386
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mochid@netside.co.jp>
List: netbsd-bugs
Date: 10/08/2004 16:38:21
>Number:         27190
>Category:       kern
>Synopsis:       SunOS 5.5.1 binary does not run on 2.0_RC3/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 08 07:49:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     MOCHIDA Shuji
>Release:        NetBSD netbsd-2-0 2.0_RC3 supped 2004 Oct 8 JST
>Organization:
NETside Technologies Inc.
>Environment:
NetBSD coco 2.0_RC3 NetBSD 2.0_RC3 (ROR2_PCIBIOS) #0: Fri Oct  8 15:47:40 JST 2004  mochid@coco:/kernelmake/release-2-0/i386/obj/i386-GENERIC-1.595.2.11/ROR2_PCIBIOS i386

>Description:
	zsh (compiled on SunOS 5.5.1(?)) and netscape 4.75 does not run.
	These binaries run on 1.6.2_STABLE at 2004 Jun 14 without problem.

% uname -srp
NetBSD 2.0_RC3 i386
% strings /netbsd | grep COMPAT_SVR4
_CFG_options \011COMPAT_SVR4\011# binary compatibility with SVR4
% file ./zsh
./zsh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
% ./zsh
zsh: segmentation fault (core dumped)  ./zsh
% ktrace ./zsh
zsh: segmentation fault (core dumped)  ktrace ./zsh
% kdump 
   680 ktrace   EMUL  "netbsd"
   680 ktrace   CALL  execve(0xbfbff5b3,0xbfbff4dc,0xbfbff4e4)
   680 ktrace   NAMI  "./zsh"
   680 ktrace   NAMI  "/emul/svr4/usr/lib/ld.so.1"
   680 ktrace   NAMI  "/emul/svr4"
   680 ktrace   NAMI  "/emul/svr4/usr/lib/ld.so.1"
   680 zsh      EMUL  "svr4"
   680 zsh      RET   execve JUSTRETURN
   680 zsh      PSIG  SIGSEGV SIG_DFL
   680 zsh      NAMI  "zsh.core"

>How-To-Repeat:
	run SunOS 5.x/x86 binary on COMPAT_SVR4 enabled 2.0_RC3 i386 kernel.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: