From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21903 invoked from network); 21 Oct 1998 22:02:51 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 21 Oct 1998 22:02:51 -0000 Received: from draal.physics.wisc.edu (mcelrath@draal.physics.wisc.edu [128.104.223.134]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA13353 for ; Wed, 21 Oct 1998 17:54:00 -0400 Received: from localhost (mcelrath@localhost) by draal.physics.wisc.edu (8.8.7/8.8.7) with SMTP id LAA00525 for ; Wed, 21 Oct 1998 11:53:42 -0500 Date: Wed, 21 Oct 1998 11:53:42 -0500 (CDT) From: Bob McElrath X-Sender: mcelrath@draal To: axp-list@redhat.com Subject: Re: DU binaries and /sbin/loader (argv[0] problem?) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Some observations...been-a-hacking. /sbin/loader gives the message: 513:/sbin/loader: Fatal Error: loader cannot be invoked directly where 513 is the PID of the process. ps reveals: (0) ps aux | grep loader mcelrath 512 4.3 6.1 22120 15728 ? S 11:48 0:01 /sbin/loader mcelrath 513 0.0 0.0 0 0 ? Z 11:48 0:00 (loader ) Thus, the loader error is generated by a *SECOND* invocation of /sbin/loader. The first succeeds, and loads netscape (or other program), but for some reason the kernel tries to load it *again*. The zombie process can't be killed... any ideas? Anyone know what a zombie process is? On Tue, 20 Oct 1998, Herbert Riedel wrote: > On Tue, 20 Oct 1998, Aideen McConville wrote: > > > I've tried running some 3.2 DU binaries under RH 5.1 (both 2.0.34 and > > 2.0.35 kernels) and don't know what to do about the "/sbin/loader > > being passed as argv[0]" problem. > > > --- exec.c Tue Jan 20 17:57:24 1998 > > +++ exec.c~ Tue Dec 2 18:35:05 1997 > > @@ -654,7 +654,7 @@ > > dput(bprm->dentry); > > bprm->dentry = NULL; > > remove_arg_zero(bprm); > > - bprm->p = copy_strings(1, &bprm->filename, bprm->page, bprm->p, 2); > > + bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, 2); > > bprm->argc++; > > bprm->loader = bprm->p; > > dentry = open_namei(dynloader[0], 0, 0); > > > This worked for xemacs but sent communicator into a loop at startup. > > > > Is there any other fix? > Well... one night I was quite annoyed by that argv0 bug that I dared to do > fix it myself :) > > > --- exec.c-dist Sat Oct 10 12:31:27 1998 > +++ exec.c Mon Oct 12 01:43:12 1998 > @@ -761,9 +761,11 @@ > > dput(bprm->dentry); > bprm->dentry = NULL; > - remove_arg_zero(bprm); > - bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, > 2); > - bprm->argc++; > +/* test by HVR > + * remove_arg_zero(bprm); > + * bprm->p = copy_strings(1, dynloader, bprm->page, bprm->p, > 2); > + */ bprm->argc++; > + bprm->argc--; > bprm->loader = bprm->p; > dentry = open_namei(dynloader[0], 0, 0); > retval = PTR_ERR(dentry); > > > Well... I don't know exactly what bprm->loader is needed for... actually I > didn't notice any problems with it being pointed to argv0 ... > > maybe someone can enlighten me on that? :) -- 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_| \.___________________________________________________________________./