Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Hotspot Exception(Hotspot exception while running inside of Eclipse for JDK6)
icon8.gif  Hotspot Exception [message #504196] Thu, 17 December 2009 06:09 Go to next message
Eclipse UserFriend
I have code that compiles and runs outside of Eclipse using both JDK5/6. Inside Eclipse, it compiles/runs with JDK5, but with JDK6 the JVM throws a Hotspot Exception and dies. Any help/ideas would be greatly apprciated.

Environment:
SUSE Linux 10 Ent
JDK1.5.0_21/JDK1.6.0_13/JDK1.6.0_17
Eclipse Galileo v20090920-1017

#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xb7e7aba4, pid=2772, tid=3084958624
#
# Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# C [libc.so.6+0x48ba4] _IO_vfscanf+0x624
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x08057c00): JavaThread "main" [_thread_in_native, id=2777, stack(0xb7dbb000,0xb7e0c000)]

siginfo:si_signo=SIGBUS: si_errno=0, si_code=2 (BUS_ADRERR), si_addr=0x70f352cb

Registers:
EAX=0x70f35268, EBX=0xb7f4dff4, ECX=0xb7f4e3a0, EDX=0x00000031
ESP=0xb7e08e04, EBP=0xb7e08fe8, ESI=0x00000078, EDI=0x6fdcd290
EIP=0xb7e7aba4, CR2=0x70f352cb, EFLAGS=0x00010202

Top of Stack: (sp=0xb7e08e04)
0xb7e08e04: b7e08fa8 b7f6b780 b7e09004 b7f737c0
0xb7e08e14: b7e3549c b7e3dfcc b7f95049 6fcdd66d
0xb7e08e24: b7f73790 b7fa1ff4 b7e0bba0 00000000
0xb7e08e34: b7e08e98 b7f903d0 00000000 ffffffff
0xb7e08e44: 00000001 b7f4e3a0 08105c40 00000000
0xb7e08e54: 6fcc29d2 0d696911 00000012 b7f3ecd1
0xb7e08e64: 00000000 00000000 00000000 00000000
0xb7e08e74: 00000000 00000000 08040003 00000001

Instructions: (pc=0xb7e7aba4)
0xb7e7ab94: 01 8b 8d 60 fe ff ff 8b 95 ec fe ff ff 8b 41 34
0xb7e7aba4: f6 44 50 01 20 74 40 83 bd ec fe ff ff ff 75 ac

Stack: [0xb7dbb000,0xb7e0c000], sp=0xb7e08e04, free space=311k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x48ba4] _IO_vfscanf+0x624
C [libc.so.6+0x57941] vsscanf+0x91
C [libc.so.6+0x52b6e] sscanf+0x2e

[error occurred during error reporting (printing native stack), id 0x7]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;) V+0
j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io /File;)Z+300
j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lan g/String;Z)V+127
j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;) V+57
j java.lang.System.load(Ljava/lang/String;)V+7
j com.esri.arcgis.interop.NativeLoader.loadLibrary(Ljava/lang/ String;)V+123
j com.esri.arcgis.system.EngineInitializer.a()V+2
j com.esri.arcgis.system.EngineInitializer.initializeEngine()V +65
j arcgissamples.geoprocessing.GPEventListener.main([Ljava/lang /String;)V+0
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x0810a800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2790, stack(0x70b04000,0x70b55000)]
0x0811a800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2788, stack(0x70d8a000,0x70ddb000)]
0x08118800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=2787, stack(0x70ddb000,0x70e5c000)]
0x08115c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2786, stack(0x70e5c000,0x70edd000)]
0x08114400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2785, stack(0x70edd000,0x70f2e000)]
0x08100400 JavaThread "Finalizer" daemon [_thread_blocked, id=2784, stack(0x70f68000,0x70fb9000)]
0x080ff000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2783, stack(0x70fb9000,0x7100a000)]
=>0x08057c00 JavaThread "main" [_thread_in_native, id=2777, stack(0xb7dbb000,0xb7e0c000)]

Other Threads:
0x080fa000 VMThread [stack: 0x7100a000,0x7108b000] [id=2782]
0x0811c400 WatcherThread [stack: 0x70d09000,0x70d8a000] [id=2789]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen total 6272K, used 2056K [0xadbe0000, 0xae2e0000, 0xb4c50000)
eden space 5376K, 38% used [0xadbe0000,0xadde21f0,0xae120000)
from space 896K, 0% used [0xae200000,0xae200000,0xae2e0000)
to space 896K, 0% used [0xae120000,0xae120000,0xae200000)
PSOldGen total 57600K, used 0K [0x75850000, 0x79090000, 0xadbe0000)
object space 57600K, 0% used [0x75850000,0x75850000,0x79090000)
PSPermGen total 16384K, used 4224K [0x71850000, 0x72850000, 0x75850000)
object space 16384K, 25% used [0x71850000,0x71c70028,0x72850000)

Dynamic libraries:
06000000-06676000 r-xp 00000000 08:02 805715644 /usr/java/jre1.6.0_13/lib/i386/server/libjvm.so
06676000-066bb000 rwxp 00675000 08:02 805715644 /usr/java/jre1.6.0_13/lib/i386/server/libjvm.so
066bb000-06add000 rwxp 066bb000 00:00 0
08048000-08052000 r-xp 00000000 08:02 403065965 /usr/java/jre1.6.0_13/bin/java
08052000-08053000 rwxp 00009000 08:02 403065965 /usr/java/jre1.6.0_13/bin/java
08053000-082db000 rwxp 08053000 00:00 0 [heap]
6fb4a000-6fb5f000 r-xp 00000000 08:02 134293516 /usr/X11R6/lib/libICE.so.6.4
6fb5f000-6fb60000 rwxp 00014000 08:02 134293516 /usr/X11R6/lib/libICE.so.6.4
6fb60000-6fb62000 rwxp 6fb60000 00:00 0
6fb62000-6fb6a000 r-xp 00000000 08:02 134293518 /usr/X11R6/lib/libSM.so.6.0
6fb6a000-6fb6b000 rwxp 00007000 08:02 134293518 /usr/X11R6/lib/libSM.so.6.0
6fb6b000-6fb75000 r-xp 00000000 08:02 805337488 /lib/libgcc_s.so.1
6fb75000-6fb76000 rwxp 00009000 08:02 805337488 /lib/libgcc_s.so.1
6fb76000-6fb85000 r-xp 00000000 08:02 67287304 /etc/ld.so.cache
6fb85000-6fbd1000 r-xp 00000000 08:02 134293606 /usr/X11R6/lib/libXt.so.6.0
6fbd1000-6fbd5000 rwxp 0004b000 08:02 134293606 /usr/X11R6/lib/libXt.so.6.0
6fbd5000-6fc9c000 r-xp 00000000 08:02 134678987 /export/prod/arcgis/vmw/misc/linux/gcc/fixed3/lib/libstdc++. so.6
6fc9c000-6fca1000 rwxp 000c7000 08:02 134678987 /export/prod/arcgis/vmw/misc/linux/gcc/fixed3/lib/libstdc++. so.6
6fca1000-6fca6000 rwxp 6fca1000 00:00 0
6fca6000-6fdcb000 r-xp 00000000 08:02 738801737 /export/prod/arcgis/vmw/mw/lib-linux_optimized/libkernel32.s o
6fdcb000-6fde1000 rwxp 00124000 08:02 738801737 /export/prod/arcgis/vmw/mw/lib-linux_optimized/libkernel32.s o
6fde1000-6fde9000 rwxp 6fde1000 00:00 0
6fde9000-6fe07000 r-xp 00000000 08:02 738801747 /export/prod/arcgis/vmw/mw/lib-linux_optimized/libmsvcrt.so
6fe07000-6fe0a000 rwxp 0001e000 08:02 738801747 /export/prod/arcgis/vmw/mw/lib-linux_optimized/libmsvcrt.so
6fe0a000-70000000 r-xp 00000000 08:02 738801738 /export/prod/arcgis/vmw/mw/lib-linux_optimized/libgdiuser32. so
70000000-71000000 rwxs 00000000 08:02 269557938 /tmp/esri_erici/Mw_erici/A2F20E5A3817CC7CFE1C7B459E80670E.26 9557937.gma_heap
71000000-7100a000 rwxp 71000000 00:00 0
7100a000-7100b000 ---p 7100a000 00:00 0
7100b000-710be000 rwxp 7100b000 00:00 0
710be000-7124f000 r-xs 02a34000 08:02 489843084 /usr/java/jre1.6.0_13/lib/rt.jar
7124f000-71250000 ---p 7124f000 00:00 0
71250000-712d0000 rwxp 71250000 00:00 0
712d0000-712d1000 ---p 712d0000 00:00 0
712d1000-71351000 rwxp 712d1000 00:00 0
71351000-71352000 ---p 71351000 00:00 0
71352000-713d2000 rwxp 71352000 00:00 0
713d2000-713d3000 ---p 713d2000 00:00 0
713d3000-7145b000 rwxp 713d3000 00:00 0
7145b000-71473000 rwxp 7145b000 00:00 0
71473000-71490000 rwxp 71473000 00:00 0
71490000-71635000 rwxp 71490000 00:00 0
71635000-7163d000 rwxp 71635000 00:00 0
7163d000-71655000 rwxp 7163d000 00:00 0
71655000-71672000 rwxp 71655000 00:00 0
71672000-71816000 rwxp 71672000 00:00 0
71816000-7181b000 rwxp 71816000 00:00 0
7181b000-7184f000 rwxp 7181b000 00:00 0
7184f000-72850000 rwxp 7184f000 00:00 0
72850000-75850000 rwxp 72850000 00:00 0
75850000-79090000 rwxp 75850000 00:00 0
79090000-adbe0000 rwxp 79090000 00:00 0
adbe0000-ae2e0000 rwxp adbe0000 00:00 0
ae2e0000-b4c50000 rwxp ae2e0000 00:00 0
b4c53000-b4c5a000 r-xp 00000000 08:02 134293556 /usr/X11R6/lib/libXi.so.6.0
b4c5a000-b4c5b000 rwxp 00006000 08:02 134293556 /usr/X11R6/lib/libXi.so.6.0
b4c5b000-b4c64000 rwxp b4c5b000 00:00 0
b4c64000-b4d1b000 rwxp b4c64000 00:00 0
b4d1b000-b4f5b000 rwxp b4d1b000 00:00 0
b4f5b000-b7d1b000 rwxp b4f5b000 00:00 0
b7d1b000-b7d2a000 r-xp 00000000 08:02 671555310 /usr/java/jre1.6.0_13/lib/i386/libzip.so
b7d2a000-b7d2c000 rwxp 0000e000 08:02 671555310 /usr/java/jre1.6.0_13/lib/i386/libzip.so
b7d2c000-b7d4f000 r-xp 00000000 08:02 671555308 /usr/java/jre1.6.0_13/lib/i386/libjava.so
b7d4f000-b7d51000 rwxp 00023000 08:02 671555308 /usr/java/jre1.6.0_13/lib/i386/libjava.so
b7d51000-b7d59000 rwxs 00000000 08:02 806243811 /tmp/hsperfdata_erici/2772
b7d59000-b7d8e000 r-xs 00000000 08:02 336022090 /var/run/nscd/passwd
b7d8e000-b7d9f000 r-xp 00000000 08:02 805323573 /lib/libnsl-2.4.so
b7d9f000-b7da1000 rwxp 00010000 08:02 805323573 /lib/libnsl-2.4.so
b7da1000-b7da3000 rwxp b7da1000 00:00 0
b7da6000-b7db1000 r-xp 00000000 08:02 671555307 /usr/java/jre1.6.0_13/lib/i386/libverify.so
b7db1000-b7db2000 rwxp 0000b000 08:02 671555307 /usr/java/jre1.6.0_13/lib/i386/libverify.so
b7db2000-b7db9000 r-xp 00000000 08:02 805323592 /lib/librt-2.4.so
b7db9000-b7dbb000 rwxp 00006000 08:02 805323592 /lib/librt-2.4.so
b7dbb000-b7dbe000 ---p b7dbb000 00:00 0
b7dbe000-b7e0c000 rwxp b7dbe000 00:00 0
b7e0c000-b7e2f000 r-xp 00000000 08:02 805323570 /lib/libm-2.4.so
b7e2f000-b7e31000 rwxp 00022000 08:02 805323570 /lib/libm-2.4.so
b7e31000-b7e32000 rwxp b7e31000 00:00 0
b7e32000-b7f4b000 r-xp 00000000 08:02 805323562 /lib/libc-2.4.so
b7f4b000-b7f4d000 r-xp 00118000 08:02 805323562 /lib/libc-2.4.so
b7f4d000-b7f4f000 rwxp 0011a000 08:02 805323562 /lib/libc-2.4.so
b7f4f000-b7f52000 rwxp b7f4f000 00:00 0
b7f52000-b7f54000 r-xp 00000000 08:02 805323568 /lib/libdl-2.4.so
b7f54000-b7f56000 rwxp 00001000 08:02 805323568 /lib/libdl-2.4.so
b7f56000-b7f5d000 r-xp 00000000 08:02 941491942 /usr/java/jre1.6.0_13/lib/i386/jli/libjli.so
b7f5d000-b7f5f000 rwxp 00006000 08:02 941491942 /usr/java/jre1.6.0_13/lib/i386/jli/libjli.so
b7f5f000-b7f6f000 r-xp 00000000 08:02 805323588 /lib/libpthread-2.4.so
b7f6f000-b7f71000 rwxp 0000f000 08:02 805323588 /lib/libpthread-2.4.so
b7f71000-b7f74000 rwxp b7f71000 00:00 0
b7f75000-b7f79000 r-xp 00000000 08:02 134293608 /usr/X11R6/lib/libXtst.so.6.1
b7f79000-b7f7a000 rwxp 00004000 08:02 134293608 /usr/X11R6/lib/libXtst.so.6.1
b7f7a000-b7f80000 r-xp 00000000 08:02 739552255 /usr/java/jre1.6.0_13/lib/i386/native_threads/libhpi.so
b7f80000-b7f81000 rwxp 00006000 08:02 739552255 /usr/java/jre1.6.0_13/lib/i386/native_threads/libhpi.so
b7f81000-b7f82000 rwxp b7f81000 00:00 0
b7f82000-b7f83000 r-xp b7f82000 00:00 0
b7f83000-b7f84000 r-xp 00000000 08:02 671555303 /usr/java/jre1.6.0_13/lib/i386/libjsig.so
b7f84000-b7f85000 rwxp 00001000 08:02 671555303 /usr/java/jre1.6.0_13/lib/i386/libjsig.so
b7f85000-b7f87000 rwxp b7f85000 00:00 0
b7f87000-b7fa1000 r-xp 00000000 08:02 805323555 /lib/ld-2.4.so
b7fa1000-b7fa3000 rwxp 00019000 08:02 805323555 /lib/ld-2.4.so
bf959000-bf971000 rwxp bf959000 00:00 0 [stack]
ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]

VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Xbootclasspath:/usr/java/jre1.6.0_13/lib/rt.jar:/usr/java/j re1.6.0_13/lib/jsse.jar:/usr/java/jre1.6.0_13/lib/jce.jar:/u sr/java/jre1.6.0_13/lib/charsets.jar
java_command: arcgissamples.geoprocessing.GPEventListener
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/java2
CLASSPATH=/home/erici/crss2/build/classes
PATH=/export/prod/arcgis/python25/bin:/export/prod/arcgis/ra ster/bristol/x86linux:/export/prod/arcgis/vmw/mw/bin:/export /prod/arcgis/vmw/mw/bin-i86_linux:/export/prod/arcgis/vmw/mw /bin:/export/prod/arcgis/vmw/mw/bin-i86_linux:/export/prod/a rcgis/vmw/mw/bin-linux_optimized:/usr/java2/jre/bin:/home/er ici/crss2/dist/scripts:/home/erici/crss2/dist/bin:/prod/jaco rb/bin:/export/prod/apache/apache-ant-1.6.2/bin:/usr/bin:/bi n:/usr/sbin:/sbin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/u sr/bin/X11:/usr/lib/mit/bin:/usr/lib/mit/sbin:.:/usr/sbin:/u sr/bsd:/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/prod /oracle10/bin:/usr/bin/X11:/export/prod/arcgis/bin
LD_LIBRARY_PATH=/usr/java/jre1.6.0_13/lib/i386/server:/usr/j ava/jre1.6.0_13/lib/i386:/usr/java/jre1.6.0_13/../lib/i386:/ usr/java/jre1.6.0_13/lib/i386/client:/usr/java/jre1.6.0_13/l ib/i386:/export/prod/arcgis/python25/lib:/export/prod/arcgis /raster/bin/x86linux:/export/prod/arcgis/bin:/export/prod/ar cgis/com:/export/prod/arcgis/vmw/mw/lib-linux:/export/prod/a rcgis/vmw/mw/lib-linux_optimized:/export/prod/arcgis/vmw/mw/ ../misc/linux/gcc/fixed3/lib::/prod/oracle10/lib::/usr/X11R6 /lib:/usr/lib:/usr/local/lib:.:/usr/lib/xulrunner-1.8.0.1:/u sr/lib/xulrunner-1.8.0.1
LD_PRELOAD=/usr/java2/jre/lib/i386/libjsig.so
SHELL=/usr/bin/tcsh
DISPLAY=olguest:0.0
HOSTTYPE=i386
OSTYPE=linux
ARCH=x86linux
MACHTYPE=i686-suse-linux
LD_ASSUME_KERNEL=

Signal Handlers:
SIGSEGV: [libjvm.so+0x6071f0], sa_mask[0]=0x7fffffff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x6071f0], sa_mask[0]=0x7fffffff, sa_flags=0x10000004
SIGFPE: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGPIPE: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGXFSZ: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGILL: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x506d80], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP:
[error occurred during error reporting (printing signal handlers), id 0x7]


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

OS:SUSE Linux Enterprise Server 10 (i586)
VERSION = 10

uname:Linux 2.6.16.21-0.8-bigsmp #1 SMP Mon Jul 3 18:25:39 UTC 2006 i686
libc:glibc 2.4 NPTL 2.4
rlimit: STACK 8192k, CORE 0k, NPROC 40960, NOFILE 1024, AS infinity
load average:
[error occurred during error reporting (printing OS information), id 0x7]

CPU:total 4 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 4143972k(589368k free), swap 8401912k(8401760k free)

vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE (1.6.0_13-b03), built on Mar 9 2009 01:16:42 by "java_re" with gcc 3.2.1-7a (J2SE release)


[error occurred during error reporting (printing date and time), id 0x7]

icon10.gif  Re: Hotspot Exception [message #504226 is a reply to message #504196] Thu, 17 December 2009 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Adding -client to VM arguments fixed this for me. Anyone know why I NEED this parameter for JDK6 and not for JDK5?
Re: Hotspot Exception [message #504684 is a reply to message #504196] Tue, 22 December 2009 02:52 Go to previous messageGo to next message
Eclipse UserFriend
Generally it is not Eclipse but Java VM problem. Try to set JDK1.6.0_17 in Window->Preferences->Java->Installed JREs as default VM.
Re: Hotspot Exception [message #505846 is a reply to message #504226] Tue, 05 January 2010 05:42 Go to previous messageGo to next message
Eclipse UserFriend
eironside@esri.com wrote:
> Adding -client to VM arguments fixed this for me. Anyone know why I
> NEED this parameter for JDK6 and not for JDK5?
Strange: I thought 'client' is the default. Anyway, in client mode less
JITing is done and hence it might not run into a bug that's in the JIT
compiler when running in server mode.

Dani
Re: Hotspot Exception [message #505977 is a reply to message #504684] Tue, 05 January 2010 12:11 Go to previous message
Eclipse UserFriend
Found out a little more info:
Apparently at Java 6, the JVM will default to the type of operational environment when choosing client/server. My OS is "SUSE Linux 10 Enterprise Server" edition, hence my Java 6 JVM will default to server.
Previous Topic:Information control of Java text hover
Next Topic:Security Constraint not working with Tomcat Server in Eclipse
Goto Forum:
  


Current Time: Sun Mar 16 06:40:53 EDT 2025

Powered by FUDForum. Page generated in 0.04425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top