NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/39255: Cannot run dynamic Tru64 executable under COMPAT_OSF1 anymore



>Number:         39255
>Category:       kern
>Synopsis:       Cannot run dynamic Tru64 executable under COMPAT_OSF1 anymore
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 31 12:45:00 +0000 2008
>Originator:     Nicolas Joly
>Release:        NetBSD 4.99.71
>Organization:
Institut Pasteur
>Environment:
System: NetBSD thanos.sis.pasteur.fr 4.99.71 NetBSD 4.99.71 (GENERIC-$Revision: 
1.323 $) #11: Thu Jul 31 13:46:41 CEST 2008 
njoly%thanos.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.alpha/sys/arch/alpha/compile/THANOS
 alpha
Architecture: alpha
Machine: alpha
>Description:
I just noticed that -current, with COMPAT_OSF1 cannot run dynamic Tru64
executables, while static ones have no problems. The problem seems to be
that it cannot find the run-time loader anymore (installed from pkgsrc
emulators/osf1_lib package)..

A simple `Hello World' program exhibit the problem.

njoly@thanos [~]> file ./hello
hello: ECOFF alpha demand paged not stripped - version 2864.
njoly@thanos [~]> ktrace -di ./hello
ktrace: exec of './hello' failed: No such file or directory
njoly@thanos [~]> kdump | head
   761      1 ktrace   EMUL  "netbsd"
   761      1 ktrace   CALL  execve(0x1fffffd9b,0x1ffffdbb0,0x1ffffdbc0)
   761      1 ktrace   NAMI  "./hello"
   761      1 ktrace   NAMI  "/emul/osf1"
   761      1 ktrace   NAMI  "/emul/osf1/sbin/loader"
   761      1 ktrace   NAMI  "/sbin/loader"
   761      1 ktrace   RET   execve -1 errno 2 No such file or directory
   761      1 ktrace   CALL  write(2,0x1ffffd490,8)
   761      1 ktrace   GIO   fd 2 wrote 8 bytes
[...]

njoly@thanos [~]> stat /emul/osf1/sbin/loader
2051 91089 -rwxr-xr-x 1 root wheel 381632 139264 "Jul 31 14:27:09 2008" "Jul 25 
15:37:53 2008" "Jul 25 15:37:53 2008" "Jan  1 01:00:00 1970" 8192 288 0 
/emul/osf1/sbin/loader
njoly@thanos [~]> file /emul/osf1/sbin/loader
/emul/osf1/sbin/loader: ECOFF alpha demand paged stripped - version 2816.

The same program statically compiled, works flawlessly.

njoly@thanos [~]> file ./hello2 
hello2: ECOFF alpha demand paged not stripped - version 2816.
njoly@thanos [~]> ./hello2 
Hello World

>How-To-Repeat:
Try to run any dynamic Tru64 executable under COMPAT_OSF1.
>Fix:
n/a



Home | Main Index | Thread Index | Old Index