Bug 530402

Summary: jmap fails: Could not find symbol "gHotSpotVMTypeEntryTypeNameOffset"
Product: Red Hat Enterprise Linux 5 Reporter: Tomas Herfert <therfert>
Component: java-1.6.0-openjdkAssignee: Andrew Haley <aph>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: low    
Version: 5.3CC: dbhole, ercan.canlier, jpechane, jvanek, lkundrak, max.valjanski, mbaudier, mjw, mmahut, mschick, nate, ptisnovs, therfert, vjuranek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 541548 (view as bug list) Environment:
Last Closed: 2013-03-11 19:29:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Herfert 2009-10-22 16:28:04 UTC
Description of problem:
We are not able to get heap info by jmap tool because it crashes.

Version-Release number of selected component (if applicable):
# rpm -qa | grep openjdk
java-1.6.0-openjdk-1.6.0.0-1.2.b09.el5
java-1.6.0-openjdk-devel-1.6.0.0-1.2.b09.el5


How reproducible:
find java PID by "jps" and run "jmap -heap PID"


Actual results:
$ /usr/lib/jvm/java-openjdk/bin/jmap -heap 14715
Attaching to process ID 14715, please wait...
sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "gHotSpotVMTypeEntryTypeNameOffset" in any of the known library names (libjvm.so, libjvm_g.so, gamma_g)
        at sun.jvm.hotspot.HotSpotTypeDataBase.lookupInProcess(HotSpotTypeDataBase.java:388)
        at sun.jvm.hotspot.HotSpotTypeDataBase.getLongValueFromProcess(HotSpotTypeDataBase.java:369)
        at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:102)
        at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:85)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:568)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494)
        at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:163)
        at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at sun.tools.jmap.JMap.runTool(JMap.java:196)
        at sun.tools.jmap.JMap.main(JMap.java:128)
Debugger attached successfully.
sun.jvm.hotspot.tools.HeapSummary requires a java VM process/core!


Additional info:

Comment 1 Tomas Herfert 2009-10-27 18:08:07 UTC
Hello, you can find solution here:
https://bugzilla.novell.com/show_bug.cgi?id=530046#c3

Comment 2 Tomas Herfert 2009-11-04 17:20:10 UTC
Hello,
is any progress on this bug?
Tomas

Comment 4 Mark Wielaard 2009-11-26 10:10:47 UTC
See also the comments on the Fedora clone of this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=541548#c1

Comment 5 Andrew Haley 2010-01-20 18:01:12 UTC
*** Bug 541548 has been marked as a duplicate of this bug. ***

Comment 6 Tomas Herfert 2010-02-16 11:16:53 UTC
This bug is critical for us. Can it be fixed asap?

Comment 8 Martin Matejovic 2010-03-17 09:21:52 UTC
Bug is resolved by testing RPMs at:
http://file.brq.redhat.com/~mmatejov/java-1.6.0-openjdk/RHEL-5_icedtea6-1.6/

Comment 9 Tomas Herfert 2010-03-17 09:30:02 UTC
(In reply to comment #8)
> Bug is resolved by testing RPMs at:
> http://file.brq.redhat.com/~mmatejov/java-1.6.0-openjdk/RHEL-5_icedtea6-1.6/    

Thanks Martin! 
When we could expect this package in RHN?

Comment 10 Ercan Canlıer 2010-03-23 15:37:37 UTC
That is really important bug while profiling the application... When can it be possible for RHEL5?

Thanks...

Comment 11 Andrew Haley 2010-03-23 17:28:28 UTC
This is fixed in the next RPMs, which are running the TCK as I write this.

Comment 12 Mathieu Baudier 2011-04-21 07:00:56 UTC
The bug is still there on CentOS 5.6:

java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.10) (rhel-1.20.b17.el5-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

java-1.6.0-openjdk.x86_64            1:1.6.0.0-1.20.b17.el5            installed

Comment 13 Nathaniel W. Turner 2011-07-12 14:51:27 UTC
If you find yourself here because you are having the same problem on a recent version of RHEL, make sure you have the java-1.6.0-openjdk-debuginfo package installed.

Comment 14 Deepak Bhole 2013-03-11 19:29:04 UTC
Fixed in current release.