Red Hat Bugzilla – Bug 824850
Crash due to Augeas during finalization
Last modified: 2015-07-14 08:58:08 EDT
Description of problem:
Sometimes, more frequently than comfortable, I get agent crashes when either stopping the plugin container or the entire agent.
The crash report always points to Augeas being the culprit:
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
This leads me to believe we still somehow somewhere do a double close() on an augeas instance, leading to a segmentation fault.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start the agent with the augeas based plugins available
2. import a platform, confirm hosts file and sudoers resources are imported, too
3. Do a several rounds of "pc stop" and "pc start" on the agent commandline
4. Start and shutdown agent repeatedly
Sometimes, the agent crashes during step 3 or 4.
no crashes, please
(9:22:33 AM) ccrouch: lkrejci_: you are running RHQ?
(9:22:48 AM) ccrouch: with plugins using augeas presumably?
(9:25:38 AM) ips: lkrejci_: i see a fix from larry checked in to java-augeas
(9:25:46 AM) ips: would that be of any help to us?
(9:26:33 AM) ips: in any case, why don't we subclass Augeas and make close()
(9:26:57 AM) ips: eg - so it is a no-op if called multiple times
(9:27:08 AM) ips: and potentially synchronize it too
(9:29:26 AM) mazz: fwiw, I REGULARLY see my agent crash on shutdown because of
that stupid augeas stuff
(9:29:29 AM) lkrejci_: ccrouch: yep, that's RHQ, not JON - Apache, which is the
only augeas-based JON plugin, is not involved in this actually
(9:29:39 AM) mazz: happens about once every 3 or so shutdowns
(9:30:39 AM) ccrouch: lkrejci_: please add that to the bug
(9:30:54 AM) lkrejci_: ips: some plugins don't go through our scaffolding and
do weird and wonderful stuff with it
(9:31:02 AM) ccrouch: i don't see this as a blocker for JON
per BZ Triage 5/29/2012 (ccrouch, loleary, asantos, mfoley, myarborough) moving these to JON 3.1.1 or later
*** Bug 787017 has been marked as a duplicate of this bug. ***