Zero crashing on Linux-sparc with gcc-9

John Paul Adrian Glaubitz glaubitz at
Fri Sep 6 22:44:49 UTC 2019


In addition to the build failure of the server VM with gcc-9, Zero is affected as
well, but here it's not a syntax issue but the VM is segfaulting when built with

Backtrace is below. Any suggestions?


glaubitz at gcc202:~/jdk$ gdb ./build/linux-sparcv9-zero-release/jdk/bin/java
GNU gdb (Debian 8.3-1) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/linux-sparcv9-zero-release/jdk/bin/java...
(No debugging symbols found in ./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/".
[New Thread 0xfff800010137f900 (LWP 128093)]

Thread 2 "java" received signal SIGBUS, Bus error.
[Switching to Thread 0xfff800010137f900 (LWP 128093)]
0xfff8000100c5d0d4 in SharedRuntime::generate_stubs () at /home/glaubitz/jdk/src/hotspot/share/runtime/sharedRuntime.cpp:107
107       _resolve_static_call_blob            = generate_resolve_blob(CAST_FROM_FN_PTR(address, SharedRuntime::resolve_static_call_C),        "resolve_static_call");
(gdb) bt
#0  0xfff8000100c5d0d4 in SharedRuntime::generate_stubs () at /home/glaubitz/jdk/src/hotspot/share/runtime/sharedRuntime.cpp:107
#1  0xfff8000100a3d688 in init_globals () at /home/glaubitz/jdk/src/hotspot/share/runtime/init.cpp:131
#2  0xfff8000100cab8bc in Threads::create_vm (args=<optimized out>, canTryAgain=0xfff800010137eb8f) at /home/glaubitz/jdk/src/hotspot/share/runtime/thread.cpp:3773
#3  0xfff8000100a7f1e4 in JNI_CreateJavaVM_inner (args=0xfff800010137ecb8, penv=0xfff800010137ecb0, vm=0xfff800010137eca8) at /home/glaubitz/jdk/src/hotspot/share/prims/jni.cpp:3934
#4  JNI_CreateJavaVM (vm=0xfff800010137eca8, penv=0xfff800010137ecb0, args=0xfff800010137ecb8) at /home/glaubitz/jdk/src/hotspot/share/prims/jni.cpp:4017
#5  0xfff800010024bac8 in InitializeJVM (ifn=<synthetic pointer>, penv=0xfff800010137ecb0, pvm=0xfff800010137eca8) at /home/glaubitz/jdk/src/java.base/share/native/libjli/java.c:1539
#6  JavaMain (_args=<optimized out>) at /home/glaubitz/jdk/src/java.base/share/native/libjli/java.c:417
#7  0xfff8000100250e74 in ThreadJavaMain (args=0x7feffffa8f0) at /home/glaubitz/jdk/src/java.base/unix/native/libjli/java_md_solinux.c:740
#8  0xfff8000100363e68 in start_thread (arg=0xfff800010137f900) at pthread_create.c:486
#9  0xfff800010067032c in __thread_start () at ../sysdeps/unix/sysv/linux/sparc/sparc64/clone.S:78
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at
`. `'   Freie Universitaet Berlin - glaubitz at
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

More information about the hotspot-dev mailing list