Bug 698934

Summary: abrt-applet segfault on abrtd restart
Product: [Fedora] Fedora Reporter: Steve Tyler <stephent98>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: anton, dfediuck, dvlasenk, iprikryl, jmoskovc, kklic, mtoman, npajkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 20:25:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/var/log/messages
none
/var/log/yum.log none

Description Steve Tyler 2011-04-22 10:47:26 UTC
Created attachment 494170 [details]
/var/log/messages

Description of problem:
abrt-applet crashed.
This may have happened after updating abrt.
Attached messages has more.
There doesn't seem to be core file.

[joeblow@fir ~]$ ps -ef | grep abrt
root      2012     1  0 03:04 ?        00:00:00 /usr/sbin/abrtd -d -s
root      2013  2012  0 03:04 ?        00:00:00 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages
joeblow   2354  1629  0 03:42 pts/0    00:00:00 grep --color=auto abrt

Noticed this after I attempted to generate a crash,
but did not receive an abrt notification:
[joeblow@fir ~]$ sleep 1000 &
[1] 2178
[joeblow@fir ~]$ kill -6 2178
[joeblow@fir ~]$ 
[1]+  Aborted                 (core dumped) sleep 1000

The sleep core file was generated.

Version-Release number of selected component (if applicable):
[joeblow@fir ~]$ rpm -qa 'abrt*' | sort
abrt-2.0.1-2.fc15.x86_64
abrt-addon-ccpp-2.0.1-2.fc15.x86_64
abrt-addon-kerneloops-2.0.1-2.fc15.x86_64
abrt-addon-python-2.0.1-2.fc15.x86_64
abrt-desktop-2.0.1-2.fc15.x86_64
abrt-gui-2.0.1-2.fc15.x86_64
abrt-libs-2.0.1-2.fc15.x86_64
abrt-plugin-bugzilla-2.0.1-2.fc15.x86_64
abrt-plugin-logger-2.0.1-2.fc15.x86_64
[joeblow@fir ~]$ rpm -Va 'abrt*'
.....UGM.    /var/run/abrt
[joeblow@fir ~]$ 

How reproducible:
Not sure.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Snippet from /var/log/messages:
Apr 22 03:04:46 fir systemd[1]: Reloading.
Apr 22 03:04:50 fir abrtd: Got signal 15, exiting
Apr 22 03:04:50 fir kernel: [  217.612901] abrt-applet[1536]: segfault at 0 ip 00000000004036b4 sp 00007fff00cd3b70 error 4 in abrt-applet (deleted)[400000+5000]
Apr 22 03:04:50 fir abrt[2007]: file /usr/bin/abrt-applet seems to be deleted
Apr 22 03:04:50 fir abrt[2007]: abrt daemon is not running. If it crashed, /proc/sys/kernel/core_pattern contains a stale value, consider resetting it to 'core'
Apr 22 03:04:50 fir abrtd: Init complete, entering main loop
Apr 22 03:04:50 fir abrtd: Got signal 15, exiting
Apr 22 03:04:50 fir abrtd: Init complete, entering main loop
Apr 22 03:16:31 fir abrt[2179]: saved core dump of pid 2178 (/bin/sleep) to /var/spool/abrt/ccpp-2011-04-22-03:16:31-2178.new/coredump (372736 bytes)
Apr 22 03:16:31 fir abrtd: Directory 'ccpp-2011-04-22-03:16:31-2178' creation detected
Apr 22 03:16:31 fir abrtd: New dump directory /var/spool/abrt/ccpp-2011-04-22-03:16:31-2178, processing
Apr 22 03:17:19 fir ntpd[1381]: 0.0.0.0 0612 02 freq_set kernel 16.742 PPM

Comment 1 Steve Tyler 2011-04-22 10:49:31 UTC
Created attachment 494172 [details]
/var/log/yum.log

Comment 2 Steve Tyler 2011-04-22 10:55:10 UTC
After restarting, abrt-applet is running, but I did not receive a notification.

[joeblow@fir ~]$ ps -ef | grep abrt
root       774     1  0 03:51 ?        00:00:00 /usr/sbin/abrtd -d -s
root       845   774  0 03:51 ?        00:00:00 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages
joeblow   1540  1397  0 03:52 ?        00:00:00 abrt-applet
joeblow   1654  1633  0 03:53 pts/0    00:00:00 grep --color=auto abrt

Comment 3 Steve Tyler 2011-04-22 11:15:39 UTC
Here's a reproducer:

1. In a terminal window:
$ sudo tail -f /var/log/messages

2. In another terminal window:
[joeblow@fir ~]$ date
Fri Apr 22 04:09:26 PDT 2011
[joeblow@fir ~]$ ps -ef | grep abrt
root       760     1  0 04:07 ?        00:00:00 /usr/sbin/abrtd -d -s
root       827   760  0 04:07 ?        00:00:00 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages
joeblow   1533  1387  0 04:08 ?        00:00:00 abrt-applet
joeblow   1657  1638  0 04:09 pts/1    00:00:00 grep --color=auto abrt
[joeblow@fir ~]$ sudo kill -15 760
[sudo] password for joeblow: 
[joeblow@fir ~]$ date
Fri Apr 22 04:09:52 PDT 2011
[joeblow@fir ~]$ ps -ef | grep abrt
joeblow   1736  1638  0 04:11 pts/1    00:00:00 grep --color=auto abrt
[joeblow@fir ~]$ sudo systemctl restart abrtd.service
[joeblow@fir ~]$ ps -ef | grep abrt
root      1740     1  0 04:12 ?        00:00:00 /usr/sbin/abrtd -d -s
root      1741  1740  0 04:12 ?        00:00:00 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages
joeblow   1743  1638  0 04:12 pts/1    00:00:00 grep --color=auto abrt
[joeblow@fir ~]$ date
Fri Apr 22 04:12:29 PDT 2011
[joeblow@fir ~]$ 

Snippet from /var/log/messages:
[joeblow@fir ~]$ sudo tail -f /var/log/messages
[sudo] password for joeblow: 
Apr 22 04:08:12 fir ntpd[1524]: 0.0.0.0 c016 06 restart
Apr 22 04:08:12 fir ntpd[1524]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Apr 22 04:08:12 fir ntpd[1524]: 0.0.0.0 c011 01 freq_not_set
Apr 22 04:08:13 fir dbus: [system] Service 'org.freedesktop.NetworkManager' is already active
Apr 22 04:08:13 fir dbus: [system] Service 'org.freedesktop.ConsoleKit' is already active
Apr 22 04:08:13 fir dbus: [system] Service 'org.freedesktop.ConsoleKit' is already active
Apr 22 04:08:13 fir dbus: [system] Service 'org.freedesktop.UDisks' is already active
Apr 22 04:08:14 fir dbus: [system] Service 'org.freedesktop.UPower' is already active
Apr 22 04:08:15 fir dbus: [system] Service 'org.freedesktop.PolicyKit1' is already active
Apr 22 04:08:19 fir ntpd[1524]: 0.0.0.0 c614 04 freq_mode
Apr 22 04:09:46 fir abrtd: Got signal 15, exiting
Apr 22 04:09:46 fir kernel: [  122.250033] abrt-applet[1533]: segfault at 0 ip 00000000004036b4 sp 00007fffbc997e20 error 4 in abrt-applet[400000+5000]
Apr 22 04:09:46 fir abrt[1663]: abrt daemon is not running. If it crashed, /proc/sys/kernel/core_pattern contains a stale value, consider resetting it to 'core'
Apr 22 04:12:15 fir abrtd: Init complete, entering main loop

Comment 4 Steve Tyler 2011-04-22 11:28:03 UTC
Here's a simpler reproducer:

1. reboot
2. $ sudo systemctl restart abrtd.service

Apr 22 04:24:38 fir dbus: [system] Service 'org.freedesktop.PolicyKit1' is already active
Apr 22 04:25:51 fir abrtd: Got signal 15, exiting
Apr 22 04:25:51 fir kernel: [  125.030525] abrt-applet[1518]: segfault at 0 ip 00000000004036b4 sp 00007fffe56b1b00 error 4 in abrt-applet[400000+5000]
Apr 22 04:25:51 fir abrtd: Init complete, entering main loop
Apr 22 04:25:51 fir abrt[1648]: saved core dump of pid 1518 (/usr/bin/abrt-applet) to /var/spool/abrt/abrt-applet-coredump (1716224 bytes)

Comment 5 Jiri Moskovcak 2011-04-22 17:40:20 UTC
Nice catch! Fixed in git (commit: b6e67ed551aef7e1273317978075e4e034e18d73)

Comment 6 Steve Tyler 2011-04-22 18:12:04 UTC
(In reply to comment #5)
> Nice catch! Fixed in git (commit: b6e67ed551aef7e1273317978075e4e034e18d73)

Thanks, Jiri.
https://fedorahosted.org/abrt/changeset/b6e67ed551aef7e1273317978075e4e034e18d73

Comment 7 Fedora Update System 2011-05-06 10:53:53 UTC
abrt-2.0.2-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/abrt-2.0.2-1.fc15

Comment 8 Fedora Update System 2011-05-07 15:07:21 UTC
Package abrt-2.0.2-1.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.2-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/abrt-2.0.2-1.fc15
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-05-08 04:04:47 UTC
abrt-2.0.2-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/abrt-2.0.2-3.fc15

Comment 10 Fedora End Of Life 2012-08-07 20:25:42 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping