Segfault toward end of hotspot-comp build

Charles Oliver Nutter headius at headius.com
Tue Sep 6 07:53:56 PDT 2011


Perhaps I've got an environmental issue here, but I'd like to be sure
I'm building hotspot-comp properly. What's causing this?

Linking vm...
echo Linking launcher...
Linking launcher...
gcc -m64 -Xlinker -O1 -Wl,--hash-style=both  -Xlinker -z -Xlinker
noexecstack -m64 -Xlinker -export-dynamic  -L `pwd` -o gamma
launcher/java_md.o launcher/jli_util.o launcher/wildcard.o
launcher/java.o -ljvm -lm -ldl -lpthread
make[4]: Leaving directory
`/home/headius/projects/hotspot/build/linux/linux_amd64_compiler2/product'
All done.
make[3]: Leaving directory
`/home/headius/projects/hotspot/build/linux/linux_amd64_compiler2/product'
cd linux_amd64_compiler2/product && ./test_gamma
java full version "1.7.0_02-ea-b05"
Using java runtime at:
/home/headius/java/re/j2se/1.7.0/latest/binaries/linux-amd64/jre
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (globals.cpp:374), pid=14670, tid=47908911146752
#  guarantee(faddr != NULL && faddr->is_uintx()) failed: wrong flag type
#
# JRE version: 7.0_02-b05
# Java VM: OpenJDK 64-Bit Server VM (22.0-b02-internal mixed mode
linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/headius/projects/hotspot/build/linux/linux_amd64_compiler2/product/hs_err_pid14670.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
Aborted
make[2]: *** [product] Error 134
make[2]: Leaving directory `/home/headius/projects/hotspot/build/linux'
make[1]: *** [generic_build2] Error 2
make[1]: Leaving directory `/home/headius/projects/hotspot/make'
make: *** [product] Error 2
make: Leaving directory `/home/headius/projects/hotspot/make'

And the relevant bit of hs_err:

---------------  T H R E A D  ---------------

Current thread is native thread

Stack: [0x00002b92a9916000,0x00002b92a9a17000],
sp=0x00002b92a9a14930,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x867454]  VMError::report_and_die()+0x174
V  [libjvm.so+0x3e0b6a]  report_vm_error(char const*, int, char
const*, char const*)+0x4a
V  [libjvm.so+0x492000]
CommandLineFlagsEx::uintxAtPut(CommandLineFlagWithType, unsigned long,
FlagValueOrigin)+0x60
V  [libjvm.so+0x21b82a]  Arguments::set_heap_size()+0x10a
V  [libjvm.so+0x22009d]  Arguments::parse(JavaVMInitArgs const*)+0x4bd
V  [libjvm.so+0x81f66d]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x8d
V  [libjvm.so+0x528a0f]  JNI_CreateJavaVM+0x6f
C  [gamma+0x5002]  printf@@GLIBC_2.2.5+0x5002
C  [gamma+0x3dd8]  JavaMain+0xc1

The script I'm using to build:

https://gist.github.com/1148321

- Charlie


More information about the hotspot-compiler-dev mailing list