Bug 745286

Summary: 'invalid number '/var/spool/abrt'' when an app crashes on a minimal system
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: abrtAssignee: Nikola Pajkovsky <npajkovs>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: burhan.ali, dhoward, dvlasenk, iprikryl, jmoskovc, kklic, maurizio.antillon, mmilata, mtoman, npajkovs, redhat_bugzilla, redhat-bugzilla, udovdh, zlynx
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-2.0.3-6.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-04 02:30:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.