apport forcefully overrides sysctl kernel.core_pattern from values set in /etc/sysctl.*
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I think that the way apport registers itself as a core dump handler with the system is badly behaved with respect to other configuration processes one would expect to follow on a Debian or Ubuntu based system. It forcibly overrides settings specified by a user in /etc/sysctl.conf, and does not employ /etc/sysctl.d. Thus it is overriding settings that have been configured elsewhere upon start and upon shutdown.
I think perhaps it should be checking for non-default values in these settings and not dynamically playing with them while it starts and stops.
Thanks,
Matthew.
mhall@mhsm:src$ sudo fgrep kernel.core /etc/sysctl.conf
kernel.core_pattern = /var/crash/
kernel.
mhall@mhsm:src$
$ sudo sysctl -a | fgrep -i kernel.core
kernel.
kernel.core_pattern = |/usr/share/
kernel.
$ cat /etc/init/
... SNIP ...
pre-start script
... SNIP ...
echo "|/usr/
... SNIP ...
post-stop script
... SNIP ...
if [ "`dd if=/proc/
then
exit 1
else
echo "core" > /proc/sys/
fi
end script
Status changed to 'Confirmed' because the bug affects multiple users.