JVM crashed , how I can find the RootCause?

336 views
Skip to first unread message

saveg...@gmail.com

unread,
Jul 23, 2021, 6:01:04 AM7/23/21
to Java Native Access
below are the crash messages when invoking a native method.
Please advise how to find the root cause and solve it? thanks!

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x774a28c7, pid=556, tid=0x00001f30
#
# JRE version: Java(TM) SE Runtime Environment (8.0_291-b35) (build 1.8.0_291-b35)
# Java VM: Java HotSpot(TM) Server VM (25.291-b35 mixed mode windows-x86 )
# Problematic frame:
# C  [ntdll.dll+0x528c7]
#
# 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:
#

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

Current thread (0x03028000):  VMThread [stack: 0x02e40000,0x02e90000] [id=7984]

siginfo: ExceptionCode=0xc0000005, reading address 0x345e9c4c

Registers:
EAX=0x32313739, EBX=0x053efe78, ECX=0x00100000, EDX=0x053efe78
ESP=0x02e8f6e0, EBP=0x02e8f714, ESI=0x345e9c48, EDI=0x053efe70
EIP=0x774a28c7, EFLAGS=0x00010206

Top of Stack: (sp=0x02e8f6e0)
0x02e8f6e0:   00000000 00100000 053efe78 080cb2ec
0x02e8f6f0:   001c56f8 07a9a6b3 080cb2e4 00000002
0x02e8f700:   00000000 02e8f710 07b4fb9e 080cb2e7
0x02e8f710:   053efe70 02e8f72c 774a2878 053efdd0
0x02e8f720:   00000000 03027be0 053efe70 02e8f740
0x02e8f730:   507a078b 00100000 00000000 053efe78
0x02e8f740:   02e8f750 507a0758 053efe78 00000000
0x02e8f750:   02e8f760 07aa35c2 053efe78 053efe78 

Instructions: (pc=0x774a28c7)
0x774a28a7:   7a f8 80 7f 07 05 0f 84 b7 f4 03 00 8b 07 8b f7
0x774a28b7:   c1 ee 03 33 f0 33 35 dc 81 52 77 89 7d fc 33 f1
0x774a28c7:   8b 46 04 89 45 f4 c6 47 07 80 c6 47 06 00 8b 5e
0x774a28d7:   08 8b 4e 0c 89 5d e0 83 c3 01 89 4d e4 83 d1 01 


Register to memory mapping:

EAX=0x32313739 is an unknown value
EBX=0x053efe78 is an unknown value
ECX=0x00100000 is an unknown value
EDX=0x053efe78 is an unknown value
ESP=0x02e8f6e0 is an unknown value
EBP=0x02e8f714 is an unknown value
ESI=0x345e9c48 is an unknown value
EDI=0x053efe70 is an unknown value


Stack: [0x02e40000,0x02e90000],  sp=0x02e8f6e0,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ntdll.dll+0x528c7]
C  [ntdll.dll+0x52878]
C  [ucrtbase.DLL+0x3078b]
C  [ucrtbase.DLL+0x30758]
V  [jvm.dll+0x1835c2]
V  [jvm.dll+0x74e6b]
V  [jvm.dll+0x1a73f6]
V  [jvm.dll+0x1a7812]
V  [jvm.dll+0x1e75eb]
C  [ucrtbase.DLL+0x3feff]
C  [kernel32.dll+0x4ef3c]
C  [ntdll.dll+0x6360c]
C  [ntdll.dll+0x635df]


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

Java Threads: ( => current thread )
  0x030f5000 JavaThread "DestroyJavaVM" [_thread_blocked, id=1332, stack(0x008c0000,0x00910000)]
  0x030f4800 JavaThread "http-nio-8080-Acceptor" daemon [_thread_in_native, id=8080, stack(0x2a1d0000,0x2a220000)]
  0x030f4000 JavaThread "http-nio-8080-Poller" daemon [_thread_in_native, id=2892, stack(0x2a0e0000,0x2a130000)]
  0x030f3c00 JavaThread "http-nio-8080-exec-10" daemon [_thread_blocked, id=8044, stack(0x29c40000,0x29c90000)]
  0x030f3400 JavaThread "http-nio-8080-exec-9" daemon [_thread_blocked, id=7764, stack(0x2a050000,0x2a0a0000)]
  0x030f2c00 JavaThread "http-nio-8080-exec-8" daemon [_thread_blocked, id=6972, stack(0x29c90000,0x29ce0000)]
  0x030f2800 JavaThread "http-nio-8080-exec-7" daemon [_thread_blocked, id=2416, stack(0x06600000,0x06650000)]
  0x030f2000 JavaThread "http-nio-8080-exec-6" daemon [_thread_in_native, id=5648, stack(0x06cd0000,0x06d20000)]
  0x030f1800 JavaThread "http-nio-8080-exec-5" daemon [_thread_blocked, id=6992, stack(0x298e0000,0x29930000)]
  0x047ba800 JavaThread "http-nio-8080-exec-4" daemon [_thread_blocked, id=1480, stack(0x078a0000,0x078f0000)]
  0x046c3400 JavaThread "http-nio-8080-exec-3" daemon [_thread_blocked, id=3116, stack(0x07730000,0x07780000)]
  0x04ab8800 JavaThread "http-nio-8080-exec-2" daemon [_thread_blocked, id=3228, stack(0x29a60000,0x29ab0000)]
  0x27374c00 JavaThread "http-nio-8080-exec-1" daemon [_thread_blocked, id=6544, stack(0x16f50000,0x16fa0000)]
  0x27de9000 JavaThread "container-0" [_thread_blocked, id=6628, stack(0x05790000,0x057e0000)]
  0x27f6d000 JavaThread "Catalina-utility-2" [_thread_blocked, id=6632, stack(0x07270000,0x072c0000)]
  0x27603c00 JavaThread "Catalina-utility-1" [_thread_blocked, id=6124, stack(0x066a0000,0x066f0000)]
  0x03183000 JavaThread "Service Thread" daemon [_thread_blocked, id=6716, stack(0x03550000,0x035a0000)]
  0x030f1400 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=6292, stack(0x03500000,0x03550000)]
  0x030f0c00 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=5360, stack(0x01de0000,0x01e30000)]
  0x030e3000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4792, stack(0x032a0000,0x032f0000)]
  0x030df000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1540, stack(0x03430000,0x03480000)]
  0x030de400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3536, stack(0x03310000,0x03360000)]
  0x030c8400 JavaThread "Finalizer" daemon [_thread_blocked, id=7556, stack(0x02d80000,0x02dd0000)]
  0x001ff800 JavaThread "Reference Handler" daemon [_thread_blocked, id=7672, stack(0x02ec0000,0x02f10000)]

Other Threads:
=>0x03028000 VMThread [stack: 0x02e40000,0x02e90000] [id=7984]
  0x03185400 WatcherThread [stack: 0x02de0000,0x02e30000] [id=6568]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0013fe08] Safepoint_lock - owner thread: 0x03028000
[0x0013fe70] Threads_lock - owner thread: 0x03028000

Heap:
 PSYoungGen      total 75520K, used 5965K [0x21ac0000, 0x27000000, 0x27000000)
  eden space 73472K, 8% used [0x21ac0000,0x22093458,0x26280000)
  from space 2048K, 0% used [0x26280000,0x26280000,0x26480000)
  to   space 7168K, 0% used [0x26900000,0x26900000,0x27000000)
 ParOldGen       total 36352K, used 10057K [0x17000000, 0x19380000, 0x21ac0000)
  object space 36352K, 27% used [0x17000000,0x179d2718,0x19380000)
 Metaspace       used 26075K, capacity 27304K, committed 27436K, reserved 28032K

Card table byte_map: [0x00980000,0x00a10000] byte_map_base: 0x008c8000

Marking Bits: (ParMarkBitMap*) 0x07edfef8
 Begin Bits: [0x01ff0000, 0x023f0000)
 End Bits:   [0x023f0000, 0x027f0000)

Polling page: 0x00880000

CodeCache: size=245760Kb used=8529Kb max_used=10120Kb free=237230Kb
 bounds [0x07f50000, 0x08938000, 0x16f50000]
 total_blobs=3579 nmethods=3345 adapters=147
 compilation: enabled

Compilation events (10 events):
Event: 585.830 Thread 0x030f1400 3935       3       java.lang.ThreadLocal$ThreadLocalMap::remove (68 bytes)
Event: 585.831 Thread 0x030f1400 nmethod 3935 0x080cc788 code [0x080cc8c0, 0x080cccac]
Event: 585.831 Thread 0x030f1400 3932       3       java.nio.HeapByteBuffer::put (54 bytes)
Event: 585.831 Thread 0x030f1400 nmethod 3932 0x08127e08 code [0x08127f80, 0x081285d0]
Event: 621.054 Thread 0x030f1400 3936       3       org.apache.tomcat.util.buf.MessageBytes::setBytes (31 bytes)
Event: 621.054 Thread 0x030f1400 nmethod 3936 0x081c2e08 code [0x081c2f20, 0x081c3100]
Event: 621.055 Thread 0x030f1400 3938       3       org.apache.catalina.connector.Request::getHeaders (12 bytes)
Event: 621.055 Thread 0x030f1400 nmethod 3938 0x081c2988 code [0x081c2aa0, 0x081c2ccc]
Event: 621.055 Thread 0x030f1400 3937       3       java.util.TreeMap$PrivateEntryIterator::hasNext (13 bytes)
Event: 621.055 Thread 0x030f1400 nmethod 3937 0x080b3f88 code [0x080b40a0, 0x080b41c0]

Deoptimization events (10 events):
Event: 376.861 Thread 0x030f2800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x087ccd94 method=java.util.Collections$SynchronizedMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @ 13
Event: 376.861 Thread 0x030f2800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x087ccd94 method=java.util.Collections$SynchronizedMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @ 13
Event: 376.861 Thread 0x030f2800 Uncommon trap: reason=bimorphic action=maybe_recompile pc=0x087ccd94 method=java.util.Collections$SynchronizedMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; @ 13
Event: 376.862 Thread 0x030f2800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x0881a870 method=java.lang.Class.reflectionData()Ljava/lang/Class$ReflectionData; @ 24
Event: 412.962 Thread 0x030f2800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x0889ada0 method=java.lang.Class.reflectionData()Ljava/lang/Class$ReflectionData; @ 24
Event: 412.962 Thread 0x030f2800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0888cbf4 method=org.springframework.util.ConcurrentReferenceHashMap$Segment.restructureIfNecessary(Z)V @ 41
Event: 412.962 Thread 0x030f2800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x08875fb8 method=org.springframework.util.ConcurrentReferenceHashMap$Segment.restructureIfNecessary(Z)V @ 41
Event: 412.963 Thread 0x030f2800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x08823f38 method=org.springframework.util.ConcurrentReferenceHashMap$Segment.restructureIfNecessary(Z)V @ 41
Event: 412.963 Thread 0x030f2800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x08822764 method=org.springframework.util.ConcurrentReferenceHashMap$Segment.restructureIfNecessary(Z)V @ 41
Event: 412.963 Thread 0x030f2800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0830962c method=org.springframework.util.ConcurrentReferenceHashMap$Segment.restructureIfNecessary(Z)V @ 41

Classes redefined (0 events):
No events

Internal exceptions (10 events):
Event: 3.975 Thread 0x00141c00 Exception <a 'java/lang/ClassNotFoundException': org/springframework/web/context/ServletContextAwareCustomizer> (0x241ed008) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u291-bpr\1536\hotspot\src\share\vm\classfile\systemDictionary.cp
Event: 3.975 Thread 0x00141c00 Exception <a 'java/lang/ClassNotFoundException': org/springframework/beans/factory/AwareCustomizer> (0x24211970) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u291-bpr\1536\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 212]
Event: 4.216 Thread 0x00141c00 Exception <a 'java/lang/NoSuchMethodError': java.lang.Object.lambda$thenComparing$36697e65$1(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)I> (0x2565bd90) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u291-bpr\1536\hotspot
Event: 4.287 Thread 0x00141c00 Exception <a 'java/lang/IncompatibleClassChangeError': Found class java.lang.Object, but interface was expected> (0x25b29208) thrown at [C:\jenkins\workspace\8-2-build-windows-i586-cygwin\jdk8u291-bpr\1536\hotspot\src\share\vm\interpreter\linkResolver.cpp
Event: 12.000 Thread 0x27374c00 Implicit null exception at 0x087529da to 0x08752a61
Event: 13.732 Thread 0x27374c00 Implicit null exception at 0x0814427f to 0x081445e1
Event: 17.435 Thread 0x27374c00 Implicit null exception at 0x080dd73f to 0x080ddab1
Event: 376.859 Thread 0x030f2800 Implicit null exception at 0x086f9da9 to 0x086fa159
Event: 376.862 Thread 0x030f2800 Implicit null exception at 0x0881a3e9 to 0x0881a855
Event: 412.962 Thread 0x030f2800 Implicit null exception at 0x0889a0ca to 0x0889ad79

Events (10 events):
Event: 531.219 Executing VM operation: RevokeBias
Event: 531.219 Executing VM operation: RevokeBias done
Event: 531.240 Executing VM operation: RevokeBias
Event: 531.240 Executing VM operation: RevokeBias done
Event: 565.758 Executing VM operation: RevokeBias
Event: 565.758 Executing VM operation: RevokeBias done
Event: 565.758 Executing VM operation: RevokeBias
Event: 565.758 Executing VM operation: RevokeBias done
Event: 573.716 Executing VM operation: RevokeBias
Event: 573.716 Executing VM operation: RevokeBias done


Dynamic libraries:
0x00a90000 - 0x00ace000     C:\cis\jdk1.8\bin\java.exe
0x77450000 - 0x77592000     C:\Windows\SYSTEM32\ntdll.dll
0x755e0000 - 0x756b5000     C:\Windows\system32\kernel32.dll
0x752a0000 - 0x752eb000     C:\Windows\system32\KERNELBASE.dll
0x76e80000 - 0x76f21000     C:\Windows\system32\ADVAPI32.dll
0x75b70000 - 0x75c1c000     C:\Windows\system32\msvcrt.dll
0x775b0000 - 0x775c9000     C:\Windows\SYSTEM32\sechost.dll
0x75a30000 - 0x75ad2000     C:\Windows\system32\RPCRT4.dll
0x75960000 - 0x75a29000     C:\Windows\system32\USER32.dll
0x76cf0000 - 0x76d3e000     C:\Windows\system32\GDI32.dll
0x76fe0000 - 0x76fea000     C:\Windows\system32\LPK.dll
0x775d0000 - 0x7766d000     C:\Windows\system32\USP10.dll
0x73b70000 - 0x73d0e000     C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.24483_none_2b200f664577e14b\COMCTL32.dll
0x76f80000 - 0x76fd7000     C:\Windows\system32\SHLWAPI.dll
0x77150000 - 0x7716f000     C:\Windows\system32\IMM32.DLL
0x76c20000 - 0x76cee000     C:\Windows\system32\MSCTF.dll
0x711e0000 - 0x711e3000     C:\Windows\system32\api-ms-win-core-synch-l1-2-0.DLL
0x71170000 - 0x71183000     C:\cis\jdk1.8\jre\bin\vcruntime140.dll
0x73090000 - 0x73094000     C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
0x50770000 - 0x5084f000     C:\Windows\system32\ucrtbase.DLL
0x73fc0000 - 0x73fc3000     C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll
0x73080000 - 0x73083000     C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll
0x68230000 - 0x68233000     C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll
0x71120000 - 0x71123000     C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll
0x62d20000 - 0x62d23000     C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll
0x63ef0000 - 0x63ef3000     C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll
0x62c60000 - 0x62c64000     C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll
0x62d10000 - 0x62d14000     C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll
0x62610000 - 0x62614000     C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll
0x52180000 - 0x521ef000     C:\cis\jdk1.8\jre\bin\msvcp140.dll
0x62620000 - 0x62623000     C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll
0x625e0000 - 0x625e5000     C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll
0x625f0000 - 0x625f3000     C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll
0x61090000 - 0x61093000     C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll
0x610a0000 - 0x610a3000     C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll
0x61070000 - 0x61073000     C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll
0x07920000 - 0x07f4d000     C:\cis\jdk1.8\jre\bin\server\jvm.dll
0x61080000 - 0x61087000     C:\Windows\system32\WSOCK32.dll
0x77270000 - 0x772a5000     C:\Windows\system32\WS2_32.dll
0x775a0000 - 0x775a6000     C:\Windows\system32\NSI.dll
0x75460000 - 0x75492000     C:\Windows\system32\WINMM.dll
0x74520000 - 0x74529000     C:\Windows\system32\VERSION.dll
0x755d0000 - 0x755d5000     C:\Windows\system32\PSAPI.DLL
0x5dc20000 - 0x5dc2d000     C:\cis\jdk1.8\jre\bin\verify.dll
0x524e0000 - 0x52504000     C:\cis\jdk1.8\jre\bin\java.dll
0x5da80000 - 0x5da94000     C:\cis\jdk1.8\jre\bin\zip.dll
0x75dc0000 - 0x76a0c000     C:\Windows\system32\SHELL32.dll
0x75800000 - 0x7595f000     C:\Windows\system32\ole32.dll
0x751f0000 - 0x751fb000     C:\Windows\system32\profapi.dll
0x5e0b0000 - 0x5e0bc000     C:\cis\jdk1.8\jre\bin\management.dll
0x524c0000 - 0x524d7000     C:\cis\jdk1.8\jre\bin\net.dll
0x74bd0000 - 0x74c0c000     C:\Windows\system32\mswsock.dll
0x74bc0000 - 0x74bc6000     C:\Windows\System32\wship6.dll
0x05820000 - 0x065ff000     C:\Program Files\Sangfor\SSL\ClientComponent\1_SangforNsp.dll
0x74630000 - 0x7474c000     C:\Windows\system32\MFC42.DLL
0x773b0000 - 0x77442000     C:\Windows\system32\OLEAUT32.dll
0x745a0000 - 0x7462c000     C:\Windows\system32\ODBC32.dll
0x756c0000 - 0x75800000     C:\Windows\system32\urlmon.dll
0x75340000 - 0x7536f000     C:\Windows\system32\XmlLite.dll
0x77170000 - 0x77265000     C:\Windows\system32\WININET.dll
0x76a10000 - 0x76c11000     C:\Windows\system32\iertutil.dll
0x754a0000 - 0x755c2000     C:\Windows\system32\CRYPT32.dll
0x75260000 - 0x7526c000     C:\Windows\system32\MSASN1.dll
0x74530000 - 0x74596000     C:\Windows\system32\MSVCP60.dll
0x74500000 - 0x7451c000     C:\Windows\system32\iphlpapi.dll
0x744f0000 - 0x744f7000     C:\Windows\system32\WINNSI.DLL
0x74400000 - 0x744eb000     C:\Windows\system32\dbghelp.dll
0x743c0000 - 0x743f8000     C:\Windows\system32\odbcint.dll
0x06980000 - 0x06aed000     C:\Program Files\Sangfor\SSL\ClientComponent\SangforNsp.dll
0x75ae0000 - 0x75b63000     C:\Windows\system32\CLBCatQ.DLL
0x73540000 - 0x73550000     C:\Windows\system32\NLAapi.dll
0x6eb60000 - 0x6eb70000     C:\Windows\system32\napinsp.dll
0x6eb40000 - 0x6eb52000     C:\Windows\system32\pnrpnsp.dll
0x74a90000 - 0x74ad4000     C:\Windows\system32\DNSAPI.dll
0x6ea10000 - 0x6ea18000     C:\Windows\System32\winrnr.dll
0x06d80000 - 0x0714a000     C:\Program Files\Sangfor\SSL\ClientComponent\1_SangforTcp.dll
0x75370000 - 0x7539f000     C:\Windows\system32\WINTRUST.dll
0x743a0000 - 0x743a5000     C:\Windows\System32\wshtcpip.dll
0x70070000 - 0x70076000     C:\Windows\system32\rasadhlp.dll
0x71130000 - 0x71168000     C:\Windows\System32\fwpuclnt.dll
0x74c10000 - 0x74c27000     C:\Windows\system32\CRYPTSP.dll
0x74980000 - 0x749bb000     C:\Windows\system32\rsaenh.dll
0x74a40000 - 0x74a59000     C:\Windows\system32\USERENV.dll
0x75170000 - 0x7517c000     C:\Windows\system32\CRYPTBASE.dll
0x71110000 - 0x7111d000     C:\Windows\system32\dhcpcsvc6.DLL
0x71090000 - 0x710a2000     C:\Windows\system32\dhcpcsvc.DLL
0x5dc10000 - 0x5dc1f000     C:\cis\jdk1.8\jre\bin\nio.dll
0x51e80000 - 0x51eba000     C:\Users\pcuser\AppData\Local\Temp\jna--1106355917\jna6888725146738464457.dll
0x295a0000 - 0x29676000     c:\cis\dll\KeeperClient.dll
0x55300000 - 0x55710000     c:\cis\dll\pdflib.dll
0x772b0000 - 0x7732b000     C:\Windows\system32\comdlg32.dll
0x6fd30000 - 0x6fd81000     C:\Windows\system32\WINSPOOL.DRV
0x29680000 - 0x297a4000     c:\cis\dll\LIBEAY32.dll
0x6c940000 - 0x6c9db000     C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_d08cc06a442b34fc\MSVCR80.dll
0x033e0000 - 0x03426000     c:\cis\dll\SSLEAY32.dll
0x06af0000 - 0x06b64000     c:\cis\dll\BJGAS_IC.dll
0x6ffb0000 - 0x6ffd4000     C:\Windows\system32\WinSCard.dll
0x01eb0000 - 0x01ecb000     c:\cis\dll\WDCRWV.dll
0x750c0000 - 0x750e9000     C:\Windows\system32\WINSTA.dll
0x73ea0000 - 0x73ead000     C:\Windows\system32\WTSAPI32.dll
0x73af0000 - 0x73b30000     C:\Windows\system32\uxtheme.dll
0x75320000 - 0x75333000     C:\Windows\system32\dwmapi.dll
0x71df0000 - 0x71e4f000     C:\Program Files\Sangfor\SSL\SangforPWEx\SangforUDProtectEx.dll
0x72260000 - 0x724ef000     C:\Program Files\Sangfor\SSL\SangforPWEx\sangforvpnlibcrypto-1_1.dll

VM Arguments:
jvm_args: -Xmx256m 
java_command: card-client-0.0.1.jar
java_class_path (initial): card-client-0.0.1.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Users\pcuser\AppData\Roaming\360DesktopLite;C:\Users\pcuser\AppData\Roaming\360DesktopLite;C:\CPU\instantclient_11_2;C:\CPU\instantclient_11_2;C:\CPU\instantclient_11_2;C:\Program Files\360\360zip;C:\Users\pcuser\AppData\Roaming\360DesktopLite;C:\CPU\instantclient_11_2;C:\CPU\instantclient_11_2;C:\Program Files\360\360zip;C:\CPU\instantclient_11_2;C:\CPU\instantclient_11_2;C:\CPU\instantclient_11_2;C:\ProgramData\Oracle\Java\javapath;C:\CPU\instantclient_11_2;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\twain_32\紫图 SmartScan; 
USERNAME=pcuser
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 60 Stepping 3, GenuineIntel



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

OS: Windows 7 Build 7601 (6.1.7601.24545)

CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2

Memory: 4k page, physical 3583384k(1553100k free), swap 7165100k(4137020k free)

vm_info: Java HotSpot(TM) Server VM (25.291-b35) for windows-x86 JRE (1.8.0_291-b35), built on Jun 16 2021 02:08:32 by "java_re" with MS VC++ 15.9 (VS2017)

time: Fri Jul 23 10:24:03 2021
timezone: ?D1ú±ê×?ê±??
elapsed time: 621.744202 seconds (0d 0h 10m 21s)

Matthias Bläsing

unread,
Jul 23, 2021, 1:40:54 PM7/23/21
to jna-...@googlegroups.com
Hi,

first step: Create a minimal reproducer. That way you know where to look first. If you have a native call and the immediately breaks that is a good start.

Now check your data types, every datatypes, when your done, repeat. Incorrectly mapped structures and/or wrong datatypes can introduce subtle issues or direct crashes.

If you don't deal with structures, check if the right datatypes and sizes are provided. From the top of my head I remember that there are points in the windows API where the size of a caller provided buffer was specified in bytes and at another point in chars, which can lead to a buffer half the expected size (UCS2/UTF-16 encoding).

Maybe these pointers help.

Greetings

Matthias
--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jna-users/6e20c90c-02e3-495e-9f53-0528ddf9929fn%40googlegroups.com.

Daniel B. Widdis

unread,
Jul 24, 2021, 11:14:30 AM7/24/21
to Java Native Access
I'll add to Matthias's suggestions:  part of making a minimal reproducer is identifying the line of code causing the crash.  Begin with your crashing code and add logging and/or comment out sections to isolate exactly where the crash is occurring.  That will generally lead to a single function call and let you focus on the mappings associated with that. 



--
Dan Widdis
Reply all
Reply to author
Forward
0 new messages