Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2006 12:17:34 +0200
From:      "Philippe Waelti" <philippe.waelti@gmail.com>
To:        freebsd-java@FreeBSD.org
Subject:   [BUG] Unexpected error in HotSpot Virtual Machine
Message-ID:  <d6eb49ae0605020317p496e6759nb21c944661faccc@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_Part_3049_16619328.1146565054660
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello !

Here's an unexpected error which arrive using one of my student's program.

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGBUS (0xa) at pc=3D0x284fbea5, pid=3D36991, tid=3D0x825c400
#
# Java VM: Java HotSpot(TM) Client VM (diablo-1.5.0_06-b00 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x370ea5]
#
# An error report file with more information is saved as hs_err_pid36991.lo=
g
#
# If you would like to submit a bug report, please write
# a letter to freebsd-java@FreeBSD.org mailing list
#
Abort trap: 6 (core dumped)

Source files and core file can be (temporary) found here (~23M) :
http://pwaelti.eivd.ch/Java_Fail.tar.bz2
Log is attached.

How-To Crash application :
(1) Launch : # java Parser cacm.all
(2) Wait that the "Recherche" button become active
(3) Enter "algorithm" in the first text entry field and press (upper)
button "Recherche"
(4) Select text in the field that contains the results ("R=E9sultats"),
repeat this while application decide to crash

Hope this can help, thanks for your great work !

(I just reinstall 6.1-RC2 yesterday from 6.0-p7)

PWI

------=_Part_3049_16619328.1146565054660
Content-Type: application/octet-stream; name=hs_err_pid36991.log
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_emq33ovt
Content-Disposition: attachment; filename="hs_err_pid36991.log"

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGBUS (0xa) at pc=0x284fbea5, pid=36991, tid=0x825c400
#
# Java VM: Java HotSpot(TM) Client VM (diablo-1.5.0_06-b00 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x370ea5]
#

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

Current thread (0x0825c200):  JavaThread "AWT-EventQueue-0" [_thread_in_vm_trans, id=136692736]

siginfo:si_signo=10, si_errno=0, si_code=12, si_addr=0x28643080

Registers:
EAX=0x286214a8, EBX=0x2860d7e4, ECX=0x28643000, EDX=0x286214b0
ESP=0xbf6723bc, EBP=0xbf672484, ESI=0x00000080, EDI=0x28623068
EIP=0x284fbea5, EFLAGS=0x00010202

Top of Stack: (sp=0xbf6723bc)
0xbf6723bc:   0000001c 08054498 bf6723e4 280a278d
0xbf6723cc:   280ad4b4 08132100 bf672404 280ab345
0xbf6723dc:   35654050 bf672424 00000000 00000000
0xbf6723ec:   00000000 bf67242c 00000000 00000000
0xbf6723fc:   080626ac 080626a8 00000012 08061800
0xbf67240c:   00000000 00000000 00000d36 0825c200
0xbf67241c:   08062680 08062640 bf672434 2809d8e4
0xbf67242c:   0825c200 08062640 bf672464 284fa1a7 

Instructions: (pc=0x284fbea5)
0x284fbe95:   75 94 d3 ee 8b 38 8b 0a 21 fe 8b bb 60 68 00 00
0x284fbea5:   c7 04 31 01 00 00 00 8b 17 85 d2 0f 84 cf fc ff 

Stack: [0xbf634000,0xbf674000),  sp=0xbf6723bc,  free space=248k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x370ea5]
V  [libjvm.so+0x42d01a]
V  [libjvm.so+0x1f8cb3]
V  [libjvm.so+0x23a8ed]
V  [libjvm.so+0x4011cf]
V  [libjvm.so+0x37e35f]
V  [libjvm.so+0x1afbd8]
v  ~RuntimeStub::new_type_array Runtime1 stub
J  javax.swing.text.GapContent.getChars(IILjavax/swing/text/Segment;)V
J  javax.swing.text.WrappedPlainView.loadText(Ljavax/swing/text/Segment;II)V
J  javax.swing.text.WrappedPlainView.calculateBreakPosition(II)I
J  javax.swing.text.WrappedPlainView$WrappedLine.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
j  javax.swing.text.BoxView.paintChild(Ljava/awt/Graphics;Ljava/awt/Rectangle;I)V+11
j  javax.swing.text.BoxView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+147
j  javax.swing.text.WrappedPlainView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+118
j  javax.swing.plaf.basic.BasicTextUI$RootView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+48
j  javax.swing.plaf.basic.BasicTextUI.paintSafely(Ljava/awt/Graphics;)V+65
j  javax.swing.plaf.basic.BasicTextUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+45
j  javax.swing.plaf.basic.BasicTextUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+3
J  javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
j  javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+174
j  javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
j  javax.swing.JComponent._paintImmediately(IIII)V+739
j  javax.swing.JComponent.paintImmediately(IIII)V+83
j  javax.swing.RepaintManager.paintDirtyRegions()V+314
j  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
V  [libjvm.so+0x26f2d8]
V  [libjvm.so+0x387208]
V  [libjvm.so+0x26f3ef]
V  [libjvm.so+0x26f886]
V  [libjvm.so+0x26f9fe]
V  [libjvm.so+0x2d1b1a]
V  [libjvm.so+0x3f6670]
V  [libjvm.so+0x3f6731]
V  [libjvm.so+0x3843b9]
C  [libpthread.so.2+0xe319]  _pthread_create+0x6d1

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~RuntimeStub::new_type_array Runtime1 stub
J  javax.swing.text.GapContent.getChars(IILjavax/swing/text/Segment;)V
J  javax.swing.text.WrappedPlainView.loadText(Ljavax/swing/text/Segment;II)V
J  javax.swing.text.WrappedPlainView.calculateBreakPosition(II)I
J  javax.swing.text.WrappedPlainView$WrappedLine.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V
j  javax.swing.text.BoxView.paintChild(Ljava/awt/Graphics;Ljava/awt/Rectangle;I)V+11
j  javax.swing.text.BoxView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+147
j  javax.swing.text.WrappedPlainView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+118
j  javax.swing.plaf.basic.BasicTextUI$RootView.paint(Ljava/awt/Graphics;Ljava/awt/Shape;)V+48
j  javax.swing.plaf.basic.BasicTextUI.paintSafely(Ljava/awt/Graphics;)V+65
j  javax.swing.plaf.basic.BasicTextUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+45
j  javax.swing.plaf.basic.BasicTextUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+3
J  javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  javax.swing.JLayeredPane.paint(Ljava/awt/Graphics;)V+73
J  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V
J  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
j  javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+174
j  javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
j  javax.swing.JComponent._paintImmediately(IIII)V+739
j  javax.swing.JComponent.paintImmediately(IIII)V+83
j  javax.swing.RepaintManager.paintDirtyRegions()V+314
j  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x082d9400 JavaThread "TimerQueue" daemon [_thread_blocked, id=137205248]
  0x0805cc00 JavaThread "DestroyJavaVM" [_thread_blocked, id=134594560]
=>0x0825c200 JavaThread "AWT-EventQueue-0" [_thread_in_vm_trans, id=136692736]
  0x08245e00 JavaThread "AWT-Shutdown" [_thread_blocked, id=136691712]
  0x0821f400 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=136443392]
  0x081ee600 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=136243200]
  0x08143c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=135544320]
  0x08143800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=135543296]
  0x08143400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=135542272]
  0x08143000 JavaThread "Finalizer" daemon [_thread_blocked, id=135541248]
  0x08067c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=134643200]

Other Threads:
  0x08056f00 VMThread [id=134642176]
  0x08056a00 WatcherThread [id=135664128]

VM state:synchronizing (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x08062400/0x08062440] Safepoint_lock - owner thread: 0x08056f00
[0x080624c0/0x08062500] Threads_lock - owner thread: 0x08056f00
[0x08053700/0x08062ac0] Heap_lock - owner thread: 0x0825c200

Heap
 def new generation   total 1728K, used 1535K [0x2d5d0000, 0x2d7b0000, 0x2dab0000)
  eden space 1536K,  99% used [0x2d5d0000, 0x2d74de40, 0x2d750000)
  from space 192K,   4% used [0x2d750000, 0x2d752088, 0x2d780000)
  to   space 192K,   0% used [0x2d780000, 0x2d780000, 0x2d7b0000)
 tenured generation   total 22472K, used 18758K [0x2dab0000, 0x2f0a2000, 0x315d0000)
   the space 22472K,  83% used [0x2dab0000, 0x2ed01a40, 0x2ed01c00, 0x2f0a2000)
 compacting perm gen  total 8192K, used 7018K [0x315d0000, 0x31dd0000, 0x355d0000)
   the space 8192K,  85% used [0x315d0000, 0x31caaa50, 0x31caac00, 0x31dd0000)
No shared spaces configured.

Dynamic libraries:
0x08048000 	/usr/local/diablo-jdk1.5.0/bin/java
0x2807d000 	/lib/libz.so.3
0x2808d000 	/usr/lib/libpthread.so.2
0x280b2000 	/lib/libc.so.6
0x2818b000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/client/libjvm.so
0x2862c000 	/lib/libm.so.4
0x28644000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/native_threads/libhpi.so
0x28655000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libverify.so
0x28662000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libjava.so
0x28681000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libzip.so
0x35743000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libawt.so
0x357df000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libmlib_image.so
0x3589d000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/xawt/libmawt.so
0x358d4000 	/usr/X11R6/lib/libXext.so.6
0x358e1000 	/usr/X11R6/lib/libX11.so.6
0x359a2000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libfontmanager.so
0x35a27000 	/usr/lib/libstdc++.so.5
0x2d5cb000 	/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
0x35af1000 	/usr/X11R6/lib/libXcursor.so.1
0x35afa000 	/usr/X11R6/lib/libXrender.so.1
0x35b02000 	/usr/X11R6/lib/libXfixes.so.3
0x35b07000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libnet.so
0x35b18000 	/usr/local/diablo-jdk1.5.0/jre/lib/i386/libnio.so
0x35b1f000 	/usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
0x28052000 	/libexec/ld-elf.so.1

VM Arguments:
java_command: Parser cacm.all
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/local/diablo-jdk1.5.0
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/pwaelti/bin
LD_LIBRARY_PATH=/usr/local/diablo-jdk1.5.0/jre/lib/i386/client:/usr/local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/jre/../lib/i386
SHELL=/usr/local/bin/bash
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x426680], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGBUS: [libjvm.so+0x426680], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGFPE: [libjvm.so+0x387210], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGPIPE: [libjvm.so+0x387210], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGILL: [libjvm.so+0x387210], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGUSR1: [libjvm.so+0x3872e0], sa_mask[0]=0x00000000, sa_flags=0x00000040
SIGUSR2: [libjvm.so+0x387210], sa_mask[0]=0xffffffff, sa_flags=0x00000042
SIGHUP: [libjvm.so+0x385ac0], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGINT: [libjvm.so+0x385ac0], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGQUIT: [libjvm.so+0x385ac0], sa_mask[0]=0xffffffff, sa_flags=0x00000002
SIGTERM: [libjvm.so+0x385ac0], sa_mask[0]=0xffffffff, sa_flags=0x00000002


---------------  S Y S T E M  ---------------

OS:FreeBSD
uname:FreeBSD 6.1-RC2 FreeBSD 6.1-RC2 #2: Mon May  1 11:01:22 CEST 2006     root@pwiux01.heig-vd.ch:/usr/obj/usr/src/sys/PWIUX01 i386
rlimit: STACK 65536k, CORE infinity, NOFILE 11095
CPU:total 2 family 15, cmov, cx8, fxsr, mmx, ht

Memory: 4k page, physical 1869604k

vm_info: Java HotSpot(TM) Client VM (diablo-1.5.0_06-b00) for freebsd-x86, built on Feb 17 2006 00:12:58 by truk with gcc 3.4.4 [FreeBSD] 20050518


------=_Part_3049_16619328.1146565054660--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d6eb49ae0605020317p496e6759nb21c944661faccc>