JVM crash using jsmile

The engine.
Post Reply
Mohsin Beg
Posts: 11
Joined: Tue Feb 12, 2008 2:46 am

JVM crash using jsmile

Post by Mohsin Beg »

I can consistently reproduce a jvm crash while calling AnnealedMap.
The details of the jvm log are attached.
Any suggestions of what may be causing this ?

Sincerely,

-Mohsin

Code: Select all

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1001ad60, pid=5864, tid=3060
#
# Java VM: Java HotSpot(TM) Server VM (1.6.0_02-ea-b02 mixed mode)
# Problematic frame:
# C  [jsmile.dll+0x1ad60]
#
# 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 (0x0d449000):  JavaThread "pool-5-thread-1" [_thread_in_native, id=3060]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000010

Registers:
EAX=0x00000000, EBX=0x00005e88, ECX=0x0f8d1788, EDX=0x103af864
ESP=0x0fc2efa8, EBP=0x00000079, ESI=0x0fc2f6a8, EDI=0x00000000
EIP=0x1001ad60, EFLAGS=0x00010206

Top of Stack: (sp=0x0fc2efa8)
0x0fc2efa8:   0fc2f6a8 0fc2f4e0 10379698 10379698
0x0fc2efb8:   00000000 00000001 00000000 10308e80
0x0fc2efc8:   00005e88 00000000 ffffffff ffffffff
0x0fc2efd8:   00000000 ffffffff ffffffff 00000000
0x0fc2efe8:   00000000 0fc2efcc 00000001 00000000
0x0fc2eff8:   00000004 00000005 00000007 00000009
0x0fc2f008:   0000000b 0000001a 0000001c 00000021
0x0fc2f018:   0fc2eff8 00000000 00000000 100214c5 

Instructions: (pc=0x1001ad60)
0x1001ad50:   00 00 00 8b 44 13 08 85 c0 75 02 33 c0 8b 40 08
0x1001ad60:   8b 50 10 52 51 8d 84 24 84 00 00 00 68 78 ef 10 


Stack: [0x0fbe0000,0x0fc30000),  sp=0x0fc2efa8,  free space=315k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [jsmile.dll+0x1ad60]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  smile.Network.annealedMap([Ljava/lang/String;Lsmile/AnnealedMapTuning;)Lsmile/AnnealedMapResults;+0
j  com.oracle.rootcause.diagnostic.impl.CausalDiagnostic.annealedMap([Ljava/lang/String;Lsmile/AnnealedMapTuning;)Lsmile/AnnealedMapResults;+6
j  com.oracle.rootcause.helper.expectedutility.AposterioriProbabilityInferer.getAppsWebPageProbability(Lcom/oracle/rootcause/diagnostic/impl/CausalDiagnostic;[[I)D+103
j  com.oracle.rootcause.diagnostic.impl.DiagnosticRunner.doDiagnosticRunForHost(Lcom/oracle/rootcause/diagnostic/impl/DiagnosticRunInfo;)Lcom/oracle/rootcause/diagnosticrun/recorder/IDiagnosticRunRecorder;+874
j  com.oracle.rootcause.diagnostic.impl.DiagnosticRunner.runDiagnostic()Lcom/oracle/rootcause/diagnosticrun/recorder/IDiagnosticRunRecorder;+1351
j  com.oracle.rootcause.diagnostic.impl.DiagnosticRunner.call()Lcom/oracle/rootcause/diagnosticrun/recorder/IDiagnosticRunRecorder;+1
j  com.oracle.rootcause.diagnostic.impl.DiagnosticRunner.call()Ljava/lang/Object;+1
j  java.util.concurrent.FutureTask$Sync.innerRun()V+30
j  java.util.concurrent.FutureTask.run()V+4
j  java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4
j  java.util.concurrent.FutureTask$Sync.innerRun()V+30
j  java.util.concurrent.FutureTask.run()V+4
j  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
=>0x0d449000 JavaThread "pool-5-thread-1" [_thread_in_native, id=3060]
  0x0d449800 JavaThread "HTTPThreadGroup-5" [_thread_blocked, id=6012]
  0x0c847000 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=3608]
  0x0d448400 JavaThread "HTTPThreadGroup-4" [_thread_blocked, id=4864]
  0x0d447c00 JavaThread "DestroyJavaVM" [_thread_blocked, id=3116]
  0x0d447800 JavaThread "TaskManager" [_thread_blocked, id=2640]
  0x0d447000 JavaThread "pool-4-thread-1" [_thread_blocked, id=4812]
  0x0d446c00 JavaThread "pool-3-thread-1" [_thread_blocked, id=5852]
  0x0d35b800 JavaThread "Timer-7" [_thread_blocked, id=1528]
  0x0d35b000 JavaThread "Timer-6" [_thread_blocked, id=4788]
  0x0d35ac00 JavaThread "SystemThreadGroup-6" [_thread_in_native, id=4056]
  0x0d35a800 JavaThread "SystemThreadGroup-5" [_thread_in_native, id=3540]
  0x0d359c00 JavaThread "SystemThreadGroup-4" [_thread_blocked, id=5580]
  0x0d357c00 JavaThread "Thread-26" daemon [_thread_blocked, id=868]
  0x0d35a000 JavaThread "Thread-24" daemon [_thread_blocked, id=3776]
  0x0d359400 JavaThread "Thread-22" daemon [_thread_blocked, id=3412]
  0x0d359000 JavaThread "Thread-20" daemon [_thread_blocked, id=2316]
  0x0d358800 JavaThread "Thread-18" daemon [_thread_blocked, id=3948]
  0x0d358400 JavaThread "Thread-16" daemon [_thread_blocked, id=5024]
  0x0cd90400 JavaThread "Timer-5" [_thread_blocked, id=4196]
  0x0cd8fc00 JavaThread "Timer-4" [_thread_blocked, id=3496]
  0x0cd8f800 JavaThread "Timer-3" [_thread_blocked, id=6132]
  0x0cd8f000 JavaThread "Timer-1" daemon [_thread_blocked, id=5992]
  0x0d225400 JavaThread "WorkExecutorWorkerThread-1" daemon [_thread_blocked, id=1816]
  0x0cd8ec00 JavaThread "Thread-9" daemon [_thread_blocked, id=5240]
  0x0d224800 JavaThread "Timer-0" [_thread_blocked, id=984]
  0x0d225000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1868]
  0x0d224400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5612]
  0x0d223c00 JavaThread "RMIServer [/0.0.0.0:23943] count:1" [_thread_in_native, id=2444]
  0x0d39c400 JavaThread "RMIServer [/0.0.0.0:23791] count:1" [_thread_in_native, id=4616]
  0x0d21cc00 JavaThread "JMSServer[mbeg-home:9127]" [_thread_in_native, id=5684]
  0x0d08b000 JavaThread "WsMgmtWorkScheduler" daemon [_thread_blocked, id=3416]
  0x0d20a800 JavaThread "WsMgmtWorkScheduler" daemon [_thread_blocked, id=4496]
  0x0cecf800 JavaThread "Timer ServiceThread" [_thread_blocked, id=6140]
  0x0d08e400 JavaThread "Scheduler ServiceThread" [_thread_blocked, id=6124]
  0x0cfbd000 JavaThread "Event ServiceThread" [_thread_blocked, id=5788]
  0x0d055800 JavaThread "LogFlusher" daemon [_thread_blocked, id=4492]
  0x0d1e7c00 JavaThread "LogFlusher" daemon [_thread_blocked, id=2196]
  0x0d1bc000 JavaThread "LogFlusher" daemon [_thread_blocked, id=5420]
  0x0c791c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2584]
  0x013ffc00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=2976]
  0x013ff400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4308]
  0x013f4c00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=3088]
  0x013f2800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2556]
  0x013e7000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5504]
  0x013e6c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5396]
  0x013d0800 JavaThread "Finalizer" daemon [_thread_blocked, id=4064]
  0x013ccc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2656]

Other Threads:
  0x013ca400 VMThread [id=5148]
  0x0c793400 WatcherThread [id=3148]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 2560K, used 1114K [0x04550000, 0x04810000, 0x04c60000)
  eden space 2304K,  42% used [0x04550000, 0x04645a60, 0x04790000)
  from space 256K,  51% used [0x04790000, 0x047b0eb0, 0x047d0000)
  to   space 256K,   0% used [0x047d0000, 0x047d0000, 0x04810000)
 tenured generation   total 21888K, used 13257K [0x04c60000, 0x061c0000, 0x08550000)
   the space 21888K,  60% used [0x04c60000, 0x05952508, 0x05952600, 0x061c0000)
 compacting perm gen  total 46336K, used 46116K [0x08550000, 0x0b290000, 0x0c550000)
   the space 46336K,  99% used [0x08550000, 0x0b259318, 0x0b259400, 0x0b290000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00423000 	C:\Program Files\Java\jdk1.6.0_02\bin\java.exe
0x77860000 - 0x7797e000 	C:\Windows\system32\ntdll.dll
0x77780000 - 0x77858000 	C:\Windows\system32\kernel32.dll
0x769b0000 - 0x76a6f000 	C:\Windows\system32\ADVAPI32.dll
0x76460000 - 0x76523000 	C:\Windows\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\msvcr71.dll
0x6dac0000 - 0x6de09000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\server\jvm.dll
0x76120000 - 0x761be000 	C:\Windows\system32\USER32.dll
0x76530000 - 0x7657b000 	C:\Windows\system32\GDI32.dll
0x74c30000 - 0x74c63000 	C:\Windows\system32\WINMM.dll
0x76250000 - 0x762fa000 	C:\Windows\system32\msvcrt.dll
0x76580000 - 0x766c4000 	C:\Windows\system32\ole32.dll
0x761c0000 - 0x7624c000 	C:\Windows\system32\OLEAUT32.dll
0x74bf0000 - 0x74c28000 	C:\Windows\system32\OLEACC.dll
0x76310000 - 0x7632e000 	C:\Windows\system32\IMM32.DLL
0x76890000 - 0x76957000 	C:\Windows\system32\MSCTF.dll
0x75f50000 - 0x75f7c000 	C:\Windows\system32\apphelp.dll
0x76300000 - 0x76309000 	C:\Windows\system32\LPK.DLL
0x779c0000 - 0x77a3d000 	C:\Windows\system32\USP10.dll
0x6d3c0000 - 0x6d3c8000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\hpi.dll
0x76110000 - 0x76117000 	C:\Windows\system32\PSAPI.DLL
0x6d4b0000 - 0x6d4d9000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\jdwp.dll
0x6d770000 - 0x6d776000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\npt.dll
0x6d820000 - 0x6d82c000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\java.dll
0x6d860000 - 0x6d86f000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\zip.dll
0x6d330000 - 0x6d337000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\dt_socket.dll
0x77980000 - 0x779ad000 	C:\Windows\system32\WS2_32.dll
0x77a90000 - 0x77a96000 	C:\Windows\system32\NSI.dll
0x757b0000 - 0x757eb000 	C:\Windows\system32\mswsock.dll
0x75450000 - 0x75456000 	C:\Windows\System32\wshtcpip.dll
0x6d620000 - 0x6d633000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\net.dll
0x75810000 - 0x75816000 	C:\Windows\System32\wship6.dll
0x74bd0000 - 0x74bdf000 	C:\Windows\system32\NLAapi.dll
0x759e0000 - 0x759f9000 	C:\Windows\system32\IPHLPAPI.DLL
0x759a0000 - 0x759d5000 	C:\Windows\system32\dhcpcsvc.DLL
0x75c10000 - 0x75c3b000 	C:\Windows\system32\DNSAPI.dll
0x75fb0000 - 0x75fc4000 	C:\Windows\system32\Secur32.dll
0x75990000 - 0x75997000 	C:\Windows\system32\WINNSI.DLL
0x75970000 - 0x75990000 	C:\Windows\system32\dhcpcsvc6.DLL
0x71e80000 - 0x71e88000 	C:\Windows\System32\winrnr.dll
0x76960000 - 0x769a9000 	C:\Windows\system32\WLDAP32.dll
0x71e70000 - 0x71e7f000 	C:\Windows\system32\napinsp.dll
0x71c60000 - 0x71c72000 	C:\Windows\system32\pnrpnsp.dll
0x722b0000 - 0x722b6000 	C:\Windows\system32\rasadhlp.dll
0x6d640000 - 0x6d649000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\nio.dll
0x75540000 - 0x75578000 	C:\Windows\system32\rsaenh.dll
0x75fd0000 - 0x75fee000 	C:\Windows\system32\USERENV.dll
0x6d800000 - 0x6d808000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\sunmscapi.dll
0x75a80000 - 0x75b71000 	C:\Windows\system32\CRYPT32.dll
0x75bd0000 - 0x75be2000 	C:\Windows\system32\MSASN1.dll
0x6d0b0000 - 0x6d273000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\awt.dll
0x73cc0000 - 0x73d01000 	C:\Windows\system32\WINSPOOL.DRV
0x751c0000 - 0x751ff000 	C:\Windows\system32\uxtheme.dll
0x6d360000 - 0x6d3b3000 	C:\Program Files\Java\jdk1.6.0_02\jre\bin\fontmanager.dll
0x10000000 - 0x10150000 	C:\CH\config\jsmile.dll

VM Arguments:
jvm_args: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
java_command: C:/oc4j/oc4j_extended_101330\j2ee\home\oc4j.jar -config C:/oc4j/oc4j_extended_101330\j2ee\home\config\server.xml
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:/Program Files/Java/jdk1.6.0_02
PATH=C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:/CH/config
USERNAME=mbeg
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel



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

OS: Windows Vista Build 6000 

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

Memory: 4k page, physical 2094924k(841164k free), swap 4194303k(2458580k free)

vm_info: Java HotSpot(TM) Server VM (1.6.0_02-ea-b02) for windows-x86, built on Apr 12 2007 02:24:33 by "java_re" with unknown MS VC++:1310

shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: JVM crash using jsmile

Post by shooltz[BayesFusion] »

[quote="Mohsin Beg"]The details of the jvm log are attached.
Any suggestions of what may be causing this ?

Code: Select all


Well, the log doesn't provide much details really. My simple test program runs annealedMap without problems. Can you reproduce the problem in simple singlethreaded console application?
ystf
Posts: 7
Joined: Wed Jul 02, 2008 12:40 pm

same JVM error

Post by ystf »

I have the same error, when trying to run a program using Smile.

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4a56baad, pid=2180, tid=5052
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
# Problematic frame:
# C [jsmile.dll+0x1baad]
#
# An error report file with more information is saved as:
# D:\MAIN\Work\Eclipse Workspace 3.2\DesktopClustering\hs_err_pid2180.log
#
# 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.
#


What is the problem? How can I fix it?

Hope for a quick response.

Thanks
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: same JVM error

Post by shooltz[BayesFusion] »

I won't be able to help without your Java source code.
ystf
Posts: 7
Joined: Wed Jul 02, 2008 12:40 pm

Post by ystf »

The problem is that my program is kind of huge, with many modules and so on and also some private data...

Maybe the other guy - Mohsin Beg would have a smaller code and be able to share it with you? Mohsin?
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

ystf wrote:The problem is that my program is kind of huge, with many modules and so on and also some private data...
In such case, try to reproduce the crash with smaller application.
etf
Posts: 4
Joined: Fri Dec 19, 2008 3:57 pm

Post by etf »

I had problems with AnnealMap crashing as well. I found the problem seemed to be that with AnnealMap all the the conditional probabilities need to add up to 1 perfectly with double-precision - assume no rounding. If your conditionals probabilities add up something like <= 0.999999999999999... it will crash.


Good Luck
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Post by shooltz[BayesFusion] »

Can you post the network which causes the AnnealedMap crash?
Post Reply