Bug 1012545

Summary: deadlock in Garbage Collection Start Event callback
Product: [Fedora] Fedora Reporter: Jakub Filak <jfilak>
Component: abrt-java-connectorAssignee: Jakub Filak <jfilak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jberan, jfilak, ptisnovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: abrt-java-connector-1.0.6-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1012827 (view as bug list) Environment:
Last Closed: 2013-10-10 01:07:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1012827    
Attachments:
Description Flags
Deadlock backtrace none

Description Jakub Filak 2013-09-26 15:38:23 UTC
Description of problem:
All abrt-java-connector event callbacks enter a single private critical section. Some callbacks may trigger a GC run while being in the critical section. The GC start callback also wants to enter the critical section but the critical section is locked because the triggering callback waits until the GC run finishes. So both callbacks are waiting for each other.

Version-Release number of selected component (if applicable):
abrt-java-connector-1.0.5-1.fc19

How reproducible:
Accidentally

Steps to Reproduce:
1. run a sufficiently big application for a sufficiently long time

Comment 1 Jakub Filak 2013-09-26 15:48:32 UTC
Created attachment 803476 [details]
Deadlock backtrace

A full backtrace of a deadlock between callback_on_gc_start and callback_on_object_alloc

Comment 2 Jakub Filak 2013-09-27 08:39:05 UTC
Upstream commit d84b4c8883bc145b0afa6b89f025dea1fa98cc3c fixes this bug.

Comment 3 Fedora Update System 2013-10-01 14:50:12 UTC
abrt-java-connector-1.0.6-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/abrt-java-connector-1.0.6-1.fc19

Comment 4 Fedora Update System 2013-10-02 06:38:51 UTC
Package abrt-java-connector-1.0.6-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-java-connector-1.0.6-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-18097/abrt-java-connector-1.0.6-1.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-10-10 01:07:59 UTC
abrt-java-connector-1.0.6-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.