Subject: Coredump in shutdown.
To: None <tech-kern@netbsd.org>
From: Anders Magnusson <ragge@ludd.luth.se>
List: tech-kern
Date: 10/28/1999 17:32:09
I have run into a problem which I can't explain:

Running a shutdown may end up like this (on vax):

# shutdown -h -D now
Shutdown NOW!
Oct 28 08:14:52 shutdown: halt by root: 

System shutdown time has arrived

About to run shutdown hooks...

Done running shutdown hooks.
Trace/BPT trap - core dumped
# 

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
it will get a SIGTRAP after the first instruction in halt.

How is this supposed to work? Obviously it works on other ports, so
there must be something done in an unexpected way in the vax port.

-- Ragge