Subject: port-sparc64/16041: a chroot to /emul/netbsd32 will panic the kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rslr.free.fr@netbsd.org>
List: netbsd-bugs
Date: 03/24/2002 15:22:00
>Number:         16041
>Category:       port-sparc64
>Synopsis:       a chroot to /emul/netbsd32 will panic the kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 24 15:22:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     de SAINT LEGER Rodolphe
>Release:        current (ZA and ZC kernel)
>Organization:
none
>Environment:
NetBSD deedlit 1.5ZC NetBSD 1.5ZC (DEEDLIT) #0: Thu Mar 14 01:44:27 CET 2002     root@akima:/usr/src/sys/arch/sparc64/compile/DEEDLIT sparc64
>Description:
When using a 64 bit kernel, it is possible to emulate 32 bit netbsd sparc binaries.
When we chroot to /emul/netbsd32, it works  (with sometimes segfaults) and then panics once we launch
a command

I've tryied to setup a symlink in the netbsd32 directory to itself, and it doesn't work
ln -s / /emul/netbsd32/emul/netbsd32
>How-To-Repeat:
# chroot /emul/netbsd32 ksh
# id

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: