Subject: Re: Coredump in shutdown.
To: Ignatios Souvatzis <firstname.lastname@example.org>
From: Anders Magnusson <email@example.com>
Date: 10/29/1999 14:16:46
> On Thu, Oct 28, 1999 at 07:46:19PM +0200, Anders Magnusson wrote:
> > > On Thu, Oct 28, 1999 at 05:32:09PM +0200, Anders Magnusson wrote:
> > >
> > > > What's happening is quite obvious: shutdown uses exect() when exec'ing
> > > > halt. Exect() sets the trace bit before calling exec, and as a result
> > >
> > > Sounds like a bug...
> > >
> > Yes, but what and where? This code has always been in this way, and
> > other ports do the same, so I'm quite lost...
> I did a bit of research. The change to exect() occured when Charles Hannum
> reorganized shutdown.c nearly two years ago. He vaguely remembers something
> about it coming from 4.4BSD, but I can't verify this.
> I'll change this to execve(), unless somebody speaks up who really knows why
> setting reboot(8) or halt(8) to traced makes any sense.
Something does not act as it should anyway, and it would be interesting
to know what...
> (Btw: the vax _crashing_ sounds like a different bug to me. Does gdb
> debugging of user processes work at all on the machine in question?)
Crashing? Did I say that? It does not crash, it's only halt that dumps
core (because halt get the signal because the process isn't traced).