Subject: kern/10837: no COMPAT_AOUT -> "No ld.so" on one machine
To: None <gnats-bugs@gnats.netbsd.org>
From: None <smd@ebone.net>
List: netbsd-bugs
Date: 08/15/2000 09:17:16
>Number:         10837
>Category:       kern
>Synopsis:       no COMPAT_AOUT -> "No ld.so" on one machine
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 15 09:18:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Sean Doran
>Release:        CVS 2000 08 15
>Organization:
Sean Doran <smd@ebone.net>
Development Manager, Ebone Inc., Copenhagen Denmark
>Environment:
	
System: NetBSD sean.ebone.net 1.5E NetBSD 1.5E (EBONE) #0: Tue Aug 15 16:10:27 CEST 2000 smd@sean.ebone.net:/usr/src/sys/arch/i386/compile/EBONE i386

no COMPAT_AOUT

versus

NetBSD 1.5E (SCREAM) #0: Thu Aug 10 04:03:43 CEST 2000
and
NetBSD 1.5E (NLAPTOY) #0: Sun Aug 13 22:50:51 CEST 2000

no COMPAT_AOUT


>Description:
	In the first machine, which is not really different in any
	obvious way from the other two in terms of kernel config,
	I get this:

 22484 ktrace   NAMI  "/usr/pkg/bin/setiathome"
 22484 setiathome EMUL  "netbsd"
 22484 setiathome RET   execve JUSTRETURN
 22484 setiathome CALL  open(0x10f0,0,0)
 22484 setiathome NAMI  "/usr/libexec/ld.so"
 22484 setiathome RET   open -1 errno 2 No such file or directory
 22484 setiathome CALL  write(0x2,0x1103,0xa)
 22484 setiathome GIO   fd 2 wrote 10 bytes
       "No ld.so
        \0"
 22484 setiathome RET   write 10/0xa
 22484 setiathome CALL  exit(0x1)

In the others, setiathome runs normally.  There is no "ld.so" to be found,
other than in /emul/aout/usr/libexec.

Has the absence of "options COMPAT_AOUT" not led to a COMPAT_AOUT-free
kernel in the slightly older kernels?   Or am I lost, clueless, whatever?
I'm pretty sure I did an rm -rf /sys/arch/i386/compile/{NLAPTOY,SCREAM}
before building the COMPAT_AOUT-free kernels...

Here's what one of them says:

  6504 ktrace   NAMI  "/usr/pkg/bin/setiathome"
  6504 setiathome EMUL  "netbsd"
  6504 setiathome RET   execve JUSTRETURN
  6504 setiathome CALL  open(0x10f0,0,0)
  6504 setiathome NAMI  "/emul/aout/usr/libexec/ld.so"
  6504 setiathome NAMI  "/emul/aout"
  6504 setiathome NAMI  "/emul/aout/usr/libexec/ld.so"
  6504 setiathome RET   open 3
       ...

>How-To-Repeat:
	Boot a kernel without COMPAT_AOUT on "EBONE", watch it not work.
	Boot a kernel without COMPAT_AOUT on "NLAPTOY", watch it work.
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: