[Bug 978502] Re: whoopsie.postinst crashes silently if /var/crash is missing
Launchpad Bug Tracker
978502 at bugs.launchpad.net
Wed Apr 11 09:03:15 UTC 2012
This bug was fixed in the package whoopsie-daisy - 0.1.28
---------------
whoopsie-daisy (0.1.28) precise; urgency=low
* Create /var/crash if it doesn't already exist. Don't silence the
chmod and chgrp calls on it. Thanks Colin Watson (LP: #978502)!
-- Evan Dandrea <ev at ubuntu.com> Wed, 11 Apr 2012 09:44:12 +0100
** Changed in: whoopsie-daisy (Ubuntu Precise)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to whoopsie-daisy in Ubuntu.
https://bugs.launchpad.net/bugs/978502
Title:
whoopsie.postinst crashes silently if /var/crash is missing
Status in “whoopsie-daisy” package in Ubuntu:
Fix Released
Status in “whoopsie-daisy” source package in Precise:
Fix Released
Bug description:
In a fresh install, such as when building an image - e.g.
http://people.canonical.com/~ubuntu-archive/livefs-build-logs/precise
/ubuntu-zh_CN/20120410/livecd-20120410-i386.out - whoopsie may be
configured before apport or (hopefully!) before anything crashes, and
in that case it will fail to configure because /var/crash does not
exist yet. Worse, it does so silently, with the only clue being:
Setting up whoopsie (0.1.27) ...
dpkg: error processing whoopsie (--configure):
subprocess installed post-installation script returned error exit status 1
1) whoopsie.postinst should run 'mkdir -p -m 3777 /var/crash' before
operating on it.
2) '/dev/null 2>&1' should be removed from the first pair of
chmod/chgrp calls, the ones that may cause the postinst to fail. I
can understand why you wouldn't want error output from the second
pair, since you'll get glob failures if there are no *.crash files in
/var/crash/, but if either 'chmod g+s /var/crash' or 'chgrp whoopsie
/var/crash' emits any output then it will almost certainly be a reason
for exiting non-zero and such error output should not be thrown away.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/whoopsie-daisy/+bug/978502/+subscriptions
More information about the foundations-bugs
mailing list