Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM Crash EXCEPTION_ACCESS_VIOLATION in ntdll.dll

843829Feb 7 2008 — edited Apr 6 2009
Hi I get the following output when i try to run native code (jni). The native code has no issues when not run from JAVA. What's more, it doesn't link to ntdll.dll - which is where the crash occurs. Could this be a VM bug? or is there something wrong with my jni / native code?

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c911639, pid=2588, tid=2532
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 interpreted mode, sharing windows-x86)
# Problematic frame:
# C [ntdll.dll+0x11639]
#
# 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 (0x00395800): JavaThread "main" [_thread_in_native, id=2532, stack(0x003b0000,0x00400000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0345ff85

Registers:
EAX=0x0345ff80, EBX=0x00000f7b, ECX=0x00000100, EDX=0x0068af48
ESP=0x003ff820, EBP=0x003ffa40, ESI=0x03457a40, EDI=0x034583a8
EIP=0x7c911639, EFLAGS=0x00010246

Top of Stack: (sp=0x003ff820)
0x003ff820: 00000064 00000960 00000064 7c9106eb
0x003ff830: 03461d68 00007d00 26976fa0 00000000
0x003ff840: 00000000 00000000 00000000 00000000
0x003ff850: 00000000 00000000 003ff868 00000000
0x003ff860: 7c9105c8 000958e8 003ff934 7c910551
0x003ff870: 00091378 7c91056d 00000000 7c91043d
0x003ff880: 00000000 00000000 00390030 00300030
0x003ff890: 00390030 00300030 00350037 00000037

Instructions: (pc=0x7c911639)
0x7c911629: 89 06 89 42 04 e9 08 ff ff ff 8d 04 df 89 45 b0
0x7c911639: 8a 48 05 f6 c1 01 0f 84 11 2c 02 00 66 89 58 02


Stack: [0x003b0000,0x00400000], sp=0x003ff820, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x11639]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)

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

Java Threads: ( => current thread )
0x02a5bc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3036, stack(0x02d10000,0x02d60000)]
0x02a56000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=180, stack(0x02cc0000,0x02d10000)]
0x02a54c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2592, stack(0x02c70000,0x02cc0000)]
0x02a53c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=688, stack(0x02c20000,0x02c70000)]
0x02a50800 JavaThread "Finalizer" daemon [_thread_blocked, id=2520, stack(0x02bd0000,0x02c20000)]
0x02a4c400 JavaThread "Reference Handler" daemon [_thread_blocked, id=2536, stack(0x02b80000,0x02bd0000)]
=>0x00395800 JavaThread "main" [_thread_in_native, id=2532, stack(0x003b0000,0x00400000)]

Other Threads:
0x02a4ac00 VMThread [stack: 0x02b30000,0x02b80000] [id=2528]
0x02a65400 WatcherThread [stack: 0x02d60000,0x02db0000] [id=2524]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 960K, used 193K [0x22970000, 0x22a70000, 0x22e50000)
eden space 896K, 21% used [0x22970000, 0x229a07c8, 0x22a50000)
from space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
to space 64K, 0% used [0x22a60000, 0x22a60000, 0x22a70000)
tenured generation total 4096K, used 0K [0x22e50000, 0x23250000, 0x26970000)
the space 4096K, 0% used [0x22e50000, 0x22e50000, 0x22e50200, 0x23250000)
compacting perm gen total 12288K, used 29K [0x26970000, 0x27570000, 0x2a970000)
the space 12288K, 0% used [0x26970000, 0x26977638, 0x26977800, 0x27570000)
ro space 8192K, 62% used [0x2a970000, 0x2ae728e8, 0x2ae72a00, 0x2b170000)
rw space 12288K, 52% used [0x2b170000, 0x2b7b85d8, 0x2b7b8600, 0x2bd70000)

Dynamic libraries:
0x00400000 - 0x00423000 C:\Program Files\Java\jre1.6.0_04\bin\javaw.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre1.6.0_04\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d270000 - 0x6d278000 C:\Program Files\Java\jre1.6.0_04\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Program Files\Java\jre1.6.0_04\bin\verify.dll
0x6d310000 - 0x6d32f000 C:\Program Files\Java\jre1.6.0_04\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Program Files\Java\jre1.6.0_04\bin\zip.dll
0x10000000 - 0x1008d000 C:\code\OptCAPI\MSWIN32\optjnidll.dll
0x02dc0000 - 0x02ed0000 C:\code\OptCAPI\MSWIN32\nismlb32.dll
0x02ed0000 - 0x02f42000 C:\code\OptCAPI\MSWIN32\optmathlib_mlb.dll
0x02f50000 - 0x02fa0000 C:\code\OptCAPI\MSWIN32\nisutils_mlb.dll
0x02fa0000 - 0x02fcd000 C:\code\OptCAPI\MSWIN32\nisstat_mlb.dll
0x02fd0000 - 0x03003000 C:\code\OptCAPI\MSWIN32\optproject_mlb.dll

VM Arguments:
jvm_args: -Xint -Xcheck:jni
java_command: main.Main
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Program Files\Java\jre1.6.0_04\bin\client;C:\Program Files\Java\jre1.6.0_04\bin;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\MinGW\bin;C:\msys\1.0\bin;c:\swigwin-1.3.33;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\PROGRA~1\Java\jdk1.6.0_04\bin;c:\code\artcapi;C:\code\OptCAPI\MSWIN32
USERNAME=dMo
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 8, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 (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 1048044k(597188k free), swap 1733232k(1371736k free)

vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE (1.6.0_04-b12), built on Dec 14 2007 00:51:20 by "java_re" with MS VC++ 7.1

time: Thu Feb 07 11:23:28 2008
elapsed time: 0 seconds
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2009
Added on Feb 7 2008
5 comments
2,721 views