[BusyBox] bug report - halt/reboot/poweroff error
Erik Andersen
andersen at lineo.com
Thu Sep 14 18:39:18 UTC 2000
On Wed Sep 13, 2000 at 11:50:43PM -0700, Matt Kraai wrote:
> On Wed, Sep 13, 2000 at 11:14:04PM -0500, Chip Rosenthal wrote:
> > I've got a problem with Busybox 0.47pre.
> >
> > The reboot/halt/poweroff commands are all failing with a "Segmentation
> > violation."
> >
> > I'm using a 2.2.16 kernel. I've got BB_FEATURE_LINUXRC enabled and
> > I'm running init as /linuxrc.
>
> I believe that these applets should be searching for linuxrc rather than
> init. Does the attached patch fix your problems?
>
> Matt
I don't think that is it, since in init.c I force argv[0] to be "init"...
(about line 977):
/* Fix up argv[0] to be certain we claim to be init */
strncpy(argv[0], "init", strlen(argv[0])+1);
I think this is a bug that is showing up in findPidByName(). I'll start
digging into this one -- this looks like a release critical bug to me...
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 350 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20000914/785f3365/attachment.pgp
More information about the busybox
mailing list