openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #12433
Bug#867314: openjdk-8-jre-headless: openjdk unwinder for gdb crashes
Package: openjdk-8-jre-headless
Version: 8u131-b11-2
Severity: normal
Dear Maintainer,
When running python code that calls the JVM via JNI GDB can't install the
openjdk unwinder.
When running gdb --args python -m jcc --jar some-jar-file.jar and then running
(just make a virtualenv, pip install jcc, and point it at some jar file):
Starting program: /home/joshua/unnaturalcode/venv3/bin/python -m jcc --jar
java/lex-java/target/lex-java-1.0-SNAPSHOT.jar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Installing openjdk unwinder
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-
amd64/jre/lib/amd64/server/libjvm.so-gdb.py", line 52, in <module>
class Types(object):
File "/usr/share/gdb/auto-load/usr/lib/jvm/java-8-openjdk-
amd64/jre/lib/amd64/server/libjvm.so-gdb.py", line 66, in Types
nmethodp_t = gdb.lookup_type('nmethod').pointer()
gdb.error: No type named nmethod.
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe47f22b4 in ?? ()
(gdb) bt
#0 0x00007fffe47f22b4 in ?? ()
#1 0x0000000000000246 in ?? ()
#2 0x00007fffe47f2160 in ?? ()
#3 0x00007fffffffc8c0 in ?? ()
#4 0x00007fffffffc860 in ?? ()
#5 0x00007ffff600d075 in VM_Version::get_processor_features() ()
from /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/amd64/server/libjvm.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Expected outcome: an actual stacktrace.
-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (990, 'stable'), (40, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openjdk-8-jre-headless depends on:
ii ca-certificates-java 20170531+nmu1
ii java-common 0.58
ii libc6 2.24-11+deb9u1
ii libcups2 2.2.1-8
ii libfontconfig1 2.11.0-6.7+b1
ii libfreetype6 2.6.3-3.2
ii libgcc1 1:6.3.0-18
ii libjpeg62-turbo 1:1.5.1-2
ii liblcms2-2 2.8-4
ii libnss3 2:3.26.2-1.1
ii libpcsclite1 1.8.20-1
ii libstdc++6 6.3.0-18
ii libx11-6 2:1.6.4-3
ii libxext6 2:1.3.3-1+b2
ii libxi6 2:1.7.9-1
ii libxrender1 1:0.9.10-1
ii libxtst6 2:1.2.3-1
ii multiarch-support 2.24-11+deb9u1
ii util-linux 2.29.2-1
ii zlib1g 1:1.2.8.dfsg-5
openjdk-8-jre-headless recommends no packages.
Versions of packages openjdk-8-jre-headless suggests:
ii fonts-dejavu-extra 2.37-1
pn fonts-indic <none>
ii fonts-ipafont-gothic 00303-16
ii fonts-ipafont-mincho 00303-16
pn fonts-wqy-microhei <none>
pn fonts-wqy-zenhei <none>
ii libnss-mdns 0.10-8
-- no debconf information
Follow ups