RFH: Debugging Zero crashing on Linux/SPARC
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Sun Dec 15 15:20:57 UTC 2019
Hi!
Since we are limited to Zero on Linux/SPARC in the foreseeable future, I would like to
make sure that Zero works properly again on Linux/SPARC.
Unfortunately, there is still an issue with Zero crashing on SPARC when built with
gcc-9. I have so far not figured out what the problem is, but the gdb backtrace looks
like below.
Can anyone give a pointer where to poke?
Thanks,
Adrian
glaubitz at gcc202:~/jdk$ gdb /home/glaubitz/jdk/build/linux-sparcv9-zero-release/jdk/bin/java
GNU gdb (Debian 8.3.1-1) 8.3.1
Copyright (C) 2019 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 "sparc64-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 /home/glaubitz/jdk/build/linux-sparcv9-zero-release/jdk/bin/java...
(No debugging symbols found in /home/glaubitz/jdk/build/linux-sparcv9-zero-release/jdk/bin/java)
(gdb) r
Starting program: /home/glaubitz/jdk/build/linux-sparcv9-zero-release/jdk/bin/java
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc64-linux-gnu/libthread_db.so.1".
[New Thread 0xfff80001012f9900 (LWP 212322)]
Thread 2 "java" received signal SIGBUS, Bus error.
[Switching to Thread 0xfff80001012f9900 (LWP 212322)]
0xfff8000100bf506c in SharedRuntime::generate_stubs () at /home/glaubitz/jdk/src/hotspot/share/runtime/sharedRuntime.cpp:106
106 _resolve_static_call_blob = generate_resolve_blob(CAST_FROM_FN_PTR(address, SharedRuntime::resolve_static_call_C), "resolve_static_call");
(gdb) bt
#0 0xfff8000100bf506c in SharedRuntime::generate_stubs () at /home/glaubitz/jdk/src/hotspot/share/runtime/sharedRuntime.cpp:106
#1 0xfff80001009e4bfc in init_globals () at /home/glaubitz/jdk/src/hotspot/share/runtime/init.cpp:129
#2 0xfff8000100c431a4 in Threads::create_vm (args=<optimized out>, canTryAgain=0xfff80001012f8b7f)
at /home/glaubitz/jdk/src/hotspot/share/runtime/thread.cpp:3887
#3 0xfff8000100a28198 in JNI_CreateJavaVM_inner (args=0xfff80001012f8ca8, penv=0xfff80001012f8ca0, vm=0xfff80001012f8c98)
at /home/glaubitz/jdk/src/hotspot/share/prims/jni.cpp:3852
#4 JNI_CreateJavaVM (vm=0xfff80001012f8c98, penv=0xfff80001012f8ca0, args=0xfff80001012f8ca8)
at /home/glaubitz/jdk/src/hotspot/share/prims/jni.cpp:3935
#5 0xfff800010024bb3c in InitializeJVM (ifn=<synthetic pointer>, penv=0xfff80001012f8ca0, pvm=0xfff80001012f8c98)
at /home/glaubitz/jdk/src/java.base/share/native/libjli/java.c:1538
#6 JavaMain (_args=<optimized out>) at /home/glaubitz/jdk/src/java.base/share/native/libjli/java.c:417
#7 0xfff8000100250d64 in ThreadJavaMain (args=0x7feffffae60) at /home/glaubitz/jdk/src/java.base/unix/native/libjli/java_md_solinux.c:734
#8 0xfff8000100365010 in start_thread (arg=0xfff80001012f9900) at pthread_create.c:486
#9 0xfff8000100672154 in __thread_start () at ../sysdeps/unix/sysv/linux/sparc/sparc64/clone.S:78
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(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