I have written the following program that is intended to dump all network device traffic to a file. I know the problem involves the use of JpcapWriter. Why am I getting the error message shown below?
import jpcap.*;
import jpcap.packet.*;
public class dumptraffic
{
private static final int maxPackets = 100;
public static void main(String args[])
{
try
{
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
if (args.length != 1)
{
System.out.println("You must enter a device number.");
int i = 0;
for (NetworkInterface device : devices)
System.out.println((i++) + ": " + device.name);
return;
}
JpcapCaptor jpcap = JpcapCaptor.openDevice(devices[Integer.parseInt(args[0].trim())], 2000, false, 20);
JpcapWriter writer = JpcapWriter.openDumpFile(jpcap, "dump.pcap");
for (int i = 0; i < maxPackets; i++)
writer.writePacket(jpcap.getPacket());
writer.close();
System.out.println("Recorded packets to the file \"dump.pcap\"");
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
}
}
Here is the log that Java dumps:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0234659d, pid=4900, tid=5808
#
# JRE version: 6.0_22-b04
# Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode, sharing windows-x86 )
# Problematic frame:
# v ~BufferBlob::jni_fast_GetLongField
#
# 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 (0x02211c00): JavaThread "main" [_thread_in_native, id=5808, stack(0x002f0000,0x00340000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x6da511e8, ECX=0x00000000, EDX=0x00000000
ESP=0x0033f578, EBP=0x0033f5b0, ESI=0x00000022, EDI=0x00000000
EIP=0x0234659d, EFLAGS=0x00010246
Top of Stack: (sp=0x0033f578)
0x0033f578: 02211d18 6d97567f 02211d18 00000000
0x0033f588: 00000022 00000000 02211d18 6da511e8
0x0033f598: 0033f58c 0033f19c 0033fd8c 6d9f4ed0
0x0033f5a8: 6da2a4b0 00000000 0033fc68 015d358c
0x0033f5b8: 02211d18 00000000 00000022 02211c00
0x0033f5c8: 380655e0 0033fc68 380655e0 0000005b
0x0033f5d8: 00000000 03000003 001521a8 77a94460
0x0033f5e8: 00000000 77a94460 00000000 001219b8
Instructions: (pc=0x0234659d)
0x0234658d: 00 00 00 8b c1 83 e0 01 8b 54 04 0c 8b 74 24 10
0x0234659d: 8b 12 c1 ee 02 8b 04 32 8b 54 32 04 be e0 16 a6
Stack: [0x002f0000,0x00340000], sp=0x0033f578, free space=13d0033f0ack
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v ~BufferBlob::jni_fast_GetLongField
C [Jpcap.dll+0x358c]
j dumptraffic.main([Ljava/lang/String;)V+127
v ~StubRoutines::call_stub
V [jvm.dll+0xf3a9c]
V [jvm.dll+0x186591]
V [jvm.dll+0xf3b1d]
V [jvm.dll+0xfd365]
V [jvm.dll+0x104fbd]
C [java.exe+0x2155]
C [java.exe+0x85b4]
C [kernel32.dll+0x4d0e9]
C [ntdll.dll+0x419bb]
C [ntdll.dll+0x4198e]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jpcap.JpcapWriter.writePacket(Ljpcap/packet/Packet;)V+0
j dumptraffic.main([Ljava/lang/String;)V+127
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x02245800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2888, stack(0x04550000,0x045a0000)]
0x0223e400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2620, stack(0x04500000,0x04550000)]
0x0223d400 JavaThread "Attach Listener" daemon [_thread_blocked, id=4060, stack(0x044b0000,0x04500000)]
0x0223a400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4280, stack(0x04460000,0x044b0000)]
0x02232000 JavaThread "Finalizer" daemon [_thread_blocked, id=5952, stack(0x04410000,0x04460000)]
0x02230c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=5860, stack(0x008c0000,0x00910000)]
=>0x02211c00 JavaThread "main" [_thread_in_native, id=5808, stack(0x002f0000,0x00340000)]
Other Threads:
0x0222f400 VMThread [stack: 0x003b0000,0x00400000] [id=4396]
0x0224f400 WatcherThread [stack: 0x045a0000,0x045f0000] [id=4156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 371K [0x28050000, 0x285a0000, 0x2d5a0000)
eden space 4416K, 8% used [0x28050000, 0x280acf00, 0x284a0000)
from space 512K, 0% used [0x284a0000, 0x284a0000, 0x28520000)
to space 512K, 0% used [0x28520000, 0x28520000, 0x285a0000)
tenured generation total 10944K, used 0K [0x2d5a0000, 0x2e050000, 0x38050000)
the space 10944K, 0% used [0x2d5a0000, 0x2d5a0000, 0x2d5a0200, 0x2e050000)
compacting perm gen total 12288K, used 86K [0x38050000, 0x38c50000, 0x3c050000)
the space 12288K, 0% used [0x38050000, 0x38065868, 0x38065a00, 0x38c50000)
ro space 10240K, 51% used [0x3c050000, 0x3c57baf8, 0x3c57bc00, 0x3ca50000)
rw space 12288K, 54% used [0x3ca50000, 0x3d0e76d8, 0x3d0e7800, 0x3d650000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Windows\system32\java.exe
0x779d0000 - 0x77af7000 C:\Windows\system32\ntdll.dll
0x77700000 - 0x777dc000 C:\Windows\system32\kernel32.dll
0x761c0000 - 0x76286000 C:\Windows\system32\ADVAPI32.dll
0x76460000 - 0x76523000 C:\Windows\system32\RPCRT4.dll
0x10000000 - 0x10048000 C:\Windows\system32\guard32.dll
0x76950000 - 0x769ed000 C:\Windows\system32\USER32.dll
0x77be0000 - 0x77c2b000 C:\Windows\system32\GDI32.dll
0x75f00000 - 0x75f08000 C:\Windows\system32\VERSION.dll
0x77500000 - 0x775aa000 C:\Windows\system32\msvcrt.dll
0x77b60000 - 0x77b7e000 C:\Windows\system32\IMM32.DLL
0x76880000 - 0x76948000 C:\Windows\system32\MSCTF.dll
0x77b10000 - 0x77b19000 C:\Windows\system32\LPK.DLL
0x76290000 - 0x7630d000 C:\Windows\system32\USP10.dll
0x75ef0000 - 0x75ef7000 C:\Windows\system32\fltlib.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d7f0000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x74900000 - 0x74932000 C:\Windows\system32\WINMM.dll
0x775b0000 - 0x776f5000 C:\Windows\system32\ole32.dll
0x763d0000 - 0x7645d000 C:\Windows\system32\OLEAUT32.dll
0x748c0000 - 0x748fd000 C:\Windows\system32\OLEACC.dll
0x75ec0000 - 0x75eec000 C:\Windows\system32\apphelp.dll
0x6d7a0000 - 0x6d7ac000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76070000 - 0x76077000 C:\Windows\system32\PSAPI.DLL
0x6d7e0000 - 0x6d7ef000 C:\Program Files\Java\jre6\bin\zip.dll
0x015d0000 - 0x015f8000 C:\Windows\System32\Jpcap.dll
0x763a0000 - 0x763cd000 C:\Windows\system32\WS2_32.dll
0x77b20000 - 0x77b26000 C:\Windows\system32\NSI.dll
0x045f0000 - 0x0463c000 C:\Windows\system32\wpcap.dll
0x00920000 - 0x00938000 C:\Windows\system32\packet.dll
0x75980000 - 0x75999000 C:\Windows\system32\iphlpapi.dll
0x75940000 - 0x75975000 C:\Windows\system32\dhcpcsvc.DLL
0x75e70000 - 0x75e9c000 C:\Windows\system32\DNSAPI.dll
0x75f10000 - 0x75f24000 C:\Windows\system32\Secur32.dll
0x75930000 - 0x75937000 C:\Windows\system32\WINNSI.DLL
0x75900000 - 0x75922000 C:\Windows\system32\dhcpcsvc6.DLL
0x6d600000 - 0x6d613000 C:\Program Files\Java\jre6\bin\net.dll
0x756f0000 - 0x7572b000 C:\Windows\system32\mswsock.dll
0x756e0000 - 0x756e5000 C:\Windows\System32\wship6.dll
VM Arguments:
java_command: dumptraffic 1
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Program Files\Java\jdk1.6.0_20\bin
USERNAME=Donald Taylor
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6002 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2094396k(1168912k free), swap 4458364k(3080400k free)
vm_info: Java HotSpot(TM) Client VM (17.1-b03) for windows-x86 JRE (1.6.0_22-b04), built on Sep 15 2010 00:56:36 by "java_re" with MS VC++ 7.1 (VS2003)
time: Mon Nov 08 19:50:43 2010
elapsed time: 0 seconds
I have no solution to your problem, but you might find one on the jpcap discussion board on Google Groups.
Scanning through the messages (keywords "jvm crash") I noted one saying that the problem turned out to be calling a method with the wrong parameters. So you might try double-checking that your code is using the API correctly.
I would not report this to Sun / Oracle. The evidence in the crash dump points to an error in the way that something is using JNI.
Are you running it as root or m$ equivalent? Collecting packets on a network interface promiscuously requires some additional privileges from the OS.
The key line is:
# The crash happened outside the Java Virtual Machine in native code.
That is, the jpcap library uses native code, and the native code segfaulted. This is therefore a bug in the jpcap library, not in the JVM. From the documentation on Github:
Internally, jpcap implements bindings to the libpcap system library
through JNI (the Java Native Interface).
Now, if you want, you could try to debug the segfault by running the whole thing in GDB.
However. Noting
jpcap utilizes libpcap, a widely deployed shared-library for capturing
user-level packets. libpcap must be installed on your system in order
to use jpcap.
in the docs, and considering the fact that a common cause of segfaults is a missing shared library, I suspect that you don't have the pcap library installed on your system.
use this statement inside your for loop
if(captor.getPacket()==null || captor.getPacket()==Packet.EOF) break;
Related
I have a JNI dll built, if I use debug VC++ 2010 Express, it worked fine. If I use Release build, it crashed JVM.
This cmd: java -Djava.library.path=D:\charlie\tmp\SendKeys\x64\Debug SendKeys
worked.
This cmd:>java -Djava.library.path=D:\charlie\tmp\SendKeys\x64\Release -Dsun.java2d.d3d=false SendKeys
and cmd: >java -Djava.library.path=D:\charlie\tmp\SendKeys\x64\Release SendKeys failed. Please help.
C++ native code(MS VC++ 2010 express), & in 64bits OS:
BOOL __stdcall InitializeWinIo()
{
BOOL bResult = false;
DWORD dwBytesReturned;
g_Is64BitOS = Is64BitOS();
hDriver = CreateFile(L"\\\\.\\WINIO",GENERIC_READ | GENERIC_WRITE,
0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,NULL);
// If the driver is not running, install it
if (hDriver == INVALID_HANDLE_VALUE)
{
printf("WINIO driver is not running!\n");
GetDriverPath();
bResult = InstallWinIoDriver(szWinIoDriverPath, true);
if (!bResult)
return FALSE;
bResult = StartWinIoDriver();
if (!bResult)
{
printf("ERROR: WINIO driver can not be started!\n");
return FALSE;
}
else
{
printf("OK: WINIO driver has been started!\n");
}
hDriver = CreateFile(L"\\\\.\\WINIO",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
if (hDriver == INVALID_HANDLE_VALUE)
{
printf("ERROR: WINIO driver running status can not be confirmed!\n");
return FALSE;
}
else
{
printf("ERROR: WINIO driver running status has been confirmed!\n");
}
}
else
{
printf("WINIO driver is happily running!\n");
}
// Enable I/O port access for this process if running on a 32 bit OS
if (!g_Is64BitOS)
{
printf("CRITICAL not a 64 bits system\n");
if (!DeviceIoControl(hDriver, IOCTL_WINIO_ENABLEDIRECTIO, NULL,
0, NULL, 0, &dwBytesReturned, NULL))
{
printf("ERROR: can not enable I/O access in 32 bits system\n");
return FALSE;
}
}
else
{
printf("OK a perfect 64 bits system\n");
}
IsWinIoInitialized = TRUE;
return TRUE;
}
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000000055b6, pid=4396, tid=9552
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x00000000000055b6
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/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 (0x00000000034c0800): JavaThread "main" [_thread_in_native, id=9552, stack(0x00000000033a0000,0x00000000034a0000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x00000000000055b6
Registers:
RAX=0x00007ff6457b1780, RBX=0x000000077c8686e8, RCX=0x00007ff6457b43e0, RDX=0x000000000349f760
RSP=0x000000000349f6b8, RBP=0x000000000349f750, RSI=0x00000000ef8eccd3, RDI=0x00000000035c60f8
R8 =0x0000000000000000, R9 =0x0000000003508ec0, R10=0x00000000035d3124, R11=0x0000000072ba4b50
R12=0x0000000000000000, R13=0x000000077c8686e8, R14=0x000000000349f768, R15=0x00000000034c0800
RIP=0x00000000000055b6, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x000000000349f6b8)
0x000000000349f6b8: 00007ff6457b1791 00000000ffffff00
0x000000000349f6c8: 00000000034c0800 000000077c8686e8
0x000000000349f6d8: 0000000000000000 00000007d5d598a8
0x000000000349f6e8: 00000000035d3150 0000000000000001
0x000000000349f6f8: 0000000000000000 00000000034c0800
0x000000000349f708: 000000000349f7c0 000000000349f710
0x000000000349f718: 000000077c8686e8 000000000349f768
0x000000000349f728: 000000077c869518 0000000000000000
0x000000000349f738: 000000077c8686e8 0000000000000000
0x000000000349f748: 000000000349f770 000000000349f7b0
0x000000000349f758: 00000000035c63f0 00000007d5d962b8
0x000000000349f768: 00000000035cf0c0 000000000349f770
0x000000000349f778: 000000077c8688b3 000000000349f7c0
0x000000000349f788: 000000077c869518 0000000000000000
0x000000000349f798: 000000077c868978 000000000349f770
0x000000000349f7a8: 000000000349f7c8 000000000349f808
Instructions: (pc=0x00000000000055b6)
0x0000000000005596:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]
Register to memory mapping:
RAX=0x00007ff6457b1780 is an unknown value
RBX=0x000000077c8686e8 is an oop
{method}
- klass: {other class}
RCX=0x00007ff6457b43e0 is an unknown value
RDX=0x000000000349f760 is pointing into the stack for thread: 0x00000000034c0800
RSP=0x000000000349f6b8 is pointing into the stack for thread: 0x00000000034c0800
RBP=0x000000000349f750 is pointing into the stack for thread: 0x00000000034c0800
RSI=0x00000000ef8eccd3 is an unknown value
RDI=0x00000000035c60f8 is at code_begin+2520 in an Interpreter codelet
return entry points [0x00000000035c5720, 0x00000000035c7520] 7680 bytes
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000003508ec0 is an unknown value
R10=0x00000000035d3124 is at code_begin+644 in an Interpreter codelet
method entry point (kind = native) [0x00000000035d2ea0, 0x00000000035d3740] 2208 bytes
R11=0x0000000072ba4b50 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000077c8686e8 is an oop
{method}
- klass: {other class}
R14=0x000000000349f768 is pointing into the stack for thread: 0x00000000034c0800
R15=0x00000000034c0800 is a thread
Stack: [0x00000000033a0000,0x00000000034a0000], sp=0x000000000349f6b8, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x00000000000055b6
j SendKeys.init()Z+19
j SendKeys.main([Ljava/lang/String;)V+27
v ~StubRoutines::call_stub
V [jvm.dll+0x1d03d3]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j SendKeys.initializeWinIO()Z+0
j SendKeys.init()Z+19
j SendKeys.main([Ljava/lang/String;)V+27
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000000000b94b800 JavaThread "Service Thread" daemon [_thread_blocked, id=5812, stack(0x000000000d0a0000,0x000000000d1a0000)]
0x000000000b941800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7764, stack(0x000000000cfa0000,0x000000000d0a0000)]
0x000000000b93f000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=9736, stack(0x000000000cea0000,0x000000000cfa0000)]
0x000000000b93e000 JavaThread "Attach Listener" daemon [_thread_blocked, id=6772, stack(0x000000000cda0000,0x000000000cea0000)]
0x000000000b93b000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10512, stack(0x000000000cca0000,0x000000000cda0000)]
0x000000000b8ee000 JavaThread "Finalizer" daemon [_thread_blocked, id=9768, stack(0x000000000cba0000,0x000000000cca0000)]
0x000000000b8e5000 JavaThread "Reference Handler" daemon [_thread_blocked, id=7876, stack(0x000000000caa0000,0x000000000cba0000)]
=>0x00000000034c0800 JavaThread "main" [_thread_in_native, id=9552, stack(0x00000000033a0000,0x00000000034a0000)]
Other Threads:
0x000000000b8e0000 VMThread [stack: 0x000000000c9a0000,0x000000000caa0000] [id=11044]
0x000000000b964800 WatcherThread [stack: 0x000000000d1a0000,0x000000000d2a0000] [id=8160]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 38400K, used 1331K [0x00000007d5d00000, 0x00000007d8780000, 0x0000000800000000)
eden space 33280K, 4% used [0x00000007d5d00000,0x00000007d5e4cdb8,0x00000007d7d80000)
from space 5120K, 0% used [0x00000007d8280000,0x00000007d8280000,0x00000007d8780000)
to space 5120K, 0% used [0x00000007d7d80000,0x00000007d7d80000,0x00000007d8280000)
ParOldGen total 86016K, used 0K [0x0000000781800000, 0x0000000786c00000, 0x00000007d5d00000)
object space 86016K, 0% used [0x0000000781800000,0x0000000781800000,0x0000000786c00000)
PSPermGen total 21504K, used 2473K [0x000000077c600000, 0x000000077db00000, 0x0000000781800000)
object space 21504K, 11% used [0x000000077c600000,0x000000077c86a618,0x000000077db00000)
Card table byte_map: [0x0000000006680000,0x0000000006aa0000] byte_map_base: 0x0000000002a9d000
Polling page: 0x0000000001aa0000
Code Cache [0x00000000035c0000, 0x0000000003830000, 0x00000000065c0000)
total_blobs=169 nmethods=0 adapters=137 free_code_cache=48771Kb largest_free_block=49942400
Compilation events (0 events):
No events
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (2 events):
Event: 0.085 Thread 0x00000000034c0800 Threw 0x00000007d5d0f620 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jni.cpp:3991
Event: 0.365 Thread 0x00000000034c0800 Threw 0x00000007d5d91630 at C:\re\jdk7u80\2329\hotspot\src\share\vm\prims\jvm.cpp:1319
Events (10 events):
Event: 0.369 loading class 0x00000000034c9380
Event: 0.369 loading class 0x00000000034c9380 done
Event: 0.369 loading class 0x000000000352a970
Event: 0.369 loading class 0x000000000352a970 done
Event: 0.369 loading class 0x0000000003506550
Event: 0.369 loading class 0x0000000003506550 done
Event: 0.370 loading class 0x00000000035121b0
Event: 0.370 loading class 0x00000000035121b0 done
Event: 0.370 loading class 0x0000000003512150
Event: 0.370 loading class 0x0000000003512150 done
Dynamic libraries:
0x00007ff6fef00000 - 0x00007ff6fef33000 C:\WINDOWS\system32\java.exe
0x00007ff9ef7d0000 - 0x00007ff9ef9a1000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff9ef640000 - 0x00007ff9ef6eb000 C:\WINDOWS\System32\KERNEL32.DLL
0x00007ff9ec0c0000 - 0x00007ff9ec2dd000 C:\WINDOWS\System32\KERNELBASE.dll
0x00007ff9eee60000 - 0x00007ff9eef02000 C:\WINDOWS\System32\ADVAPI32.dll
0x00007ff9ecd60000 - 0x00007ff9ecdfe000 C:\WINDOWS\System32\msvcrt.dll
0x00007ff9ee3d0000 - 0x00007ff9ee429000 C:\WINDOWS\System32\sechost.dll
0x00007ff9eeb60000 - 0x00007ff9eec81000 C:\WINDOWS\System32\RPCRT4.dll
0x00007ff9ee8b0000 - 0x00007ff9eea15000 C:\WINDOWS\System32\USER32.dll
0x00007ff9ec030000 - 0x00007ff9ec04e000 C:\WINDOWS\System32\win32u.dll
0x00007ff9ece10000 - 0x00007ff9ece44000 C:\WINDOWS\System32\GDI32.dll
0x00007ff9ecbd0000 - 0x00007ff9ecd52000 C:\WINDOWS\System32\gdi32full.dll
0x00007ff9dcc70000 - 0x00007ff9dceea000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.953_none_42151e83c686086b\COMCTL32.dll
0x00007ff9ee550000 - 0x00007ff9ee818000 C:\WINDOWS\System32\combase.dll
0x00007ff9ecad0000 - 0x00007ff9ecbc5000 C:\WINDOWS\System32\ucrtbase.dll
0x00007ff9ec050000 - 0x00007ff9ec0ba000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ff9ef7a0000 - 0x00007ff9ef7ce000 C:\WINDOWS\System32\IMM32.DLL
0x0000000073670000 - 0x0000000073742000 C:\charlie\Java\jre7\bin\msvcr100.dll
0x00000000729c0000 - 0x0000000073199000 C:\charlie\Java\jre7\bin\server\jvm.dll
0x00007ff9eec90000 - 0x00007ff9eec98000 C:\WINDOWS\System32\PSAPI.DLL
0x00007ff9e8590000 - 0x00007ff9e8599000 C:\WINDOWS\system32\WSOCK32.dll
0x00007ff9ee360000 - 0x00007ff9ee3ca000 C:\WINDOWS\System32\WS2_32.dll
0x00007ff9e9eb0000 - 0x00007ff9e9ed3000 C:\WINDOWS\system32\WINMM.dll
0x00007ff9e9e70000 - 0x00007ff9e9e9b000 C:\WINDOWS\system32\WINMMBASE.dll
0x00007ff9ebcc0000 - 0x00007ff9ebd02000 C:\WINDOWS\System32\cfgmgr32.dll
0x0000000073660000 - 0x000000007366f000 C:\charlie\Java\jre7\bin\verify.dll
0x0000000073630000 - 0x0000000073658000 C:\charlie\Java\jre7\bin\java.dll
0x0000000073610000 - 0x0000000073626000 C:\charlie\Java\jre7\bin\zip.dll
0x00007ff6457b0000 - 0x00007ff6457ca000 D:\charlie\tmp\SendKeys\x64\Release\SendKeys.dll
0x00007ff9e7150000 - 0x00007ff9e72e2000 C:\WINDOWS\system32\dbghelp.dll
VM Arguments:
jvm_args: -Djava.library.path=D:\charlie\tmp\SendKeys\x64\Release
java_command: SendKeys
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\charlie\Java\jdk1.7.0_80
PATH=C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MATLAB\MATLAB Runtime\v85\runtime\win64;C:\Program Files (x86)\PuTTY\;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\WinMerge;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\charlie\tmp\SendKeys\x64\Debug\;C:\charlie\Java\jdk1.7.0_80\bin;C:\charlie\eclipse4.5.1\plugins\org.apache.ant_1.9.4.v201504302020\bin;C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;;C:\Users\charlie\AppData\Local\Microsoft\WindowsApps;C:\charlie\apache-maven-3.3.3\bin
USERNAME=charlie
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8.1 , 64 bit Build 9600
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, erms, ht, tsc, tscinvbit
Memory: 4k page, physical 8289204k(3876444k free), swap 9599924k(3279704k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (24.80-b11) for windows-amd64 JRE (1.7.0_80-b15), built on Apr 10 2015 11:26:34 by "java_re" with unknown MS VC++:1600
time: Tue Apr 18 18:01:32 2017
elapsed time: 0 seconds
I have been tasked with updating our ancient Java applet from applet tags to object tags, since applet tags have been deprecated for some time now. The applet must work as far back as earlier Java 1.6 versions, on browsers going back to IE6. I made the following object tags to handle this, switching them out based on if the user is using IE or not. The statements in <% %>'s are evaluating fine and just fill in jar files etc.
<% If userIsIE > 0 Then %>
<object type="application/x-java-applet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="0" width="0">
<param name="code" value="<% =MainClass %>" />
<param name="archive" value="<% =Archives %>" />
<param name="persistState" value="false" />
</object>
<% Else %>
<object classid="java:<% =MainClass %>" type="application/x-java-applet" archive="<% =Archives %>" height="0" width="0">
<param name="code" value="<% =MainClass %>" />
<param name="archive" value="<% =Archives %>" />
<param name="persistState" value="false" />
</object>
<% End If %>
It works in every browser I've tried it in, and all versions of Java I've tried it in, except one specific case my coworker found: Running IE9 with Java 1.6.0_20 (And possibly a few other older versions, unconfirmed) causes the page to crash, leaving this on my desktop:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d413f5f, pid=2444, tid=4660
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [jp2iexp.dll+0x3f5f]
#
# 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 (0x00b09000): JavaThread "main" [_thread_in_native, id=4660, stack(0x027c0000,0x029c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x3420a218, ECX=0x0041f5e0, EDX=0x029bd5bc
ESP=0x029bd598, EBP=0x029bd5a8, ESI=0x00000000, EDI=0x00b09000
EIP=0x6d413f5f, EFLAGS=0x00010206
Top of Stack: (sp=0x029bd598)
0x029bd598: 029bd5bc 029bd5a4 3420a218 00000000
0x029bd5a8: 029bd5e8 05e89f47 00b09110 029bd5f0
0x029bd5b8: 00442258 00000000 00b096ac fffffffe
0x029bd5c8: 029bd5c8 3420a218 029bd5fc 34213020
0x029bd5d8: 00000000 3420a218 00000000 029bd5f8
0x029bd5e8: 029bd624 05e82f07 34212a30 05e88286
0x029bd5f8: 00442258 00000000 32298a58 029bd604
0x029bd608: 3420a187 029bd62c 34213020 00000000
Instructions: (pc=0x6d413f5f)
0x6d413f4f: 33 f6 85 c0 7c 3a 8b 45 fc 8d 55 14 52 89 75 14
0x6d413f5f: 8b 08 50 ff 91 a0 00 00 00 85 c0 7c 1a 8b 75 14
Stack: [0x027c0000,0x029c0000], sp=0x029bd598, free space=7f5029bd0cck
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [jp2iexp.dll+0x3f5f]
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase0(J)Ljava/lang/String;+0
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase()Ljava/lang/String;+31
j sun.plugin2.main.server.JVMInstance.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZIZZ)Z+14
j sun.plugin2.main.server.JVMManager.startAppletImpl(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;ZIZ)Lsun/plugin2/main/server/AppletID;+240
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;)Lsun/plugin2/main/server/AppletID;+16
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZ)Lsun/plugin2/main/server/AppletID;+19
j sun.plugin2.main.server.IExplorerPlugin.maybeStartApplet()V+192
j sun.plugin2.main.server.IExplorerPlugin.access$200(Lsun/plugin2/main/server/IExplorerPlugin;)V+1
j sun.plugin2.main.server.IExplorerPlugin$BackgroundStarter$1.run()V+7
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf051d]
V [jvm.dll+0xf9e0f]
V [jvm.dll+0xfcc07]
C [jp2iexp.dll+0x17a5]
C [jp2iexp.dll+0x853b]
C [jp2iexp.dll+0x7a32]
C [USER32.dll+0x1fd72]
C [USER32.dll+0x1fe4a]
C [USER32.dll+0x2018d]
C [USER32.dll+0x2022b]
C [IEFRAME.dll+0xf1c24]
C [IEFRAME.dll+0x111afe]
C [iertutil.dll+0x1416c0]
C [IEFRAME.dll+0xffe3b]
C [kernel32.dll+0x4d0e9]
C [ntdll.dll+0x41603]
C [ntdll.dll+0x415d6]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase0(J)Ljava/lang/String;+0
j sun.plugin2.main.server.IExplorerPlugin.getDocumentBase()Ljava/lang/String;+31
j sun.plugin2.main.server.JVMInstance.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZIZZ)Z+14
j sun.plugin2.main.server.JVMManager.startAppletImpl(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;ZIZ)Lsun/plugin2/main/server/AppletID;+240
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZLjava/lang/String;)Lsun/plugin2/main/server/AppletID;+16
j sun.plugin2.main.server.JVMManager.startApplet(Ljava/util/Map;Lsun/plugin2/main/server/Plugin;JJZ)Lsun/plugin2/main/server/AppletID;+19
j sun.plugin2.main.server.IExplorerPlugin.maybeStartApplet()V+192
j sun.plugin2.main.server.IExplorerPlugin.access$200(Lsun/plugin2/main/server/IExplorerPlugin;)V+1
j sun.plugin2.main.server.IExplorerPlugin$BackgroundStarter$1.run()V+7
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x056d0400 JavaThread "JRE 1.6.0.20 Heartbeat Thread" [_thread_blocked, id=5860, stack(0x085d0000,0x086d0000)]
0x056dc000 JavaThread "JRE 1.6.0.20 Worker Thread" [_thread_blocked, id=3760, stack(0x09580000,0x09680000)]
0x056db800 JavaThread "JRE 1.6.0.20 Output Reader Thread" [_thread_in_native, id=3828, stack(0x09390000,0x09490000)]
0x056db400 JavaThread "JRE 1.6.0.20 Output Reader Thread" [_thread_in_native, id=5472, stack(0x09120000,0x09220000)]
0x056d9c00 JavaThread "Thread-0" [_thread_in_native, id=3572, stack(0x08d10000,0x08e10000)]
0x056d8400 JavaThread "Java Plug-In Pipe Worker Thread (Server-Side)" daemon [_thread_in_native, id=3944, stack(0x08f10000,0x09010000)]
0x05668800 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3620, stack(0x08ab0000,0x08bb0000)]
0x05640000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6092, stack(0x08940000,0x08a40000)]
0x0563b800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2788, stack(0x086d0000,0x087d0000)]
0x05639400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3728, stack(0x08060000,0x08160000)]
0x05637400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2912, stack(0x084c0000,0x085c0000)]
0x0562f800 JavaThread "Finalizer" daemon [_thread_blocked, id=4596, stack(0x082d0000,0x083d0000)]
0x0562e400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4676, stack(0x08160000,0x08260000)]
=>0x00b09000 JavaThread "main" [_thread_in_native, id=4660, stack(0x027c0000,0x029c0000)]
Other Threads:
0x0562c000 VMThread [stack: 0x07f50000,0x08050000] [id=4684]
0x05647000 WatcherThread [stack: 0x08840000,0x08940000] [id=760]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 4928K, used 1321K [0x32200000, 0x32750000, 0x32ca0000)
eden space 4416K, 29% used [0x32200000, 0x3234a460, 0x32650000)
from space 512K, 0% used [0x32650000, 0x32650000, 0x326d0000)
to space 512K, 0% used [0x326d0000, 0x326d0000, 0x32750000)
tenured generation total 10944K, used 0K [0x32ca0000, 0x33750000, 0x34200000)
the space 10944K, 0% used [0x32ca0000, 0x32ca0000, 0x32ca0200, 0x33750000)
compacting perm gen total 12288K, used 705K [0x34200000, 0x34e00000, 0x38200000)
the space 12288K, 5% used [0x34200000, 0x342b05f8, 0x342b0600, 0x34e00000)
ro space 10240K, 51% used [0x38200000, 0x3872ae00, 0x3872ae00, 0x38c00000)
rw space 12288K, 54% used [0x38c00000, 0x392972d8, 0x39297400, 0x39800000)
Dynamic libraries:
0x01100000 - 0x011b8000 C:\Program Files\Internet Explorer\iexplore.exe
0x77910000 - 0x77a38000 C:\Windows\system32\ntdll.dll
0x77650000 - 0x7772c000 C:\Windows\system32\kernel32.dll
0x77730000 - 0x777f6000 C:\Windows\system32\ADVAPI32.dll
0x77aa0000 - 0x77b63000 C:\Windows\system32\RPCRT4.dll
0x77870000 - 0x7790d000 C:\Windows\system32\USER32.dll
0x77800000 - 0x7784b000 C:\Windows\system32\GDI32.dll
0x760f0000 - 0x7619a000 C:\Windows\system32\msvcrt.dll
0x77490000 - 0x774e9000 C:\Windows\system32\SHLWAPI.dll
0x761d0000 - 0x76ce1000 C:\Windows\system32\SHELL32.dll
0x76f40000 - 0x77085000 C:\Windows\system32\ole32.dll
0x75fd0000 - 0x760e1000 C:\Windows\system32\urlmon.dll
0x774f0000 - 0x7757d000 C:\Windows\system32\OLEAUT32.dll
0x77120000 - 0x772d8000 C:\Windows\system32\iertutil.dll
0x77370000 - 0x7748b000 C:\Windows\system32\WININET.dll
0x77a40000 - 0x77a43000 C:\Windows\system32\Normaliz.dll
0x77850000 - 0x7786e000 C:\Windows\system32\IMM32.DLL
0x77580000 - 0x77648000 C:\Windows\system32\MSCTF.dll
0x77110000 - 0x77119000 C:\Windows\system32\LPK.DLL
0x77090000 - 0x7710d000 C:\Windows\system32\USP10.dll
0x74a90000 - 0x74c2e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18305_none_5cb72f2a088b0ed3\comctl32.dll
0x6d630000 - 0x6df76000 C:\Windows\system32\IEFRAME.dll
0x75fc0000 - 0x75fc7000 C:\Windows\system32\PSAPI.DLL
0x74350000 - 0x7438e000 C:\Windows\system32\OLEACC.dll
0x76d20000 - 0x76d93000 C:\Windows\system32\comdlg32.dll
0x71ac0000 - 0x71af1000 C:\Program Files\Internet Explorer\IEShims.dll
0x75e60000 - 0x75e74000 C:\Windows\system32\Secur32.dll
0x76cf0000 - 0x76d1d000 C:\Windows\system32\WS2_32.dll
0x76da0000 - 0x76da6000 C:\Windows\system32\NSI.dll
0x75830000 - 0x75849000 C:\Windows\system32\iphlpapi.dll
0x757f0000 - 0x75825000 C:\Windows\system32\dhcpcsvc.DLL
0x75a70000 - 0x75a9c000 C:\Windows\system32\DNSAPI.dll
0x757e0000 - 0x757e7000 C:\Windows\system32\WINNSI.DLL
0x757b0000 - 0x757d2000 C:\Windows\system32\dhcpcsvc6.DLL
0x6c5a0000 - 0x6d15b000 C:\Windows\system32\MSHTML.dll
0x752c0000 - 0x752c8000 C:\Windows\system32\VERSION.dll
0x75370000 - 0x753ab000 C:\Windows\system32\rsaenh.dll
0x772e0000 - 0x77364000 C:\Windows\system32\CLBCatQ.DLL
0x714a0000 - 0x714d2000 C:\Program Files\Internet Explorer\ieproxy.dll
0x71e60000 - 0x71eb3000 C:\Windows\system32\ACTXPRXY.DLL
0x75e00000 - 0x75e2c000 C:\Windows\system32\apphelp.dll
0x71aa0000 - 0x71ab1000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelperShim.dll
0x714e0000 - 0x7157b000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCR80.dll
0x715b0000 - 0x71637000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4016_none_d0893820442e7fe4\MSVCP80.dll
0x73490000 - 0x734a0000 C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelper.dll
0x6d440000 - 0x6d44c000 C:\Program Files\Java\jre6\bin\jp2ssv.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\MSVCR71.dll
0x75d40000 - 0x75d9f000 C:\Windows\system32\SXS.DLL
0x73c20000 - 0x73c50000 C:\Windows\system32\MLANG.dll
0x74470000 - 0x744ba000 C:\Windows\system32\RASAPI32.dll
0x746e0000 - 0x746f4000 C:\Windows\system32\rasman.dll
0x75cc0000 - 0x75d36000 C:\Windows\system32\NETAPI32.dll
0x74430000 - 0x74461000 C:\Windows\system32\TAPI32.dll
0x74620000 - 0x7462c000 C:\Windows\system32\rtutils.dll
0x74390000 - 0x743c2000 C:\Windows\system32\WINMM.dll
0x75e80000 - 0x75e9e000 C:\Windows\system32\USERENV.dll
0x758d0000 - 0x759c2000 C:\Windows\system32\CRYPT32.dll
0x75a30000 - 0x75a42000 C:\Windows\system32\MSASN1.dll
0x73020000 - 0x73026000 C:\Windows\system32\sensapi.dll
0x75700000 - 0x75707000 C:\Windows\system32\credssp.dll
0x753b0000 - 0x753f7000 C:\Windows\system32\schannel.dll
0x70c60000 - 0x70ccc000 C:\Windows\system32\ieapfltr.dll
0x6f570000 - 0x6f72b000 C:\Windows\System32\jscript9.dll
0x73000000 - 0x7300b000 C:\Windows\system32\msimtf.dll
0x74930000 - 0x749eb000 C:\Windows\system32\PROPSYS.dll
0x71970000 - 0x71a64000 C:\Windows\system32\windowscodecs.dll
0x76db0000 - 0x76f3a000 C:\Windows\system32\setupapi.dll
0x70bb0000 - 0x70c5b000 C:\Windows\system32\d2d1.dll
0x70020000 - 0x70128000 C:\Windows\system32\DWrite.dll
0x70b30000 - 0x70bb0000 C:\Windows\system32\dxgi.dll
0x737f0000 - 0x737fc000 C:\Windows\system32\dwmapi.dll
0x74690000 - 0x746bd000 C:\Windows\system32\WINTRUST.dll
0x761a0000 - 0x761c9000 C:\Windows\system32\imagehlp.dll
0x716b0000 - 0x716dc000 C:\Windows\system32\d3d10_1.dll
0x713f0000 - 0x7142a000 C:\Windows\system32\d3d10_1core.dll
0x6fef0000 - 0x7001c000 C:\Windows\system32\D3D10Warp.dll
0x6f460000 - 0x6f562000 C:\Windows\system32\d3d10.dll
0x70db0000 - 0x70de3000 C:\Windows\system32\d3d10core.dll
0x752f0000 - 0x75311000 C:\Windows\system32\NTMARTA.DLL
0x77a50000 - 0x77a99000 C:\Windows\system32\WLDAP32.dll
0x75a50000 - 0x75a61000 C:\Windows\system32\SAMLIB.dll
0x755f0000 - 0x7562b000 C:\Windows\system32\mswsock.dll
0x751f0000 - 0x751f5000 C:\Windows\System32\wshtcpip.dll
0x752b0000 - 0x752bf000 C:\Windows\system32\NLAapi.dll
0x73440000 - 0x73446000 C:\Windows\system32\rasadhlp.dll
0x70af0000 - 0x70b23000 C:\Windows\system32\windowscodecsext.dll
0x72940000 - 0x72a9b000 C:\Windows\System32\msxml6.dll
0x6d410000 - 0x6d42e000 C:\Program Files\Java\jre6\bin\jp2iexp.dll
0x737d0000 - 0x737d7000 C:\Windows\system32\wsock32.dll
0x732d0000 - 0x732df000 C:\Windows\system32\napinsp.dll
0x732c0000 - 0x732c8000 C:\Windows\System32\winrnr.dll
0x744c0000 - 0x74545000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6002.18305_none_88f3a38569c2c436\comctl32.dll
0x05be0000 - 0x05e77000 C:\PROGRA~1\Java\jre6\bin\client\jvm.dll
0x01fe0000 - 0x01fec000 C:\PROGRA~1\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\PROGRA~1\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\PROGRA~1\Java\jre6\bin\hpi.dll
0x02420000 - 0x0242f000 C:\PROGRA~1\Java\jre6\bin\zip.dll
0x6d430000 - 0x6d436000 C:\Program Files\Java\jre6\bin\jp2native.dll
0x6d1d0000 - 0x6d1e3000 C:\Program Files\Java\jre6\bin\deploy.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x75650000 - 0x75655000 C:\Windows\System32\wship6.dll
0x025b0000 - 0x025b9000 C:\Program Files\Java\jre6\bin\nio.dll
0x02760000 - 0x027a4000 C:\Program Files\Java\jre6\bin\regutils.dll
0x08bb0000 - 0x08cfa000 C:\Program Files\Java\jre6\bin\awt.dll
0x72d30000 - 0x72d72000 C:\Windows\system32\WINSPOOL.DRV
VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\jre6\lib\deploy.jar;C:\PROGRA~1\Java\jre6\lib\javaws.jar;C:\PROGRA~1\Java\jre6\lib\plugin.jar -Xmx32m -Djava.awt.headless=true -Dkernel.background.download=false -Dkernel.download.dialog=false -XX:MaxDirectMemorySize=64m
java_command: <unknown>
Launcher Type: generic
Environment Variables:
JAVA_HOME=C:\j2sdk1.4.2_04\
PATH=C:\Program Files\Internet Explorer;;C:\Windows\System32;C:\j2sdk1.4.2_04\bin;C:\Windows\System32\WindowsPowerShell\v1.0\
USERNAME=mlebson
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 30 Stepping 5, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2008 Build 6002 Service Pack 2
CPU:total 4 (8 cores per cpu, 2 threads per core) family 6 model 30 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht
Memory: 4k page, physical 4183352k(3147268k free), swap 8613472k(7704200k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed Dec 12 14:31:46 2012
elapsed time: 0 seconds
It looks like a null pointer exception in the JVM itself. It still occurs if I get rid of the "IE specific" version I have and just use the second one, after the Else. I've also tried changing the height and width to nonzero values, thinking it might be doing something weird with those, but no. It does not occur if I go back to using applet tags, while keeping all the parameters and settings the same. Now, if I were doing this purely for myself I would just accept it was a bug in an old JVM and require people to upgrade to the latest version of Java (which works fine), but many of our customers are corporate users with very "sticky" IT departments who take ages to roll out updates, or users who don't even know what Java is, let alone know how to update it. Do I just give up and continue using applet tags until browsers outright stop supporting them? Is there a trick to make this work that I haven't tried?
EDIT: I did some more testing, and it looks like the java test page itself (http://www.java.com/en/download/testjava.jsp) also causes the same crash. Maybe I'll just have to use applet tags until all our customers have updated, if it's so bad that the official java test applet can't even load.
Use deployJava.js to write the applet element. It is designed to ensure the correct element for that browser is written.
The issue is in the native C frame and looks like a JDK bug.
A similar bug with JDK 6u 19 and above was reported here.
The fix looks like is to move on to Java 7
at the moment i´m trying to play around with JNI.
My Java-Code :
public class test{
static{
System.loadLibrary("wakeup64");
}
public static native boolean setWakeupTime(Date date);
public static void set(){
Date d = new Date();
setWakeupTime(d);
}
}
C-Code:
#include <jni.h>
#include "cpp_interface.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_test_setWakeupTime
(JNIEnv *env, jclass cl, jobject date){
printf("test");
}
int main(){
}
The code compiles fine but if I run my java Class i´m getting an exception_access_violation:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000000c038, pid=7456, tid=4640
#
# JRE version: 7.0_03-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.1-b02 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x000000000000c038
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/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 (0x000000000211b000): JavaThread "main" [_thread_in_native, id=4640, stack(0x0000000002290000,0x0000000002390000)]
siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x000000000000c038
Registers:
RAX=0x0000000000000000, RBX=0x0000000000000015, RCX=0x00000000fffffff4, RDX=0x000000014000d040
RSP=0x000000000238f668, RBP=0x000000000238f858, RSI=0x0000000000000001, RDI=0x00000000000000fc
R8 =0x000000000238f878, R9 =0x00000000065cc490, R10=0x00000000023a21bc, R11=0x000000005b958940
R12=0x0000000000000000, R13=0x000000073b0739e0, R14=0x000000014000d570, R15=0x000000000211b000
RIP=0x000000000000c038, EFLAGS=0x0000000000010246
Top of Stack: (sp=0x000000000238f668)
0x000000000238f668: 0000000140002cd9 000000000238f7c0
0x000000000238f678: 000000005b922181 000000000211bd88
0x000000000238f688: 000000000211b000 0000000000000003
0x000000000238f698: 000000000211ba90 000000000238f878
0x000000000238f6a8: 0000000140002d60 0000000000000011
0x000000000238f6b8: 000000000211b000 000000014000d750
0x000000000238f6c8: 000000073b0739e0 000000000211b990
0x000000000238f6d8: 0000000140004374 000000000211bd88
0x000000000238f6e8: 0000000000000004 000000000238f7c0
0x000000000238f6f8: 00000000023ad623 000000073b0739e0
0x000000000238f708: 0000000140004453 0000000000000022
0x000000000238f718: 000000073b073730 000000014000d750
0x000000000238f728: 000000000211b000 000000000238f7c8
0x000000000238f738: 00000001400015e2 000000014000d040
0x000000000238f748: 0000000140001000 000000000238f858
0x000000000238f758: 0000000000000000 000000073b0739e0
Instructions: (pc=0x000000000000c038)
0x000000000000c018:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x0000000000000015 is an unknown value
RCX=0x00000000fffffff4 is an unknown value
RDX=0x000000014000d040 is an unknown value
RSP=0x000000000238f668 is pointing into the stack for thread: 0x000000000211b000
RBP=0x000000000238f858 is pointing into the stack for thread: 0x000000000211b000
RSI=0x0000000000000001 is an unknown value
RDI=0x00000000000000fc is an unknown value
R8 =0x000000000238f878 is pointing into the stack for thread: 0x000000000211b000
R9 =0x00000000065cc490 is an unknown value
R10=0x00000000023a21bc is an Interpreter codelet
method entry point (kind = native) [0x00000000023a1f40, 0x00000000023a27c0] 2176 bytes
R11=0x000000005b958940 is an unknown value
R12=0x0000000000000000 is an unknown value
R13=0x000000073b0739e0 is an oop
{method}
- klass: {other class}
R14=0x000000014000d570 is an unknown value
R15=0x000000000211b000 is a thread
Stack: [0x0000000002290000,0x0000000002390000], sp=0x000000000238f668, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x000000000000c038
j test.print()V+9
j Main.main([Ljava/lang/String;)V+10
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j wecker.setWakeupTime(Ljava/util/Date;)Z+0
j wecker.print()V+9
j Main.main([Ljava/lang/String;)V+10
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x00000000065a9000 JavaThread "Service Thread" daemon [_thread_blocked, id=5300, stack(0x0000000007840000,0x0000000007940000)]
0x00000000065a7800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=7416, stack(0x0000000007690000,0x0000000007790000)]
0x0000000006594000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4656, stack(0x00000000074d0000,0x00000000075d0000)]
0x0000000006591000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5864, stack(0x00000000073b0000,0x00000000074b0000)]
0x000000000658c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7252, stack(0x0000000007260000,0x0000000007360000)]
0x0000000002067000 JavaThread "Finalizer" daemon [_thread_blocked, id=2840, stack(0x0000000007060000,0x0000000007160000)]
0x000000000205e800 JavaThread "Reference Handler" daemon [_thread_blocked, id=8056, stack(0x0000000006e30000,0x0000000006f30000)]
=>0x000000000211b000 JavaThread "main" [_thread_in_native, id=4640, stack(0x0000000002290000,0x0000000002390000)]
Other Threads:
0x0000000002055000 VMThread [stack: 0x0000000006c00000,0x0000000006d00000] [id=8016]
0x00000000065c2000 WatcherThread [stack: 0x0000000007a70000,0x0000000007b70000] [id=6884]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 57344K, used 983K [0x00000007c0000000, 0x00000007c4000000, 0x0000000800000000)
eden space 49152K, 2% used [0x00000007c0000000,0x00000007c00f5c98,0x00000007c3000000)
from space 8192K, 0% used [0x00000007c3800000,0x00000007c3800000,0x00000007c4000000)
to space 8192K, 0% used [0x00000007c3000000,0x00000007c3000000,0x00000007c3800000)
PSOldGen total 131072K, used 0K [0x0000000740000000, 0x0000000748000000, 0x00000007c0000000)
object space 131072K, 0% used [0x0000000740000000,0x0000000740000000,0x0000000748000000)
PSPermGen total 21248K, used 2569K [0x000000073ae00000, 0x000000073c2c0000, 0x0000000740000000)
object space 21248K, 12% used [0x000000073ae00000,0x000000073b0827c8,0x000000073c2c0000)
Code Cache [0x0000000002390000, 0x0000000002600000, 0x0000000005390000)
total_blobs=169 nmethods=0 adapters=136 free_code_cache=48773Kb largest_free_block=49943680
Dynamic libraries:
0x000000013f530000 - 0x000000013f563000 C:\Windows\system32\java.exe
0x0000000077730000 - 0x00000000778d9000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000077610000 - 0x000000007772f000 C:\Windows\system32\kernel32.dll
0x000007fefde10000 - 0x000007fefde7c000 C:\Windows\system32\KERNELBASE.dll
0x00000000707d0000 - 0x000000007081a000 D:\Program Files\AVAST Software\Avast\snxhk64.dll
0x000007feff7f0000 - 0x000007feff8cb000 C:\Windows\system32\ADVAPI32.dll
0x000007fefe7b0000 - 0x000007fefe84f000 C:\Windows\system32\msvcrt.dll
0x000007feff970000 - 0x000007feff98f000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefe3e0000 - 0x000007fefe50d000 C:\Windows\system32\RPCRT4.dll
0x0000000077510000 - 0x000000007760a000 C:\Windows\system32\USER32.dll
0x000007fefe360000 - 0x000007fefe3c7000 C:\Windows\system32\GDI32.dll
0x000007fefe3d0000 - 0x000007fefe3de000 C:\Windows\system32\LPK.dll
0x000007fefe900000 - 0x000007fefe9c9000 C:\Windows\system32\USP10.dll
0x000007fefc360000 - 0x000007fefc554000 C:\Windows\WinSxS\amd64_microsoft.windows.common- controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefe9d0000 - 0x000007fefea41000 C:\Windows\system32\SHLWAPI.dll
0x000007feffa10000 - 0x000007feffa3e000 C:\Windows\system32\IMM32.DLL
0x000007fefe250000 - 0x000007fefe359000 C:\Windows\system32\MSCTF.dll
0x0000000062860000 - 0x0000000062931000 D:\Program Files\Java\jre7\bin\msvcr100.dll
0x000000005b7a0000 - 0x000000005be7a000 D:\Program Files\Java\jre7\bin\server\jvm.dll
0x000007fefabf0000 - 0x000007fefabf9000 C:\Windows\system32\WSOCK32.dll
0x000007fefe850000 - 0x000007fefe89d000 C:\Windows\system32\WS2_32.dll
0x000007feff7e0000 - 0x000007feff7e8000 C:\Windows\system32\NSI.dll
0x000007fefbc40000 - 0x000007fefbc7b000 C:\Windows\system32\WINMM.dll
0x0000000077900000 - 0x0000000077907000 C:\Windows\system32\PSAPI.DLL
0x0000000062a10000 - 0x0000000062a1f000 D:\Program Files\Java\jre7\bin\verify.dll
0x00000000629e0000 - 0x0000000062a08000 D:\Program Files\Java\jre7\bin\java.dll
0x00000000629c0000 - 0x00000000629d5000 D:\Program Files\Java\jre7\bin\zip.dll
0x0000000140000000 - 0x0000000140012000 C:\Users\xx\workspace\test\src\wakeup64.dll
VM Arguments:
java_command: Main
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;D:\Program Files\Common Files\Microsoft Shared\Windows Live;D:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPow erShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;D:\Program Files(x86)\Android\android-sdk\platform- tools\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;D:\Program Files\Java\jdk1.7.0_02\bin;D:\MinGW\bin;D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
USERNAME=xx
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 5 Stepping 2, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 4 (4 cores per cpu, 1 threads per core) family 16 model 5 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnowpref, lzcnt, sse4a
Memory: 4k page, physical 12581048k(7862816k free), swap 25160244k(19112368k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (22.1-b02) for windows-amd64 JRE (1.7.0_03-b05), built on Feb 3 2012 20:43:56 by "java_re" with unknown MS VC++:1600
time: Sun Jul 29 01:02:23 2012
elapsed time: 0 seconds
Anyone allready encountered this?
Regenerate your header file with javah, and fix the .c file accordingly. You have changed the return type from void to boolean in the Java native method declaration without adjusting the native code.
And get rid of the main().
#technomage:
i compiled it as a .dll not as an exe
semi-solved my problem by using the preconfigured shell from visual studio 2012 instead of normal cmd. seems to be an error in my env config
thanks everyone
I'm developing a game in Java using LWJGL. Along with the main game, I'm developing a few Swing-based applications (a launcher, a configuration editor, and a map editor).
When I run the launcher, I sometimes (about 10% of the time) get a fatal JVM crash. It's very strange - I can run the program a few seconds later and everything works. I have zero compilation errors or warnings, and when the program does work, it's completely functional.
I haven't gotten the error when I run my LWJGL game, it's only when I run the launcher first. The process I use to initialize the launcher is:
Tell swing to use a Substance Look and Feel for window decoration.
Setup a directory on the user's computer in which to store files (save games, configurations, etc).
Check if extracting the LWJGL required libraries to the previously mentioned directory is necessary; if so, extract them. Then, set the LWJGL path property of the JVM (this allows LWJGL methods to function). (This has been extensively tested by itself; I don't know if it would somehow interfere with the Substance LaF. I wouldn't expect it to.)
Initialize the launcher window. It has a central image and a series of JButtons.
Begin looping a background soundtrack for ambiance using JLayer. This error would occur before I implemented this feature, and adding it did not change anything.
The error I get is as follows:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefd800c7b, pid=6128, tid=4364
#
# JRE version: 6.0_27-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ole32.dll+0x10c7b]
#
# An error report file with more information is saved as:
# J:\Development\workspace\Crypt Utils\hs_err_pid6128.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.
#
Then, the error log file:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefd800c7b, pid=6128, tid=4364
#
# JRE version: 6.0_27-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ole32.dll+0x10c7b]
#
# 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 (0x000000000713d000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4364, stack(0x0000000007e30000,0x0000000007f30000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000038
Registers:
RAX=0x0000000000000000, RBX=0x000000000b933c70, RCX=0x000000000000110c, RDX=0x000007fefd996620
RSP=0x0000000007f2dfa0, RBP=0x000000000026dc90, RSI=0x0000000000000000, RDI=0x000000000b933c70
R8 =0x00000000000003d4, R9 =0x000007fefd977f18, R10=0x0000000000000000, R11=0x0000000007f2dec0
R12=0x0000000000000000, R13=0x000000000b90a3c0, R14=0x0000000000000000, R15=0x0000000000000000
RIP=0x000007fefd800c7b, EFLAGS=0x0000000000010246
Top of Stack: (sp=0x0000000007f2dfa0)
0x0000000007f2dfa0: 000000000b933c70 0000000000000000
0x0000000007f2dfb0: 0000000000000000 000007fefd81311b
0x0000000007f2dfc0: 0000000000000000 0000000007f2e050
0x0000000007f2dfd0: 000017f000001000 d0b221343c39b318
0x0000000007f2dfe0: 000081de6b223eb8 000007fefd813032
0x0000000007f2dff0: 0000000000000001 00000000070e9c18
0x0000000007f2e000: 0000000000000000 000000000026dc90
0x0000000007f2e010: 000000000713d1d0 000007fefd801225
0x0000000007f2e020: 0000000007f2e080 000000000026dc90
0x0000000007f2e030: 0000000000000000 000000000000008c
0x0000000007f2e040: 000000000c797be0 000007fefd963135
0x0000000007f2e050: 000000000026dc90 000000000713ca28
0x0000000007f2e060: 0000000006697d00 000007fefd0f8c12
0x0000000007f2e070: 000000000c797be0 000007fefd91de9d
0x0000000007f2e080: 000000000026dc90 00000000070e9c18
0x0000000007f2e090: 0000000000000018 0000000000000514
Instructions: (pc=0x000007fefd800c7b)
0x000007fefd800c5b: 60 1c 00 41 b8 d4 03 00 00 e8 47 82 01 00 85 f6
0x000007fefd800c6b: 78 2b f3 0f 6f 44 24 30 48 8b 45 18 4c 89 6d 20
0x000007fefd800c7b: f3 0f 7f 40 30 f6 45 0c 01 75 12 48 8b cd e8 be
0x000007fefd800c8b: fa ff ff 8b f0 85 c0 78 04 83 4d 0c 01 48 8b cd
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x000000000b933c70 is an unknown value
RCX=0x000000000000110c is an unknown value
RDX=0x000007fefd996620 is an unknown value
RSP=0x0000000007f2dfa0 is pointing into the stack for thread: 0x000000000713d000
RBP=0x000000000026dc90 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x000000000b933c70 is an unknown value
R8 =0x00000000000003d4 is an unknown value
R9 =0x000007fefd977f18 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000007f2dec0 is pointing into the stack for thread: 0x000000000713d000
R12=0x0000000000000000 is an unknown value
R13=0x000000000b90a3c0 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x0000000000000000 is an unknown value
Stack: [0x0000000007e30000,0x0000000007f30000], sp=0x0000000007f2dfa0, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ole32.dll+0x10c7b] CLSIDFromString+0x5fb
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
sun.awt.windows.WComponentPeer.addNativeDropTarget()J+0
sun.awt.windows.WComponentPeer.addDropTarget(Ljava/awt/dnd/DropTarget;)V+9
java.awt.dnd.DropTarget.addNotify(Ljava/awt/peer/ComponentPeer;)V+60
java.awt.Component.addNotify()V+297
java.awt.Container.addNotify()V+8
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
javax.swing.JMenuBar.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
org.pushingpixels.substance.internal.utils.SubstanceTitlePane.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
java.awt.Container.addNotify()V+61
javax.swing.JComponent.addNotify()V+1
javax.swing.JRootPane.addNotify()V+5
java.awt.Container.addNotify()V+61
java.awt.Window.addNotify()V+73
java.awt.Frame.addNotify()V+70
java.awt.Window.pack()V+28
gui.launcher.LauncherWindow.()V+156
main.Crypt.runLauncher()V+28
main.Crypt$1.run()V+0
java.awt.event.InvocationEvent.dispatch()V+47
java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+21
java.awt.EventQueue.access$000(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
java.awt.EventQueue$1.run()Ljava/lang/Void;+12
java.awt.EventQueue$1.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
java.security.AccessControlContext$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204
java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0000000007309000 JavaThread "Substance heap status" daemon [_thread_blocked, id=5732, stack(0x000000000c000000,0x000000000c100000)]
0x000000000737e000 JavaThread "Headspace mixer frame proc thread" daemon [_thread_blocked, id=5520, stack(0x000000000bd00000,0x000000000be00000)]
0x00000000072a2800 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=2956, stack(0x000000000b700000,0x000000000b800000)]
0x00000000071dc800 JavaThread "Thread-3" [_thread_in_native, id=4104, stack(0x00000000082b0000,0x00000000083b0000)]
0x00000000003db800 JavaThread "DestroyJavaVM" [_thread_blocked, id=5600, stack(0x0000000002570000,0x0000000002670000)]
=>0x000000000713d000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4364, stack(0x0000000007e30000,0x0000000007f30000)]
0x00000000067af800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5760, stack(0x0000000007830000,0x0000000007930000)]
0x00000000067ae800 JavaThread "AWT-Shutdown" [_thread_blocked, id=2600, stack(0x0000000007730000,0x0000000007830000)]
0x00000000066ea800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4244, stack(0x00000000074e0000,0x00000000075e0000)]
0x0000000006684000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5196, stack(0x0000000006d10000,0x0000000006e10000)]
0x0000000006681000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4192, stack(0x0000000006c10000,0x0000000006d10000)]
0x000000000666e000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4260, stack(0x0000000006b10000,0x0000000006c10000)]
0x000000000666b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5008, stack(0x0000000006a10000,0x0000000006b10000)]
0x0000000006666000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4032, stack(0x0000000006910000,0x0000000006a10000)]
0x000000000064b800 JavaThread "Finalizer" daemon [_thread_blocked, id=1132, stack(0x0000000006810000,0x0000000006910000)]
0x0000000000649000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5336, stack(0x0000000006510000,0x0000000006610000)]
Other Threads:
0x0000000000641000 VMThread [stack: 0x0000000006410000,0x0000000006510000] [id=3820]
0x0000000006697000 WatcherThread [stack: 0x0000000006e10000,0x0000000006f10000] [id=5156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 19136K, used 15506K [0x00000000eaab0000, 0x00000000ec000000, 0x0000000100000000)
eden space 16448K, 94% used [0x00000000eaab0000,0x00000000eb9d4b98,0x00000000ebac0000)
from space 2688K, 0% used [0x00000000ebd60000,0x00000000ebd60000,0x00000000ec000000)
to space 2688K, 0% used [0x00000000ebac0000,0x00000000ebac0000,0x00000000ebd60000)
PSOldGen total 43712K, used 0K [0x00000000c0000000, 0x00000000c2ab0000, 0x00000000eaab0000)
object space 43712K, 0% used [0x00000000c0000000,0x00000000c0000000,0x00000000c2ab0000)
PSPermGen total 21248K, used 15942K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
object space 21248K, 75% used [0x00000000bae00000,0x00000000bbd91870,0x00000000bc2c0000)
Code Cache [0x0000000002670000, 0x00000000028e0000, 0x0000000005670000)
total_blobs=470 nmethods=39 adapters=385 free_code_cache=49729536 largest_free_block=6336
Dynamic libraries:
0x0000000000400000 - 0x000000000042e000 C:\Program Files\Java\jre6\bin\javaw.exe
0x00000000770f0000 - 0x0000000077299000 C:\Windows\SYSTEM32\ntdll.dll
0x0000000076ed0000 - 0x0000000076fef000 C:\Windows\system32\kernel32.dll
0x000007fefd0f0000 - 0x000007fefd15c000 C:\Windows\system32\KERNELBASE.dll
0x0000000074de0000 - 0x0000000074e1f000 C:\Program Files\AVAST Software\Avast\snxhk64.dll
0x000007fefdde0000 - 0x000007fefdebb000 C:\Windows\system32\ADVAPI32.dll
0x000007fefd410000 - 0x000007fefd4af000 C:\Windows\system32\msvcrt.dll
0x000007fefd4b0000 - 0x000007fefd4cf000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefef90000 - 0x000007feff0bd000 C:\Windows\system32\RPCRT4.dll
0x0000000076ff0000 - 0x00000000770ea000 C:\Windows\system32\USER32.dll
0x000007fefdec0000 - 0x000007fefdf27000 C:\Windows\system32\GDI32.dll
0x000007fefee50000 - 0x000007fefee5e000 C:\Windows\system32\LPK.dll
0x000007feff0c0000 - 0x000007feff189000 C:\Windows\system32\USP10.dll
0x000007fefe090000 - 0x000007fefe0be000 C:\Windows\system32\IMM32.DLL
0x000007fefd4d0000 - 0x000007fefd5d9000 C:\Windows\system32\MSCTF.dll
0x000000006d7f0000 - 0x000000006dfa8000 C:\Program Files\Java\jre6\bin\server\jvm.dll
0x000007fefa980000 - 0x000007fefa9bb000 C:\Windows\system32\WINMM.dll
0x000000006d760000 - 0x000000006d76e000 C:\Program Files\Java\jre6\bin\verify.dll
0x000000006d3b0000 - 0x000000006d3d7000 C:\Program Files\Java\jre6\bin\java.dll
0x000000006d7b0000 - 0x000000006d7c2000 C:\Program Files\Java\jre6\bin\zip.dll
0x000000006d000000 - 0x000000006d1c3000 C:\Program Files\Java\jre6\bin\awt.dll
0x000007fefa620000 - 0x000007fefa691000 C:\Windows\system32\WINSPOOL.DRV
0x000007fefd7f0000 - 0x000007fefd9f3000 C:\Windows\system32\ole32.dll
0x000007fefe0c0000 - 0x000007fefee48000 C:\Windows\system32\SHELL32.dll
0x000007fefef10000 - 0x000007fefef81000 C:\Windows\system32\SHLWAPI.dll
0x000007fefbaf0000 - 0x000007fefbce4000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefb3b0000 - 0x000007fefb3c8000 C:\Windows\system32\DWMAPI.DLL
0x000007fefb780000 - 0x000007fefb7d6000 C:\Windows\system32\uxtheme.dll
0x000007fef93b0000 - 0x000007fef942f000 C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll
0x000007fefd5e0000 - 0x000007fefd6b7000 C:\Windows\system32\OLEAUT32.dll
0x000007fefc180000 - 0x000007fefc18c000 C:\Windows\system32\version.dll
0x000007fefcf70000 - 0x000007fefcf7f000 C:\Windows\system32\CRYPTBASE.dll
0x000000006d2a0000 - 0x000000006d306000 C:\Program Files\Java\jre6\bin\fontmanager.dll
0x000000006d600000 - 0x000000006d617000 C:\Program Files\Java\jre6\bin\net.dll
0x000007fefee60000 - 0x000007fefeead000 C:\Windows\system32\WS2_32.dll
0x000007feff210000 - 0x000007feff218000 C:\Windows\system32\NSI.dll
0x000007fefc870000 - 0x000007fefc8c5000 C:\Windows\system32\mswsock.dll
0x000007fefc860000 - 0x000007fefc867000 C:\Windows\System32\wship6.dll
0x000000006d620000 - 0x000000006d62b000 C:\Program Files\Java\jre6\bin\nio.dll
0x0000000180000000 - 0x0000000180050000 C:\Users\Chris\AppData\Roaming\jRabbit Data\LWJGL Natives\lwjgl64.dll
0x000007fef1550000 - 0x000007fef166d000 C:\Windows\system32\OPENGL32.dll
0x000007fef47c0000 - 0x000007fef47ed000 C:\Windows\system32\GLU32.dll
0x000007fef1210000 - 0x000007fef1301000 C:\Windows\system32\DDRAW.dll
0x000007fef8090000 - 0x000007fef8098000 C:\Windows\system32\DCIMAN32.dll
0x000007feff220000 - 0x000007feff3f7000 C:\Windows\system32\SETUPAPI.dll
0x000007fefd160000 - 0x000007fefd196000 C:\Windows\system32\CFGMGR32.dll
0x000007fefd3b0000 - 0x000007fefd3ca000 C:\Windows\system32\DEVOBJ.dll
0x000007fefa2a0000 - 0x000007fefa49f000 C:\Windows\system32\d3d9.dll
0x000007fefa290000 - 0x000007fefa297000 C:\Windows\system32\d3d8thk.dll
0x000007feed900000 - 0x000007feee777000 C:\Windows\system32\nvd3dumx.dll
0x000007fefb860000 - 0x000007fefb88c000 C:\Windows\system32\powrprof.dll
0x000000006d510000 - 0x000000006d53e000 C:\Program Files\Java\jre6\bin\jsound.dll
0x000007fefb730000 - 0x000007fefb77b000 C:\Windows\system32\MMDevAPI.DLL
0x000007fefb940000 - 0x000007fefba6c000 C:\Windows\system32\PROPSYS.dll
0x000007fefa5e0000 - 0x000007fefa61b000 C:\Windows\system32\wdmaud.drv
0x0000000074a00000 - 0x0000000074a06000 C:\Windows\system32\ksuser.dll
0x000007fefbae0000 - 0x000007fefbae9000 C:\Windows\system32\AVRT.dll
0x000007fefa590000 - 0x000007fefa5df000 C:\Windows\system32\AUDIOSES.DLL
0x000007fefa4e0000 - 0x000007fefa4ea000 C:\Windows\system32\msacm32.drv
0x000007fefa4c0000 - 0x000007fefa4d8000 C:\Windows\system32\MSACM32.dll
0x000007fefa4a0000 - 0x000007fefa4a9000 C:\Windows\system32\midimap.dll
0x000000006d210000 - 0x000000006d238000 C:\Program Files\Java\jre6\bin\dcpr.dll
0x000007fefdf30000 - 0x000007fefdfc9000 C:\Windows\system32\CLBCatQ.DLL
0x000007fefcb00000 - 0x000007fefcb17000 C:\Windows\system32\CRYPTSP.dll
0x000007fefc5d0000 - 0x000007fefc617000 C:\Windows\system32\rsaenh.dll
0x000007fefc390000 - 0x000007fefc3ae000 C:\Windows\system32\USERENV.dll
0x000007fefcfa0000 - 0x000007fefcfaf000 C:\Windows\system32\profapi.dll
0x000007fefad70000 - 0x000007fefad85000 C:\Windows\system32\NLAapi.dll
0x000007fefb220000 - 0x000007fefb235000 C:\Windows\system32\napinsp.dll
0x000007fefb200000 - 0x000007fefb219000 C:\Windows\system32\pnrpnsp.dll
0x000007fefc6f0000 - 0x000007fefc74b000 C:\Windows\system32\DNSAPI.dll
0x000007fefbac0000 - 0x000007fefbacb000 C:\Windows\System32\winrnr.dll
0x0000000074700000 - 0x000000007472e000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x00000000772b0000 - 0x00000000772b7000 C:\Windows\system32\PSAPI.DLL
0x00000000746d0000 - 0x00000000746f6000 C:\Program Files\Bonjour\mdnsNSP.dll
0x000007fef9ec0000 - 0x000007fef9ee7000 C:\Windows\system32\Iphlpapi.DLL
0x000007fef9eb0000 - 0x000007fef9ebb000 C:\Windows\system32\WINNSI.DLL
0x000007fefc250000 - 0x000007fefc257000 C:\Windows\System32\wshtcpip.dll
0x000007fefb7e0000 - 0x000007fefb7e8000 C:\Windows\system32\rasadhlp.dll
0x000007fef9cf0000 - 0x000007fef9d43000 C:\Windows\System32\fwpuclnt.dll
0x000007fefcf80000 - 0x000007fefcf94000 C:\Windows\system32\RpcRtRemote.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: main.Crypt
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
PATH=C:/Program Files/Java/jre6/bin/server;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Autodesk\Backburner\;J:\Development\Eclipse;
USERNAME=Chris
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 11, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 4193464k(2246544k free), swap 8385080k(6086692k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.2-b06) for windows-amd64 JRE (1.6.0_27-b07), built on Jul 19 2011 01:08:22 by "java_re" with MS VC++ 8.0 (VS2005)
time: Mon Oct 03 09:29:15 2011
elapsed time: 1 seconds
From looking around on Stack Overflow, it seems like this is occasionally related to memory settings. Is that the case here? I've already set Eclipse to run with a lot of memory at its disposal; additionally, I'm only creating a small JFrame with a few components on it, plus initializing the LWJGL libraries. That doesn't take up much memory.
I often have problems with java 6 and Swing on my Windows Vista 64 box (but only when I launch my app from eclipse).
The way to fix it for me was to disable Direct3D:
java -Dsun.java2d.d3d=false ...
See also http://download.oracle.com/javase/6/docs/technotes/guides/2d/flags.html#d3d for further information.
Well, the error is from a dll trying to write to memory where it shouldn't. If it happens just sometimes, it may be from not building components on the event dispatch thread. It can't hurt to check.
This bug report at oracle may be related: http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=e5f1f1011daf96ffffffffdd154dd2e731150?bug_id=6967456
It may be related to swing's drag & drop functionality - see if disabling drag and drop on your form components supresses the error.
#CodeBunny, that would be comment:
1) is there Trindent.jar
2) how do you apply Substance Look and Feel to the JFrame,
SwingUtilities.invokeLater(new Runnable() {
#Override
public void run() {
try {
UIManager.setLookAndFeel(new SubstanceOfficeSilver2007LookAndFeel());
SwingUtilities.updateComponentTreeUI(frame);
} catch (UnsupportedLookAndFeelException e) {
throw new RuntimeException(e);
}
}
});
in most cases (if there some BackGround task) required usage of invokeAndWait
EDIT
depends
1) if you are load empty container, then add data (invokeLater)
2) or load everything and wait for that (invokeAndWait),
3) are your contructor for Container in last line contains setVisible(true), last from possible lines,
4) maybe you are outside EDT, something you must loading so heavy, isn't there RepaintManager Error???
5) disable Substance, if you get this error, then came from mistake in codeing or some your code returns error, otherwise is there something rellated with RepaintManager (overload Native OS Latency) or with Concurency, simple your code is out of EDT,
6) Substance is so sensitive, very sensitive for done code out of EDT issues, remove all Thread.sleep(int) from GUI rellated code
I am attempting to get the Version info for a .exe using the Version.dll and JNA.
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.win32.W32APIOptions;
/**
*
* #author geverding
*/
public interface Version extends Library {
Version INSTANCE = (Version) Native.loadLibrary("Version", Version.class, W32APIOptions.UNICODE_OPTIONS);
public int GetFileVersionInfoSizeW(String lptstrFilename);
public int GetFileVersionInfo(String lptstrFilename, int dwHandle, int dwLen, PointerByReference lpData);
public int VerQueryValue(PointerByReference pBlock, String lpSubBlock, PointerByReference lplpBuffer, IntByReference puLen);
}
...in the Main method
int dwlen = Version.INSTANCE.GetFileVersionInfoSizeW("C:\\Test\\VNCSetup.EXE");
At this point the JRE throws a exception
#
A fatal error has been detected by the Java Runtime Environment:
#
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefc6e14ff,
pid=3884, tid=2248
#
JRE version: 6.0_26-b03
Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode
windows-amd64 compressed oops)
Problematic frame:
C [Version.dll+0x14ff]
#
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 (0x000000000054c000): JavaThread "main"
[_thread_in_native, id=2248,
stack(0x00000000024e0000,0x00000000025e0000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x00000001800161ca
Registers: RAX=0x00000000025df4d8, RBX=0x000000009c2e9678,
RCX=0x0000000000000001, RDX=0x000000000774fda0 RSP=0x00000000025df330,
RBP=0x00000000025df3b0, RSI=0x000000009c0a4258, RDI=0x0000000000000001
R8 =0x00000001800161ca, R9 =0x000000006da78189,
R10=0x00000000025f79b2, R11=0x00000000025df380 R12=0x000000000774fda0,
R13=0x000000009c2e9678, R14=0x00000000025df758, R15=0x000000000054c000
RIP=0x000007fefc6e14ff, EFLAGS=0x0000000000010206
Top of Stack: (sp=0x00000000025df330) 0x00000000025df330:
00000000025df388 00000000025df4d8 0x00000000025df340:
0000000000000008 cccccccccccccccc 0x00000000025df350:
00000000025df478 00000001800161e1 0x00000000025df360:
0000000000000000 00000000025df478 0x00000000025df370:
000000009c0a4258 0000000180016213 0x00000000025df380:
000000009c2e9678 00000001800161ca 0x00000000025df390:
0000000000540000 000000006da78189 0x00000000025df3a0:
00000000025f2cd6 000000000000000a 0x00000000025df3b0:
00000000025df380 000000006da7c399 0x00000000025df3c0:
00000000025df400 000000018000ec6a 0x00000000025df3d0:
000000018000e580 00000000025df408 0x00000000025df3e0:
0000000000000028 000000000000000a 0x00000000025df3f0:
00000000025df680 000007fefc6e15fc 0x00000000025df400:
cccccccccccccccc 00000000025df510 0x00000000025df410:
00000000025df680 00000000025df4c0 0x00000000025df420:
cccccccccccccccc cccccccccccccccc
Instructions: (pc=0x000007fefc6e14ff) 0x000007fefc6e14df: c3 90 90
90 90 90 90 90 90 48 89 5c 24 08 56 57 0x000007fefc6e14ef: 41 54 48
83 ec 30 4c 8b e2 8b f9 4d 85 c0 74 04 0x000007fefc6e14ff: 41 83 20
00 b9 01 00 00 00 ff 15 c2 4b 00 00 8b 0x000007fefc6e150f: d8 89 44
24 60 33 d2 44 8d 42 22 49 8b cc ff 15
Register to memory mapping:
RAX=0x00000000025df4d8 is pointing into the stack for thread:
0x000000000054c000 RBX=0x000000009c2e9678 is an oop {method}
- klass: {other class} RCX=0x0000000000000001 is an unknown value
RDX=0x000000000774fda0 is an unknown value RSP=0x00000000025df330 is
pointing into the stack for thread: 0x000000000054c000
RBP=0x00000000025df3b0 is pointing into the stack for thread:
0x000000000054c000 RSI=0x000000009c0a4258 is an oop {instance class}
- klass: {other class} RDI=0x0000000000000001 is an unknown value R8
=0x00000001800161ca is an unknown value R9 =0x000000006da78189 is an
unknown value R10=0x00000000025f79b2 is an Interpreter codelet method
entry point (kind = native) [0x00000000025f74c0, 0x00000000025f8380]
3776 bytes R11=0x00000000025df380 is pointing into the stack for
thread: 0x000000000054c000 R12=0x000000000774fda0 is an unknown value
R13=0x000000009c2e9678 is an oop {method}
- klass: {other class} R14=0x00000000025df758 is pointing into the
stack for thread: 0x000000000054c000 R15=0x000000000054c000 is a
thread
Stack: [0x00000000024e0000,0x00000000025e0000],
sp=0x00000000025df330, free space=1020k Native frames: (J=compiled
Java code, j=interpreted, Vv=VM code, C=native code) C
[Version.dll+0x14ff] GetFileVersionInfoSizeExW+0x17
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j
com.sun.jna.Native.invokeInt(JI[Ljava/lang/Object;)I+0 j
com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Object;+333
j
com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+214
j
com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+341
j $Proxy0.GetFileVersionInfoSize(Ljava/lang/String;)I+16 j
windowsversion.WindowsVersion.main([Ljava/lang/String;)V+26 v
~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread ) 0x0000000006463800 JavaThread
"Low Memory Detector" daemon [_thread_blocked, id=2284,
stack(0x0000000006d00000,0x0000000006e00000)] 0x000000000645f800
JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3808,
stack(0x0000000006c00000,0x0000000006d00000)] 0x000000000645e000
JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3780,
stack(0x0000000006b00000,0x0000000006c00000)] 0x000000000644d000
JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=2944,
stack(0x0000000006a00000,0x0000000006b00000)] 0x0000000006449800
JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=744,
stack(0x0000000006900000,0x0000000006a00000)] 0x0000000006443800
JavaThread "JDWP Transport Listener: dt_shmem" daemon
[_thread_blocked, id=3336,
stack(0x0000000006800000,0x0000000006900000)] 0x0000000000525000
JavaThread "Attach Listener" daemon [_thread_blocked, id=3244,
stack(0x0000000006700000,0x0000000006800000)] 0x0000000000524800
JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1784,
stack(0x0000000006600000,0x0000000006700000)] 0x000000000050c000
JavaThread "Finalizer" daemon [_thread_blocked, id=3652,
stack(0x0000000006300000,0x0000000006400000)] 0x0000000000508800
JavaThread "Reference Handler" daemon [_thread_blocked, id=2216,
stack(0x0000000006200000,0x0000000006300000)]
=>0x000000000054c000 JavaThread "main" [_thread_in_native, id=2248,
stack(0x00000000024e0000,0x00000000025e0000)]
Other Threads: 0x0000000000502000 VMThread [stack:
0x0000000006100000,0x0000000006200000] [id=3596] 0x0000000006480000
WatcherThread [stack: 0x0000000006e00000,0x0000000006f00000] [id=3156]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap PSYoungGen total 28352K, used 2499K [0x00000000e0600000,
0x00000000e25a0000, 0x0000000100000000) eden space 24320K, 10% used
[0x00000000e0600000,0x00000000e0870f18,0x00000000e1dc0000) from
space 4032K, 0% used
[0x00000000e21b0000,0x00000000e21b0000,0x00000000e25a0000) to
space 4032K, 0% used
[0x00000000e1dc0000,0x00000000e1dc0000,0x00000000e21b0000) PSOldGen
total 64768K, used 0K [0x00000000a1200000, 0x00000000a5140000,
0x00000000e0600000) object space 64768K, 0% used
[0x00000000a1200000,0x00000000a1200000,0x00000000a5140000) PSPermGen
total 21248K, used 4506K [0x000000009c000000, 0x000000009d4c0000,
0x00000000a1200000) object space 21248K, 21% used
[0x000000009c000000,0x000000009c466a90,0x000000009d4c0000)
Code Cache [0x00000000025e0000, 0x0000000002850000,
0x00000000055e0000) total_blobs=191 nmethods=7 adapters=146
free_code_cache=49918592 largest_free_block=8704
Dynamic libraries: 0x0000000000400000 - 0x000000000042e000 C:\Program
Files\Java\jdk1.6.0_26\bin\java.exe 0x0000000077620000 -
0x00000000777cc000 C:\Windows\SYSTEM32\ntdll.dll 0x0000000077500000 -
0x000000007761f000 C:\Windows\system32\kernel32.dll
0x000007fefd840000 - 0x000007fefd8ab000
C:\Windows\system32\KERNELBASE.dll 0x000007fefdb70000 -
0x000007fefdc4b000 C:\Windows\system32\ADVAPI32.dll
0x000007feff5c0000 - 0x000007feff65f000
C:\Windows\system32\msvcrt.dll 0x000007feff5a0000 -
0x000007feff5bf000 C:\Windows\SYSTEM32\sechost.dll 0x000007fefda40000
- 0x000007fefdb6e000 C:\Windows\system32\RPCRT4.dll
0x000000006d890000 - 0x000000006e048000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll 0x0000000077400000 -
0x00000000774fa000 C:\Windows\system32\USER32.dll 0x000007feff8c0000
- 0x000007feff927000 C:\Windows\system32\GDI32.dll 0x000007feff3b0000
- 0x000007feff3be000 C:\Windows\system32\LPK.dll 0x000007fefd970000 -
0x000007fefda3a000 C:\Windows\system32\USP10.dll 0x000007fefb090000 -
0x000007fefb0cb000 C:\Windows\system32\WINMM.dll 0x000007feff7e0000 -
0x000007feff80e000 C:\Windows\system32\IMM32.DLL 0x000007feff2a0000 -
0x000007feff3a9000 C:\Windows\system32\MSCTF.dll 0x000000006d800000 -
0x000000006d80e000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\verify.dll 0x000000006d450000 -
0x000000006d477000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.dll
0x00000000777f0000 - 0x00000000777f7000 C:\Windows\system32\PSAPI.DLL
0x000000006d4c0000 - 0x000000006d4f4000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\jdwp.dll 0x000000006d6d0000 -
0x000000006d6d8000 C:\Program Files\Java\jdk1.6.0_26\jre\bin\npt.dll
0x000000006d850000 - 0x000000006d862000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\zip.dll 0x000000006d300000 -
0x000000006d30a000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\dt_shmem.dll 0x000007fefce50000 -
0x000007fefce67000 C:\Windows\system32\CRYPTSP.dll 0x000007fefcb50000
- 0x000007fefcb97000 C:\Windows\system32\rsaenh.dll
0x000007fefc8b0000 - 0x000007fefc8ce000
C:\Windows\system32\USERENV.dll 0x000007fefd580000 -
0x000007fefd58f000 C:\Windows\system32\profapi.dll 0x000007fefd4b0000
- 0x000007fefd4bf000 C:\Windows\system32\CRYPTBASE.dll
0x000000006d6a0000 - 0x000000006d6b7000 C:\Program
Files\Java\jdk1.6.0_26\jre\bin\net.dll 0x000007fefec90000 -
0x000007fefecdd000 C:\Windows\system32\WS2_32.dll 0x000007feff810000
- 0x000007feff818000 C:\Windows\system32\NSI.dll 0x000007fefcdf0000 -
0x000007fefce44000 C:\Windows\system32\mswsock.dll 0x000007fefcde0000
- 0x000007fefcde7000 C:\Windows\System32\wship6.dll
0x000007fefae10000 - 0x000007fefae25000
C:\Windows\system32\NLAapi.dll 0x000007fefcc70000 -
0x000007fefcccb000 C:\Windows\system32\DNSAPI.dll 0x000007fef4a70000
- 0x000007fef4a7b000 C:\Windows\System32\winrnr.dll
0x000007fef4a50000 - 0x000007fef4a65000
C:\Windows\system32\napinsp.dll 0x000007fef4a30000 -
0x000007fef4a49000 C:\Windows\system32\pnrpnsp.dll 0x000007fefc7b0000
- 0x000007fefc7b7000 C:\Windows\System32\wshtcpip.dll
0x000007fefb470000 - 0x000007fefb497000
C:\Windows\system32\IPHLPAPI.DLL 0x000007fefb450000 -
0x000007fefb45b000 C:\Windows\system32\WINNSI.DLL 0x000007fef4b50000
- 0x000007fef4b58000 C:\Windows\system32\rasadhlp.dll
0x000007fefb2e0000 - 0x000007fefb333000
C:\Windows\System32\fwpuclnt.dll 0x0000000180000000 -
0x0000000180037000
C:\Users\geverding\AppData\Local\Temp\jna7891581094505694184.dll
0x000007fefc6e0000 - 0x000007fefc6ec000
C:\Windows\system32\Version.dll
VM Arguments: jvm_args: -Xdebug
-Xrunjdwp:transport=dt_shmem,address=javadebug -Dfile.encoding=UTF-8
java_command: windowsversion.WindowsVersion Launcher Type:
SUN_STANDARD
Environment Variables:
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Program
Files\SlikSvn\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
(x86)\WinMerge;C:\Program Files (x86)\CVSNT;C:\Program
Files\WinRar;C:\Program Files\WinRar;C:\ProgramFiles\SlikSvn\bin
USERNAME=geverding OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6
Model 15 Stepping 6, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 7 Build 7600
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 6216888k(3835956k free), swap
12431876k(9888884k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (20.1-b02) for
windows-amd64 JRE (1.6.0_26-b03), built on May 4 2011 07:15:24 by
"java_re" with MS VC++ 8.0 (VS2005)
time: Wed Aug 03 11:33:47 2011 elapsed time: 8 seconds
Anybody have any ideas why this is happening?
If this is a MS library, you need to derive from StdCallLibrary, or add an OPTION_CALLING_CONVENTION=>STDCALL_CONVENTION to the options passed to your library load.
If you call with the wrong calling convention, you will likely crash the VM.