"init q" in single-user mode causes init to segfault, and subsequently
the kernel to panic (..."going nowhere without my init")
How-To-Repeat: boot into single-user at loader prompt
enter root /bin/sh
type "init q" and press enter
I was able to reproduce this on 8.2-RELEASE but not on 9.0-CURRENT.
I guess that this has been fixed in r217750.
> [r217750 fixes segfault on "init q" in single user]
Commit r217750 certainly fixes that segfault (deliberately) but also
makes it such that /etc/rc.shutdown is not executed if /etc/rc was not
finished. That change fixes some things (like losing mixer settings when
using shutdown or ctrl+alt+del from single user) but might also break
Perhaps it is indeed safe enough.
The symptom noted in the description can no longer be hit as noted in comment # 1 and comment # 3. Closing this bug even though the commit was not MFCed because 8.x has been EOLed.
Please open a new bug for the item noted in comment # 3 if you believe it /etc/rc.shutdown should be run again if `init q` is interrupted -- although, I personally think the problem is that certain scripts like mixer need to be taught to do the right thing each time they're stopped instead of going and corrupting state.