← Back to team overview

openjdk team mailing list archive

Bug#865749: openjdk-7-jdk: jmap does not work anymore due to missing symbols

 

Package: openjdk-7-jdk
Version: 7u131-2.6.9-2~deb8u1
Severity: normal

Dear Maintainer,

Jmap does not work anymore on debian due to missing symbols:

This seems like a known problem on ubuntu too where jmap is broken since about 7u95.
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1548434

In the ubuntu bugreport revision 600 was speculated to be the problem
http://bazaar.launchpad.net/~openjdk/openjdk/openjdk7/revision/600

# LIBSAPROC_DEBUG=1 jmap -heap 808 2>&1|grep -v pthread
Attaching to process ID 808, please wait...
libsaproc DEBUG: can't open shared object [vvar]
libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm_g.so'
libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm.so'
libsaproc DEBUG: lookup failed for symbol '__vt_10JavaThread' in obj 'libjvm_g.so'
libsaproc DEBUG: lookup failed for symbol 'SA_CMD_SUSPEND_ALL' in obj 'libsa.so'
libsaproc DEBUG: lookup failed for symbol 'SA_CMD_SUSPEND_ALL' in obj 'libsa_g.so'
Debugger attached successfully.
Server compiler detected.
JVM version is 24.131-b00
libsaproc DEBUG: lookup failed for symbol '_ZTV20ParallelScavengeHeap' in obj 'libjvm.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV20ParallelScavengeHeap' in obj 'libjvm_g.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV20ParallelScavengeHeap' in obj 'gamma_g'
libsaproc DEBUG: lookup failed for symbol '_ZTV16GenCollectedHeap' in obj 'libjvm.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV16GenCollectedHeap' in obj 'libjvm_g.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV16GenCollectedHeap' in obj 'gamma_g'
libsaproc DEBUG: lookup failed for symbol '_ZTV15G1CollectedHeap' in obj 'libjvm.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV15G1CollectedHeap' in obj 'libjvm_g.so'
libsaproc DEBUG: lookup failed for symbol '_ZTV15G1CollectedHeap' in obj 'gamma_g'

using thread-local object allocation.
Parallel GC with 4 thread(s)

Heap Configuration:
   MinHeapFreeRatio = 0
   MaxHeapFreeRatio = 100
   MaxHeapSize      = 12821987328 (12228.0MB)
   NewSize          = 1310720 (1.25MB)
   MaxNewSize       = 17592186044415 MB
   OldSize          = 5439488 (5.1875MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 268435456 (256.0MB)
   MaxPermSize      = 536870912 (512.0MB)
   G1HeapRegionSize = 0 (0.0MB)

Heap Usage:
Exception in thread "main" java.lang.reflect.InvocationTargetException
        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:606)
        at sun.tools.jmap.JMap.runTool(JMap.java:197)
        at sun.tools.jmap.JMap.main(JMap.java:128)
Caused by: java.lang.RuntimeException: unknown CollectedHeap type : class sun.jvm.hotspot.gc_interface.CollectedHeap
        at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:146)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
        at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:40)
        ... 6 more

Installed java packages:
ii  openjdk-7-dbg:amd64          7u131-2.6.9-2~deb8u1 amd64        Java runtime based on OpenJDK (debugging symbols)
ii  openjdk-7-jdk:amd64          7u131-2.6.9-2~deb8u1 amd64        OpenJDK Development Kit (JDK)
ii  openjdk-7-jre:amd64          7u131-2.6.9-2~deb8u1 amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-7-jre-headless:amd64 7u131-2.6.9-2~deb8u1 amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

It would be nice to have a working jmap again in debian!

gebi

-- System Information:
Debian Release: 8.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.43-2+deb8u1 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openjdk-7-jdk depends on:
ii  libc6          2.19-18+deb8u10
ii  openjdk-7-jre  7u131-2.6.9-2~deb8u1