hg: mlvm/mlvm/hotspot: indy: fix GC bug by reworking treatment of constant pool indices
Charles Oliver Nutter
headius at headius.com
Sun Jul 5 10:01:04 PDT 2009
Should this allow things to run correctly? I'm still getting crashes
without -Xint (maybe I don't have it built properly?)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x011a4cca, pid=23999, tid=2954375168
#
# JRE version: 7.0
# Java VM: OpenJDK Client VM (16.0-b03 mixed mode bsd-x86 )
# Problematic frame:
# V [libjvm.dylib+0x1a4cca]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x00822400): VMThread [stack: 0xb0103000,0xb0183000]
[id=-1340592128]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR),
si_addr=0xfffffff4
Registers:
EAX=0x00822400, EBX=0x011a4c86, ECX=0xb018243c, EDX=0x00000000
ESP=0xb01822e0, EBP=0xb0182388, ESI=0xb018243c, EDI=0xb0182454
EIP=0x011a4cca, EFLAGS=0x00010206
Top of Stack: (sp=0xb01822e0)
0xb01822e0: 01a3e1c7 b0182300 b0182368 011a67df
0xb01822f0: b0182454 00000001 01182338 b0182454
0xb0182300: b01826a8 b018243c b0182300 00822400
0xb0182310: b018243c b0182454 b01826a8 00000000
0xb0182320: 018daba0 00107ca0 00000000 00000005
0xb0182330: b0182350 b0182454 b00ffef8 00000000
0xb0182340: b00ffef8 b00ffef0 01aecfc8 01a3e1c7
0xb0182350: b01826a8 011a6736 b0182380 011a7146
Instructions: (pc=0x011a4cca)
0x011a4cba: 00 8b 8d 7c ff ff ff 8b 04 82 89 45 84 8b 51 10
0x011a4cca: 8b 72 f4 c7 45 98 00 00 00 00 85 f6 74 26 8b 90
Stack: [0xb0103000,0xb0183000], sp=0xb01822e0, free space=1fcb0181cd0k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x1a4cca]
V [libjvm.dylib+0x1a53c6]
V [libjvm.dylib+0x41d6d5]
V [libjvm.dylib+0x41da99]
V [libjvm.dylib+0x3b1de9]
V [libjvm.dylib+0x1cfb66]
V [libjvm.dylib+0x18862e]
V [libjvm.dylib+0x1d1826]
V [libjvm.dylib+0x13e753]
V [libjvm.dylib+0x1cf4f5]
V [libjvm.dylib+0x45d58b]
V [libjvm.dylib+0x461de5]
V [libjvm.dylib+0x4604bd]
V [libjvm.dylib+0x46112c]
V [libjvm.dylib+0x46141c]
V [libjvm.dylib+0x36bb05]
C [libSystem.B.dylib+0x32155] _pthread_start+0x141
C [libSystem.B.dylib+0x32012] thread_start+0x22
VM_Operation (0xb00ffa7c): GenCollectForAllocation, mode: safepoint,
requested by thread 0x00800800
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00839c00 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=-1335832576, stack(0xb050d000,0xb060d000)]
0x00838400 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=-1336889344, stack(0xb048b000,0xb050b000)]
0x00835800 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=-1337421824, stack(0xb0389000,0xb0489000)]
0x00829400 JavaThread "Finalizer" daemon [_thread_blocked,
id=-1338478592, stack(0xb0287000,0xb0387000)]
0x00824000 JavaThread "Reference Handler" daemon [_thread_blocked,
id=-1339535360, stack(0xb0185000,0xb0285000)]
0x00800800 JavaThread "main" [_thread_blocked, id=-1341124608,
stack(0xb0001000,0xb0101000)]
Other Threads:
=>0x00822400 VMThread [stack: 0xb0103000,0xb0183000] [id=-1340592128]
0x0083a800 WatcherThread [stack: 0xb060f000,0xb068f000] [id=-1335300096]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00103050] Threads_lock - owner thread: 0x00822400
[0x00103410] Heap_lock - owner thread: 0x00800800
Heap
def new generation total 960K, used 932K [0x03a40000, 0x03b40000, 0x060b0000)
eden space 896K, 100% used [0x03a40000, 0x03b20000, 0x03b20000)
from space 64K, 57% used [0x03b30000, 0x03b39348, 0x03b40000)
to space 64K, 0% used [0x03b20000, 0x03b20080, 0x03b30000)
tenured generation total 4096K, used 527K [0x060b0000, 0x064b0000,
0x22e40000)
the space 4096K, 12% used [0x060b0000, 0x06133c78, 0x06133e00, 0x064b0000)
compacting perm gen total 12288K, used 4828K [0x22e40000,
0x23a40000, 0x26e40000)
the space 12288K, 39% used [0x22e40000, 0x232f7178, 0x232f7200, 0x23a40000)
No shared spaces configured.
Dynamic libraries:
0x00000000 /usr/lib/libgcc_s.1.dylib
0x00000000 /usr/lib/libSystem.B.dylib
0x00000000 /usr/lib/system/libmathCommon.A.dylib
0x01000000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/client/libjvm.dylib
0x00000000 /usr/lib/libstdc++.6.dylib
0x0001d000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libverify.dylib
0x0002b000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libjava.dylib
0x00052000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/native_threads/libhpi.dylib
0x00065000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libzip.dylib
0x00731000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libnet.dylib
0x0075d000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libmanagement.dylib
0x00786000 /Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/libnio.dylib
VM Arguments:
jvm_args: -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m
-Xss1024k -Djna.boot.library.path=/Users/headius/projects/jruby/lib/native/darwin
-Djffi.boot.library.path=/Users/headius/projects/jruby/lib/native/*Darwin
-Djruby.compile.invokedynamic=true -XX:+EnableInvokeDynamic
-Dfile.encoding=UTF-8
-Xbootclasspath/a:/Users/headius/projects/jruby/lib/jruby.jar:/Users/headius/projects/jruby/lib/bsf.jar
-Djruby.home=/Users/headius/projects/jruby
-Djruby.lib=/Users/headius/projects/jruby/lib -Djruby.script=jruby
-Djruby.shell=/bin/sh
java_command: org.jruby.Main -d -e puts 1
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/MLVM/Home
PATH=/System/Library/Frameworks/JavaVM.framework/Versions/MLVM/Home/bin:/Users/headius/projects/jruby/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin
SHELL=/bin/bash
DISPLAY=/tmp/launch-QBFve9/:0
DYLD_FALLBACK_LIBRARY_PATH=/Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386/client:/Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/lib/i386:/Users/headius/projects/davinci/sources/build/bsd-i586/j2sdk-image/jre/../lib/i386
Signal Handlers:
SIGSEGV: [libjvm.dylib+0x45ced0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGBUS: [libjvm.dylib+0x45ced0], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGFPE: [libjvm.dylib+0x367c90], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGPIPE: [libjvm.dylib+0x367c90], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGXFSZ: [libjvm.dylib+0x367c90], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGILL: [libjvm.dylib+0x367c90], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGUSR1: SIG_DFL, sa_mask[0]=0x63807efb, sa_flags=0x00000000
SIGUSR2: [libjvm.dylib+0x368e80], sa_mask[0]=0x00000000, sa_flags=0x00000042
SIGHUP: [libjvm.dylib+0x36a480], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGINT: [libjvm.dylib+0x36a480], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGTERM: [libjvm.dylib+0x36a480], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
SIGQUIT: [libjvm.dylib+0x36a480], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
--------------- S Y S T E M ---------------
OS:Bsd
uname:Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17
PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
rlimit: STACK 8192k, CORE 0k, NPROC 266, NOFILE 10240
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23
stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 1474740k(368685k free)
vm_info: OpenJDK Client VM (16.0-b03) for bsd-x86 JRE
(1.7.0-internal-headius_2009_06_30_12_12-b00), built on Jul 2 2009
11:14:25 by "headius" with gcc 4.0.1 (Apple Inc. build 5490)
time: Sun Jul 5 11:56:08 2009
elapsed time: 0 seconds
On Sat, Jul 4, 2009 at 6:09 AM, <john.rose at sun.com> wrote:
> Changeset: 9e9ae1896db0
> Author: jrose
> Date: 2009-07-04 04:02 -0700
> URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/9e9ae1896db0
>
> indy: fix GC bug by reworking treatment of constant pool indices
>
> ! indy.compiler.patch
> ! indy.patch
>
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
>
More information about the mlvm-dev
mailing list