Summary: | init(8): "init q" in single user causes segfault | ||
---|---|---|---|
Product: | Base System | Reporter: | Matthias Andree <mandree> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | ngie |
Priority: | Normal | Flags: | ngie:
mfc-stable10-
ngie: mfc-stable9- ngie: mfc-stable8- |
Version: | 8.2-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Matthias Andree
2011-02-25 14:00:24 UTC
State Changed From-To: open->patched 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. MFC? > [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
expectations.
Perhaps it is indeed safe enough.
--
Jilles Tjoelker
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. |