Bug 745286 - 'invalid number '/var/spool/abrt'' when an app crashes on a minimal system
Summary: 'invalid number '/var/spool/abrt'' when an app crashes on a minimal system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Nikola Pajkovsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-11 22:19 UTC by Adam Williamson
Modified: 2014-02-02 22:15 UTC (History)
14 users (show)

Fixed In Version: abrt-2.0.3-6.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-04 02:30:02 UTC
Type: ---


Attachments (Terms of Use)

Description Adam Williamson 2011-10-11 22:19:49 UTC
I have a very minimal F15 install which just runs my chat proxies - bip and bitlbee. bitlbee has recently started crashing every 15 minutes, so I installed abrt-cli to try and capture and report the crash. The packages installed were:

Packages Altered:
    Dep-Install abrt-2.0.3-4.fc15.x86_64
    Dep-Install abrt-addon-ccpp-2.0.3-4.fc15.x86_64
    Dep-Install abrt-addon-kerneloops-2.0.3-4.fc15.x86_64
    Dep-Install abrt-addon-python-2.0.3-4.fc15.x86_64
    Install     abrt-cli-2.0.3-4.fc15.x86_64
    Dep-Install abrt-libs-2.0.3-4.fc15.x86_64
    Dep-Install abrt-plugin-bugzilla-2.0.3-4.fc15.x86_64
    Dep-Install abrt-plugin-logger-2.0.3-4.fc15.x86_64
    Dep-Install btparser-0.13-1.fc15.x86_64
    Dep-Install elfutils-0.152-1.fc15.x86_64
    Dep-Install elfutils-libs-0.152-1.fc15.x86_64
    Dep-Install libreport-2.0.4-3.fc15.x86_64
    Dep-Install libreport-cli-2.0.4-3.fc15.x86_64
    Dep-Install xmlrpc-c-1.25.4-1500.svn2077.fc15.x86_64
    Dep-Install xmlrpc-c-client-1.25.4-1500.svn2077.fc15.x86_64

I then started the abrtd and abrt-ccpp services. When bitlbee next crashed, this showed up in the system log:

Oct 11 15:12:08 ircproxy bitlbee[14589]: Fatal signal received: 11. That's probably a bug.
Oct 11 15:12:08 ircproxy abrt[14624]: invalid number '/var/spool/abrt'

What's stopping abrt from working right?

Comment 1 Jiri Moskovcak 2011-10-12 08:49:03 UTC
Can you please post:

$ cat /proc/sys/kernel/core_pattern

then

$ service abrt-ccpp stop
$ echo "core" /proc/sys/kernel/core_pattern
$ service abrt-ccpp start

Comment 2 Adam Williamson 2011-10-12 17:14:54 UTC
[adamw@ircproxy ~]$ cat /proc/sys/kernel/core_pattern
|/usr/libexec/abrt-hook-ccpp /var/spool/abrt %s %c %p %u %g %t %h %e 636f726500

so that looks right? Except not sure about the pipe.

Trying with the second stanza now. I'm assuming you meant 'echo "core" > /proc/sys/kernel/core_pattern'.

Comment 3 Jiri Moskovcak 2011-10-12 17:37:52 UTC
Ah, it's a wrong backported patch, please try:

$ vi /etc/init.d/abrt-ccpp
- find PATTERN="|HOOK_BIN /var/spool/abrt ... " and remove /var/spool/abrt from that string

Comment 4 Jonathan Briggs 2011-10-12 23:23:01 UTC
I noticed this bug too. I see there's a script in /usr/sbin/abrt-install-ccpp-hook that looks like it should be the init script instead of the old version in /etc/rc.d/init.d/abrt-ccpp.

Comment 5 Jonathan Briggs 2011-10-12 23:29:02 UTC
And when someone fixes the core pattern they should also fix this typo:

/etc/libreport/events.d/ccpp_events.conf: prinf "%s\n" "$log" >var_log_messages

"prinf" is not an actual command.

Comment 6 Fedora Update System 2011-10-13 14:14:53 UTC
abrt-2.0.3-6.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/abrt-2.0.3-6.fc15

Comment 7 Fedora Update System 2011-10-13 23:53:44 UTC
Package abrt-2.0.3-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.0.3-6.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14314
then log in and leave karma (feedback).

Comment 8 Adam Williamson 2011-10-14 23:51:32 UTC
I think Jon is on to something, once you fix or workaround the original bug, you get:

Oct 14 16:39:04 ircproxy abrtd: /bin/sh: line 12: prinf: command not found
Oct 14 16:39:04 ircproxy abrtd: Corrupted or bad dump /var/spool/abrt/ccpp-2011-10-14-16:39:02-16704 (res:2), deleting

Comment 9 Fedora Update System 2011-12-04 02:30:02 UTC
abrt-2.0.3-6.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.