OSF/1 binaries on linux/axp bug (fs/exec.c)

Bob McElrath (mcelrath@draal.physics.wisc.edu)
Wed, 21 Oct 1998 12:11:47 -0500 (CDT)


The linux/axp implementation of loading OSF/1 binaries seems to have a bug.
The loading works fine, but generates the following message:

513:/sbin/loader: Fatal Error: loader cannot be invoked directly

After perusing fs/exec.c I beleve the reason to be that /sbin/loader gets
run twice, once for the original application, and a second time
*for*itself*. ps reveals:

(0)<mcelrath@draal:/home/mcelrath> netscape &
[1] 512
513:/sbin/loader: Fatal Error: loader cannot be invoked directly
(0)<mcelrath@draal:/home/mcelrath> ps aux | grep loader
mcelrath 512 0.6 6.5 22920 16688 ? S 11:48 0:01 /sbin/loader
mcelrath 513 0.0 0.0 0 0 ? Z 11:48 0:00 (loader <zombie>)

Thus, I surmise that /sbin/loader is executed a *second* time, with itself
as its argument, and subsequently fails and gives the above message.

Can someone more familiar with the data structures involved in loading and
executing binaries possibly look at this and eliminate the second execution
of /sbin/loader? I can test any patches that anyone comes up with.

-- Bob

./'^`\._./'~`\._./'~`\._./'~`\._./'#`\._./'~`\._./'~`\._./'~`\._./'^`\.
/ Rube Goldberg? Bah! Amateur! I give you..Windows 98! Linux everywhere \
| Linux, because everyone's work is mission critical. ANYTHING inside. |
|_Bob McElrath (mcelrath@wisconsin.cern.ch) Univ. of Wisconsin at Madison_|
\.___________________________________________________________________./

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/