Subject: Re: Coredump in shutdown.
To: Anders Magnusson <ragge@ludd.luth.se>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 10/29/1999 14:10:25
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.

(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?)

Regards,
	Ignatios

-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)