Skip to content

EXCEPTION_ACCESS_VIOLATION on windows #4

Description

@x4e
> java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

Simple Test Application:

fun main(args: Array<String>) {
	disableBytecodeVerifier()
}

CLI Output:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000546689e8, pid=12808, tid=0x0000000000005384
#
# JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x1e89e8]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\Computing\PaperBin\build\libs\hs_err_pid12808.log
Compiled method (nm)     736  121     n 0       sun.misc.Unsafe::getLong (native)
 total in heap  [0x00000000035b77d0,0x00000000035b7b30] = 864
 relocation     [0x00000000035b78f0,0x00000000035b7938] = 72
 main code      [0x00000000035b7940,0x00000000035b7b30] = 496
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

hs_err log:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000546689e8, pid=12816, tid=0x0000000000003214
#
# JRE version: Java(TM) SE Runtime Environment (8.0_241-b07) (build 1.8.0_241-b07)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.241-b07 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x1e89e8]
#
# 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
#

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

Current thread (0x0000000002522800):  JavaThread "main" [_thread_in_vm, id=12820, stack(0x0000000002420000,0x0000000002520000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000

Registers:
RAX=0x0000000002522800, RBX=0x0000000002522800, RCX=0x0000000000000007, RDX=0x000000000251eff8
RSP=0x000000000251ef20, RBP=0x000000000251efc8, RSI=0x0000000000000020, RDI=0x0000000000000000
R8 =0x0000000000000000, R9 =0x0000000002417da0, R10=0x0000000002638c3b, R11=0x0000000002522800
R12=0x0000000000000000, R13=0x000000001b76ec08, R14=0x000000000251eff8, R15=0x0000000002522800
RIP=0x00000000546689e8, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x000000000251ef20)
0x000000000251ef20:   0000000002522800 000000000251ef28
0x000000000251ef30:   000000001baf58ba 000000001b76ec08
0x000000000251ef40:   00000000026280e0 0000000002638c67
0x000000000251ef50:   000000001baf58e0 000000001b76ec08
0x000000000251ef60:   000000000251efc8 0000000000000020
0x000000000251ef70:   0000000002627e70 0000000002522800
0x000000000251ef80:   000000000251f058 000000000251ef88
0x000000000251ef90:   0000000000000000 000000000251eff8
0x000000000251efa0:   000000001b79c988 0000000000000000
0x000000000251efb0:   000000001b76ec08 0000000000000000
0x000000000251efc0:   000000000251efe8 000000000251f040
0x000000000251efd0:   0000000002627e70 0000000000000000
0x000000000251efe0:   00000000026321d7 0000000000000000
0x000000000251eff0:   000000076af092d8 000000076ae089b8
0x000000000251f000:   000000000251f000 000000001bb0a128
0x000000000251f010:   000000000251f058 000000001bb0a398 

Instructions: (pc=0x00000000546689e8)
0x00000000546689c8:   06 00 00 00 8b 0d 86 91 5d 00 ff 15 18 ea 3f 00
0x00000000546689d8:   4c 8b d8 c6 80 94 02 00 00 01 40 f6 c7 07 75 05
0x00000000546689e8:   48 8b 3f eb 12 8b 07 89 44 24 30 8b 47 04 89 44
0x00000000546689f8:   24 34 48 8b 7c 24 30 41 c6 83 94 02 00 00 00 48 


Register to memory mapping:

RAX=0x0000000002522800 is a thread
RBX=0x0000000002522800 is a thread
RCX=0x0000000000000007 is an unknown value
RDX=0x000000000251eff8 is pointing into the stack for thread: 0x0000000002522800
RSP=0x000000000251ef20 is pointing into the stack for thread: 0x0000000002522800
RBP=0x000000000251efc8 is pointing into the stack for thread: 0x0000000002522800
RSI=0x0000000000000020 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000002417da0 is an unknown value
R10=0x0000000002638c3b is at code_begin+891 in an Interpreter codelet
method entry point (kind = native)  [0x00000000026388c0, 0x0000000002639280]  2496 bytes
R11=0x0000000002522800 is a thread
R12=0x0000000000000000 is an unknown value
R13={method} {0x000000001b76ec10} 'getLong' '(J)J' in 'sun/misc/Unsafe'
R14=0x000000000251eff8 is pointing into the stack for thread: 0x0000000002522800
R15=0x0000000002522800 is a thread


Stack: [0x0000000002420000,0x0000000002520000],  sp=0x000000000251ef20,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x1e89e8]
C  0x0000000002638c67

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.misc.Unsafe.getLong(J)J+0
j  codes.som.anthony.noverify.ForceNoVerifyKt$getStructs$1.invoke(Ljava/lang/String;)J+16
j  codes.som.anthony.noverify.ForceNoVerifyKt.getStructs()Ljava/util/Map;+29
j  codes.som.anthony.noverify.ForceNoVerifyKt.disableBytecodeVerifier()V+0
j  dev.binclub.paperbin.MainKt.main([Ljava/lang/String;)V+6
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x000000001df9a800 JavaThread "Service Thread" daemon [_thread_blocked, id=11204, stack(0x000000001ebc0000,0x000000001ecc0000)]
  0x000000001df11800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=25376, stack(0x000000001eac0000,0x000000001ebc0000)]
  0x000000001df09800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=19124, stack(0x000000001e9c0000,0x000000001eac0000)]
  0x000000001df07000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=19176, stack(0x000000001e8c0000,0x000000001e9c0000)]
  0x000000001df03000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=24032, stack(0x000000001e7c0000,0x000000001e8c0000)]
  0x000000001df01000 JavaThread "Attach Listener" daemon [_thread_blocked, id=17020, stack(0x000000001e6c0000,0x000000001e7c0000)]
  0x000000001df00000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15724, stack(0x000000001e5c0000,0x000000001e6c0000)]
  0x000000001def1800 JavaThread "Finalizer" daemon [_thread_blocked, id=16824, stack(0x000000001e3d0000,0x000000001e4d0000)]
  0x000000001def0800 JavaThread "Reference Handler" daemon [_thread_blocked, id=5876, stack(0x000000001e2d0000,0x000000001e3d0000)]
=>0x0000000002522800 JavaThread "main" [_thread_in_vm, id=12820, stack(0x0000000002420000,0x0000000002520000)]

Other Threads:
  0x000000001c0d9000 VMThread [stack: 0x000000001ddd0000,0x000000001ded0000] [id=19648]
  0x000000001dfac000 WatcherThread [stack: 0x000000001ecc0000,0x000000001edc0000] [id=20104]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

heap address: 0x00000006c0a00000, size: 4086 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x00000007c0000000

Heap:
 PSYoungGen      total 76288K, used 2621K [0x000000076ae00000, 0x0000000770300000, 0x00000007c0000000)
  eden space 65536K, 4% used [0x000000076ae00000,0x000000076b08f5e8,0x000000076ee00000)
  from space 10752K, 0% used [0x000000076f880000,0x000000076f880000,0x0000000770300000)
  to   space 10752K, 0% used [0x000000076ee00000,0x000000076ee00000,0x000000076f880000)
 ParOldGen       total 175104K, used 0K [0x00000006c0a00000, 0x00000006cb500000, 0x000000076ae00000)
  object space 175104K, 0% used [0x00000006c0a00000,0x00000006c0a00000,0x00000006cb500000)
 Metaspace       used 2955K, capacity 4664K, committed 4864K, reserved 1056768K
  class space    used 339K, capacity 424K, committed 512K, reserved 1048576K

Card table byte_map: [0x00000000119e0000,0x00000000121e0000] byte_map_base: 0x000000000e3db000

Marking Bits: (ParMarkBitMap*) 0x0000000054cabe30
 Begin Bits: [0x0000000012f40000, 0x0000000016f18000)
 End Bits:   [0x0000000016f18000, 0x000000001aef0000)

Polling page: 0x0000000002350000

CodeCache: size=245760Kb used=1192Kb max_used=1192Kb free=244567Kb
 bounds [0x0000000002620000, 0x0000000002890000, 0x0000000011620000]
 total_blobs=309 nmethods=71 adapters=151
 compilation: enabled

Compilation events (10 events):
Event: 0.139 Thread 0x000000001df11800   66       3       java.nio.DirectLongBufferU::ix (10 bytes)
Event: 0.139 Thread 0x000000001df11800 nmethod 66 0x0000000002748990 code [0x0000000002748ae0, 0x0000000002748c50]
Event: 0.146 Thread 0x000000001df11800   68       3       java.lang.ClassLoader::checkName (43 bytes)
Event: 0.147 Thread 0x000000001df11800 nmethod 68 0x0000000002749050 code [0x0000000002749200, 0x0000000002749978]
Event: 0.147 Thread 0x000000001df11800   69       3       sun.misc.VM::allowArraySyntax (4 bytes)
Event: 0.147 Thread 0x000000001df11800 nmethod 69 0x0000000002749c10 code [0x0000000002749d60, 0x0000000002749eb0]
Event: 0.147 Thread 0x000000001df11800   70       1       java.net.URL::getQuery (5 bytes)
Event: 0.147 Thread 0x000000001df11800 nmethod 70 0x0000000002749f10 code [0x000000000274a060, 0x000000000274a170]
Event: 0.147 Thread 0x000000001df11800   71       3       java.util.concurrent.ConcurrentHashMap::spread (10 bytes)
Event: 0.147 Thread 0x000000001df11800 nmethod 71 0x000000000274a1d0 code [0x000000000274a320, 0x000000000274a470]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (2 events):
Event: 0.043 Thread 0x0000000002522800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076ae07cc0) thrown at [C:\ade\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u241\331\
Event: 0.043 Thread 0x0000000002522800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076ae07fa8) thrown at [C:\ade\jenkins\workspace\8-2-build-windows-amd64-cygwin\jdk8u241\331\hotspot\src\share\

Events (10 events):
Event: 0.148 loading class java/lang/ClassFormatError
Event: 0.148 loading class java/lang/ClassFormatError done
Event: 0.148 loading class java/io/IOException
Event: 0.148 loading class java/io/IOException done
Event: 0.148 loading class java/lang/AssertionStatusDirectives
Event: 0.148 loading class java/lang/AssertionStatusDirectives done
Event: 0.148 loading class sun/reflect/NativeMethodAccessorImpl
Event: 0.149 loading class sun/reflect/NativeMethodAccessorImpl done
Event: 0.149 loading class sun/reflect/DelegatingMethodAccessorImpl
Event: 0.149 loading class sun/reflect/DelegatingMethodAccessorImpl done


Dynamic libraries:
0x00007ff62c530000 - 0x00007ff62c567000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\java.exe
0x00007ffb03350000 - 0x00007ffb03531000 	C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffb02130000 - 0x00007ffb021e1000 	C:\WINDOWS\System32\KERNEL32.DLL
0x00007ffaff710000 - 0x00007ffaff983000 	C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffb02220000 - 0x00007ffb022c1000 	C:\WINDOWS\System32\ADVAPI32.dll
0x00007ffb01e70000 - 0x00007ffb01f0e000 	C:\WINDOWS\System32\msvcrt.dll
0x00007ffb01c20000 - 0x00007ffb01c7b000 	C:\WINDOWS\System32\sechost.dll
0x00007ffb02fe0000 - 0x00007ffb03104000 	C:\WINDOWS\System32\RPCRT4.dll
0x00007ffb02b20000 - 0x00007ffb02cb0000 	C:\WINDOWS\System32\USER32.dll
0x00007ffaffdb0000 - 0x00007ffaffdd0000 	C:\WINDOWS\System32\win32u.dll
0x00007ffb021f0000 - 0x00007ffb02218000 	C:\WINDOWS\System32\GDI32.dll
0x00007ffb00630000 - 0x00007ffb007c1000 	C:\WINDOWS\System32\gdi32full.dll
0x00007ffaffd10000 - 0x00007ffaffdaf000 	C:\WINDOWS\System32\msvcp_win.dll
0x00007ffb00530000 - 0x00007ffb00628000 	C:\WINDOWS\System32\ucrtbase.dll
0x00007ffaea3d0000 - 0x00007ffaea639000 	C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.17134.1246_none_d3ffb9d77c90723d\COMCTL32.dll
0x00007ffb02cb0000 - 0x00007ffb02fd1000 	C:\WINDOWS\System32\combase.dll
0x00007ffaff990000 - 0x00007ffaffa09000 	C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ffb020e0000 - 0x00007ffb0210d000 	C:\WINDOWS\System32\IMM32.DLL
0x0000000055120000 - 0x00000000551f2000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\msvcr100.dll
0x0000000054480000 - 0x0000000054d2c000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\server\jvm.dll
0x00007ffb025f0000 - 0x00007ffb025f8000 	C:\WINDOWS\System32\PSAPI.DLL
0x00007ffaef740000 - 0x00007ffaef749000 	C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffafd2a0000 - 0x00007ffafd2c3000 	C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffb02600000 - 0x00007ffb0266c000 	C:\WINDOWS\System32\WS2_32.dll
0x00007ffaf9370000 - 0x00007ffaf937a000 	C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffafcde0000 - 0x00007ffafce0a000 	C:\WINDOWS\SYSTEM32\winmmbase.dll
0x00007ffaffdd0000 - 0x00007ffaffe19000 	C:\WINDOWS\System32\cfgmgr32.dll
0x00007ffafbac0000 - 0x00007ffafbacf000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\verify.dll
0x00007ffae41f0000 - 0x00007ffae4219000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\java.dll
0x00007ffae5480000 - 0x00007ffae5496000 	C:\Program Files\Java\jdk1.8.0_241\jre\bin\zip.dll
0x00007ffb007d0000 - 0x00007ffb01c15000 	C:\WINDOWS\System32\SHELL32.dll
0x00007ffb01c80000 - 0x00007ffb01d29000 	C:\WINDOWS\System32\shcore.dll
0x00007ffaffe20000 - 0x00007ffb00530000 	C:\WINDOWS\System32\windows.storage.dll
0x00007ffb01f10000 - 0x00007ffb01f61000 	C:\WINDOWS\System32\shlwapi.dll
0x00007ffaff6b0000 - 0x00007ffaff6c1000 	C:\WINDOWS\System32\kernel.appcore.dll
0x00007ffaff6d0000 - 0x00007ffaff6ef000 	C:\WINDOWS\System32\profapi.dll
0x00007ffaff660000 - 0x00007ffaff6ac000 	C:\WINDOWS\System32\powrprof.dll
0x00007ffaff650000 - 0x00007ffaff65a000 	C:\WINDOWS\System32\FLTLIB.DLL
0x00007ffafe030000 - 0x00007ffafe1f9000 	C:\WINDOWS\SYSTEM32\dbghelp.dll

VM Arguments:
java_command: .\PaperBin-1.0.jar
java_class_path (initial): .\PaperBin-1.0.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_241
PATH=**REMOVED**
USERNAME=root
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 9, GenuineIntel



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

OS: Windows 10.0 , 64 bit Build 17134 (10.0.17134.753)

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

Memory: 4k page, physical 16731020k(4882164k free), swap 35605388k(12372484k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.241-b07) for windows-amd64 JRE (1.8.0_241-b07), built on Dec 11 2019 10:21:40 by "rejava" with MS VC++ 10.0 (VS2010)

time: Mon May 11 17:27:41 2020
timezone: GMT Summer Time
elapsed time: 0 seconds (0d 0h 0m 0s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions