Subject: port-i386/32424: compat_svr4 fails to execute Solaris 10 binaries
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <jakethompson1@gmail.com>
List: netbsd-bugs
Date: 01/01/2006 04:10:00
>Number:         32424
>Category:       port-i386
>Synopsis:       compat_svr4 fails to execute Solaris 10 binaries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 01 04:10:00 +0000 2006
>Originator:     Jake Thompson
>Release:        3.0
>Organization:
-
>Environment:
NetBSD athlon 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
When attempting to execute a Solaris 10 x86 binary on NetBSD with compat_svr4 enabled, the binary immediately aborts with a memory fault and a core dump:

athlon# ktrace /emul/svr4/usr/bin/csh                                          
Memory fault (core dumped) 

The kdump output is as follows:

   413 ktrace   EMUL  "netbsd"
   413 ktrace   CALL  execve(0xbfbfeb2f,0xbfbfea8c,0xbfbfea94)
   413 ktrace   NAMI  "/emul/svr4/usr/bin/csh"
   413 ktrace   NAMI  "/emul/svr4/usr/lib/ld.so.1"
   413 ktrace   NAMI  "/emul/svr4"
   413 ktrace   NAMI  "/emul/svr4/usr/lib/ld.so.1"
   413 csh      EMUL  "svr4"
   413 csh      RET   execve JUSTRETURN
   413 csh      PSIG  SIGSEGV SIG_DFL
   413 csh      NAMI  "csh.core"

>How-To-Repeat:
Attempt to execute any Solaris 10 (x86) binary.  Even the dynamic loader (/lib/ld.so.1) will abort with similar kdump output.
>Fix: