NetBSD Problem Report #39255

From njoly@thanos.sis.pasteur.fr  Thu Jul 31 12:41:28 2008
Return-Path: <njoly@thanos.sis.pasteur.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AFF3963B99A
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 31 Jul 2008 12:41:28 +0000 (UTC)
Message-Id: <20080731124126.0CE6A15C05@thanos.sis.pasteur.fr>
Date: Thu, 31 Jul 2008 14:41:25 +0200 (CEST)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@gnats.NetBSD.org
Subject: Cannot run dynamic Tru64 executable under COMPAT_OSF1 anymore
X-Send-Pr-Version: 3.95

>Number:         39255
>Category:       kern
>Synopsis:       Cannot run dynamic Tru64 executable under COMPAT_OSF1 anymore
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    njoly
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 31 12:45:00 +0000 2008
>Closed-Date:    Thu Nov 20 12:29:59 +0000 2008
>Last-Modified:  Thu Nov 20 12:29:59 +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:/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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->njoly
Responsible-Changed-By: njoly@NetBSD.org
Responsible-Changed-When: Sat, 15 Nov 2008 00:40:50 +0000
Responsible-Changed-Why:
I'll handle my PR.


From: Nicolas Joly <njoly@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39255 CVS commit: src/sys/compat/osf1
Date: Sat, 15 Nov 2008 00:49:53 +0000 (UTC)

 Module Name:	src
 Committed By:	njoly
 Date:		Sat Nov 15 00:49:53 UTC 2008

 Modified Files:
 	src/sys/compat/osf1: osf1_exec_ecoff.c

 Log Message:
 Do not call namei anymore, but use the result from the previous
 emul_find_interp call instead. This make dynamic executables work
 again under compat OSF1 (fix PR/39255).

 ok by christos.


 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.21 src/sys/compat/osf1/osf1_exec_ecoff.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: njoly@NetBSD.org
State-Changed-When: Wed, 19 Nov 2008 11:13:54 +0000
State-Changed-Why:
netbsd-5 pullup requested


From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39255 CVS commit: [netbsd-5] src/sys/compat/osf1
Date: Thu, 20 Nov 2008 03:25:42 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Thu Nov 20 03:25:42 UTC 2008

 Modified Files:
 	src/sys/compat/osf1 [netbsd-5]: osf1_exec_ecoff.c

 Log Message:
 Pull up following revision(s) (requested by njoly in ticket #93):
 	sys/compat/osf1/osf1_exec_ecoff.c: revision 1.21
 Do not call namei anymore, but use the result from the previous
 emul_find_interp call instead. This make dynamic executables work
 again under compat OSF1 (fix PR/39255).
 ok by christos.


 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.20.24.1 src/sys/compat/osf1/osf1_exec_ecoff.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: njoly@NetBSD.org
State-Changed-When: Thu, 20 Nov 2008 12:29:59 +0000
State-Changed-Why:
Fixed in -current and netbsd-5.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.