Bug 1421148 - Stopping abrtd shall stop abrt-ccpp and abrt-oops as well
Summary: Stopping abrtd shall stop abrt-ccpp and abrt-oops as well
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: abrt
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: abrt
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-10 13:38 UTC by Martin Kyral
Modified: 2017-11-23 08:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-23 08:58:24 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Martin Kyral 2017-02-10 13:38:38 UTC
Description of problem:

The abrtd service shall stop the abrt plugins as well. Having abrt-ccpp running (ie. abrt core pattern installed) with abrtd down leads to state where coredump are getting lost.

[0 root@qeos-239 ~]# for svc in abrtd abrt-ccpp abrt-oops abrt-vmcore ; do service $svc status ; done
abrtd (pid  29864) is running...
abrt-ccpp hook is installed
abrt-dump-oops (pid 1406) is running...
[0 root@qeos-239 ~]# service abrtd stop
Stopping abrt daemon:                                      [  OK  ]
[0 root@qeos-239 ~]# for svc in abrtd abrt-ccpp abrt-oops abrt-vmcore ; do service $svc status ; done
abrtd is stopped
abrt-ccpp hook is installed
abrt-dump-oops (pid 1406) is running...
[0 root@qeos-239 ~]# cat /proc/sys/kernel/core_pattern
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e

If a binary crashes, coredump is taken up by the abrt core pattern and (probably) lost as suggested by the entry in syslog:

Feb 10 08:29:31 unused-4-151 abrt[30075]: abrtd is not running. If it crashed, /proc/sys/kernel/core_pattern contains a stale value, consider resetting it to 'core'

The same applies to disabling of the abrtd service via chkconfig.

[0 root@qeos-239 ~]# chkconfig | grep abrt
abrt-ccpp       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrt-oops       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrt-vmcore     0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrtd           0:off   1:off   2:off   3:on    4:off   5:on    6:off
[0 root@qeos-239 ~]# chkconfig abrtd off
[0 root@qeos-239 ~]# chkconfig | grep abrt
abrt-ccpp       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrt-oops       0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrt-vmcore     0:off   1:off   2:off   3:on    4:off   5:on    6:off
abrtd           0:off   1:off   2:off   3:off   4:off   5:off   6:off



Version-Release number of selected component (if applicable):
abrt-2.0.8-43.el6

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Miroslav Suchý 2017-11-23 08:58:24 UTC
I do not agree. One service should not stop another service.
If there is many services we should rather provide wrapper which start/stop all service.
But on EL7 you can already do:
  systemctl stop 'abrt*'
So for EL7 there is solution, so I am against introducing some wrapper only for EL6


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