Subject: port-alpha/12185: OSF1 emulation fails for dynamically linked programs
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nathanw@mit.edu>
List: netbsd-bugs
Date: 02/11/2001 09:43:17
>Number: 12185
>Category: port-alpha
>Synopsis: OSF1 emulation fails for dynamically linked programs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-alpha-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 11 09:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Nathan J. Williams
>Release: NetBSD-current of 2001-02-10
>Organization:
Massachvsetts Institvte of Technology
>Environment:
System: NetBSD daffy-duck.putnam 1.5R NetBSD 1.5R (DAFFY-DUCK) #131: Sun Feb 11 00:28:03 EST 2001 nathanw@daffy-duck.putnam:/u1/nbsd/src/sys/arch/alpha/compile/DAFFY-DUCK alpha
Architecture: alpha
Machine: alpha
>Description:
OSF/1 emulations die the moment they start up /sbin/loader. Static
binaries seem to work. This was not true with sources as of
2001-01-09.
34 daffy-duck:nathanw>./wc
Abort
ktracing such a program shows:
36 daffy-duck:nathanw>ktrace -di ./wc
Abort
37 daffy-duck:nathanw>kdump
620 ktrace EMUL "netbsd"
620 ktrace CALL execve(0x1fffff63b,0x1fffff468,0x1fffff478)
620 ktrace NAMI "./wc"
620 ktrace NAMI "/emul/osf1/sbin/loader"
620 ktrace NAMI "/emul/osf1"
620 ktrace NAMI "/emul/osf1/sbin/loader"
With a kernel built with DEBUG enabled, the following is printed:
vmcmd[0] = 0x3ff80000000/0x1e000 @ 0
execve: vmcmd 0 failed: 22
A little more digging shows that the failing vmcmd is
vmcmd_map_pagedvn(), which is getting an error code of 3
(KERN_NO_SPACE) from uvm_map().
>How-To-Repeat:
Install OSF/1 compat files and upgrade to current. Try to run
a dynamically linked binary (say, Netscape 4.7, or /usr/bin/wc from a
Digital Unix 4.0F box). Notice that it dies with "Abort".
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: