Bug 1117848

Summary: javapackages-tools: support abrt-java-connector
Product: Red Hat Enterprise Linux 7 Reporter: Jakub Filak <jfilak>
Component: javapackages-toolsAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.1CC: dbhole, isenfeld, jberan, jvanek, lzachar, mizdebsk, msrb, ovasik
Target Milestone: rcKeywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: javapackages-tools-3.4.1-11.el7 Doc Type: Enhancement
Doc Text:
Feature: ABRT Java connector enabled by default for system Java applications Reason: Previously Java application crashes were not seen by ABRT Result: Support for ABRT was implemented. ABRT will be notified each time any JPackage-compatible Java application installed in the system crashes, provided that ABRT Java connector is installed and ABRT daemon is running.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 08:01:17 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: 1238578    
Bug Blocks: 1191019    

Description Jakub Filak 2014-07-09 13:47:48 UTC
Description of problem:
Please add support for abrt-java-connector.

Upstream commit https://github.com/mizdebsk/javapackages/commit/988d0c701691a8560a6c73977b328db9ab180e17

Comment 2 jiri vanek 2014-08-13 10:32:54 UTC
This fix is needed to 7.1 to allow gcc debugger to attach to java binary directly.

Comment 16 Mikolaj Izdebski 2015-07-02 10:58:05 UTC
Fixed in javapackages-tools-3.4.1-11

Comment 18 Mikolaj Izdebski 2015-07-02 12:38:20 UTC
Testing instructions:
Preparation:
1. yum install jflex abrt-java-connector
2. systemctl start abrtd
3. cp -a $(readlink -f /usr/lib/jvm/jre) .
4. cp jre/bin/java jre/bin/java.orig
5. echo 'echo @@java $@' >jre/bin/java
6. echo 'exec $JAVA_HOME/bin/java.orig $@' >>jre/bin/java
7. export JAVA_HOME=$PWD/jre

To test, run: jflex --help | grep @@

Expected result: first of line of result contains text:
-agentpath:/usr/lib/abrt-java-connector/libabrt-java-connector.so=abrt=on

When the test is repeated with either:
 - abrtd service stopped
 - JAVA_ABRT=off line uncommented in /etc/java/java.conf
 - ${HOME}/.java/java.conf file created with contents "JAVA_ABRT=off"
 - abrt-java-connector package uninstalled
then expected result is that no -agentpath line appears in the output.

Comment 21 errata-xmlrpc 2015-11-19 08:01:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-2224.html