Debugging segmentation faults in the JVM on linux-powerpc
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Sat Jun 10 21:57:34 UTC 2017
On 06/10/2017 07:09 PM, John Paul Adrian Glaubitz wrote:
> On 06/09/2017 08:57 PM, John Paul Adrian Glaubitz wrote:
>> It's still building, let's see if it actually succeeds.
>
> It does. And it fails again with "--with-debug-level=fastdebug":
And here's the backtrace:
(sid-powerpc-sbuild)root at kapitsa:/build/openjdk-9-fz188x/openjdk-9-9~b170# gdb --args /build/openjdk-9-fz188x/openjdk-9-9~b170/build/jdk/bin/jmod
-J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1 create --module-version 9-Debian --target-platform 'linux-ppc' --module-path
/build/openjdk-9-fz188x/openjdk-9-9~b170/build/images/jmods --exclude '**{_the.*,_*.marker,*.diz,*.debuginfo,*.dSYM/**,*.dSYM,*.pdb,*.map}' --libs
/build/openjdk-9-fz188x/openjdk-9-9~b170/build/support/modules_libs/java.management --class-path
/build/openjdk-9-fz188x/openjdk-9-9~b170/build/jdk/modules/java.management --legal-notices
"/build/openjdk-9-fz188x/openjdk-9-9~b170/build/support/modules_legal/java.base" /build/openjdk-9-fz188x/openjdk-9-9~b170/build/support/jmods/java.management.jmod
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /build/openjdk-9-fz188x/openjdk-9-9~b170/build/jdk/bin/jmod...Reading symbols from
/build/openjdk-9-fz188x/openjdk-9-9~b170/build/jdk/bin/jmod.debuginfo...done.
done.
(gdb) r
Starting program: /build/openjdk-9-fz188x/openjdk-9-9~b170/build/jdk/bin/jmod -J-XX:+UseSerialGC -J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1 create
--module-version 9-Debian --target-platform linux-ppc --module-path /build/openjdk-9-fz188x/openjdk-9-9\~b170/build/images/jmods --exclude
\*\*\{_the.\*,_\*.marker,\*.diz,\*.debuginfo,\*.dSYM/\*\*,\*.dSYM,\*.pdb,\*.map\} --libs
/build/openjdk-9-fz188x/openjdk-9-9\~b170/build/support/modules_libs/java.management --class-path
/build/openjdk-9-fz188x/openjdk-9-9\~b170/build/jdk/modules/java.management --legal-notices
/build/openjdk-9-fz188x/openjdk-9-9\~b170/build/support/modules_legal/java.base /build/openjdk-9-fz188x/openjdk-9-9\~b170/build/support/jmods/java.management.jmod
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".
[New Thread 0xf7f9f460 (LWP 19187)]
Thread 2 "jmod" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7f9f460 (LWP 19187)]
StubGenerator::SafeFetch32 (adr=0xabc, errValue=2748) at ./src/hotspot/src/cpu/zero/vm/stubGenerator_zero.cpp:211
211 value = *adr;
(gdb) bt
#0 StubGenerator::SafeFetch32 (adr=0xabc, errValue=2748) at ./src/hotspot/src/cpu/zero/vm/stubGenerator_zero.cpp:211
#1 0x0f9c6c0c in SafeFetch32 (errValue=2748, adr=0xabc) at ./src/hotspot/src/share/vm/runtime/stubRoutines.hpp:464
#2 test_safefetch32 () at ./src/hotspot/src/share/vm/runtime/stubRoutines.cpp:243
#3 StubRoutines::initialize2 () at ./src/hotspot/src/share/vm/runtime/stubRoutines.cpp:364
#4 0x0f9c7544 in stubRoutines_init2 () at ./src/hotspot/src/share/vm/runtime/stubRoutines.cpp:373
#5 0x0f4f04a0 in init_globals () at ./src/hotspot/src/share/vm/runtime/init.cpp:143
#6 0x0fa115e8 in Threads::create_vm (args=args at entry=0xf7f9ed3c, canTryAgain=canTryAgain at entry=0xf7f9ecd0) at ./src/hotspot/src/share/vm/runtime/thread.cpp:3630
#7 0x0f56da68 in JNI_CreateJavaVM_inner (args=0xf7f9ed3c, penv=0xf7f9ed38, vm=0xf7f9ed34) at ./src/hotspot/src/share/vm/prims/jni.cpp:3937
#8 JNI_CreateJavaVM (vm=vm at entry=0xf7f9ed34, penv=penv at entry=0xf7f9ed38, args=args at entry=0xf7f9ed3c) at ./src/hotspot/src/share/vm/prims/jni.cpp:4032
#9 0x0ff244cc in InitializeJVM (ifn=<synthetic pointer>, penv=0xf7f9ed38, pvm=0xf7f9ed34) at ./src/jdk/src/java.base/share/native/libjli/java.c:1481
#10 JavaMain (_args=<optimized out>) at ./src/jdk/src/java.base/share/native/libjli/java.c:408
#11 0x0ff28aa0 in call_continuation (_args=<optimized out>) at ./src/jdk/src/java.base/unix/native/libjli/java_md_solinux.c:895
#12 0x0ff67500 in start_thread () from /lib/powerpc-linux-gnu/libpthread.so.0
#13 0x0fe239b0 in clone () from /lib/powerpc-linux-gnu/libc.so.6
(gdb)
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the hotspot-dev
mailing list