Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8219894

JVM crash during JIT compile task (C2)

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      ADDITIONAL SYSTEM INFORMATION :
      also reproduced in release 11

      A DESCRIPTION OF THE PROBLEM :
      JVM crash during JIT compile task (C2) - seems related to using log(supplier) signature.
      Code for reproducing attached below.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000068262fc5, pid=6524, tid=0x00000000000016bc
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # V [jvm.dll+0x4a2fc5]
      #
      # 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 (0x000000001d766000): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=5820, stack(0x000000001f220000,0x000000001f320000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x000000000000002c

      Registers:
      RAX=0x000000001d8b09b8, RBX=0x000000001d900588, RCX=0x0000000000000000, RDX=0x0000000000000000
      RSP=0x000000001f31bd78, RBP=0x000000001f31be09, RSI=0x000000001d900588, RDI=0x000000001d9b4e08
      R8 =0x000000001d8b09e0, R9 =0x000000001f31bdb0, R10=0x0000000000000019, R11=0x0000000000000030
      R12=0x0000000000000031, R13=0x000000000000007d, R14=0x0000000000000000, R15=0x000000001f740d78
      RIP=0x0000000068262fc5, EFLAGS=0x0000000000010246

      Top of Stack: (sp=0x000000001f31bd78)
      0x000000001f31bd78: 00000000682653f0 000000001f31ca90
      0x000000001f31bd88: 000000001d9b46d8 000000001d9b4e08
      0x000000001f31bd98: 000000001d9b4e08 000000001d9b5800
      0x000000001f31bda8: 000000001d9b49a8 0000000000000000
      0x000000001f31bdb8: 000000001f31ca90 000000001f31ca90
      0x000000001f31bdc8: 000000001d7d2440 000000001f31ca90
      0x000000001f31bdd8: 00000000682bba24 000000001f740d78
      0x000000001f31bde8: 000000001d9b49a8 00000000000000e7
      0x000000001f31bdf8: 000000001f31ca90 000000001d7d2440
      0x000000001f31be08: 00000000682d4859 000000001d7d2150
      0x000000001f31be18: 00000000682bbdec 0000ced394ddc32c
      0x000000001f31be28: 00000000682bba24 000000001f740d78
      0x000000001f31be38: 0000000000000000 00000000000000e9
      0x000000001f31be48: 000000001d9b4e08 000000001f31ca90
      0x000000001f31be58: 000000001f31ca90 00000000000000e8
      0x000000001f31be68: 00000000682d4b03 000000001f31ca90

      Instructions: (pc=0x0000000068262fc5)
      0x0000000068262fa5: 41 2c 24 07 3c 07 75 13 48 8b 41 08 48 8b 08 48
      0x0000000068262fb5: 85 c9 74 07 48 8b 49 08 48 8b 09 48 3b d1 75 10
      0x0000000068262fc5: 0f b6 4a 2c 80 e1 1f 80 f9 15 75 04 48 8b c2 c3
      0x0000000068262fd5: 33 c0 c3 cc cc cc cc cc cc cc cc 48 89 6c 24 18


      Register to memory mapping:

      RAX=0x000000001d8b09b8 is an unknown value
      RBX=0x000000001d900588 is an unknown value
      RCX=0x0000000000000000 is an unknown value
      RDX=0x0000000000000000 is an unknown value
      RSP=0x000000001f31bd78 is pointing into the stack for thread: 0x000000001d766000
      RBP=0x000000001f31be09 is pointing into the stack for thread: 0x000000001d766000
      RSI=0x000000001d900588 is an unknown value
      RDI=0x000000001d9b4e08 is an unknown value
      R8 =0x000000001d8b09e0 is an unknown value
      R9 =0x000000001f31bdb0 is pointing into the stack for thread: 0x000000001d766000
      R10=0x0000000000000019 is an unknown value
      R11=0x0000000000000030 is an unknown value
      R12=0x0000000000000031 is an unknown value
      R13=0x000000000000007d is an unknown value
      R14=0x0000000000000000 is an unknown value
      R15=0x000000001f740d78 is an unknown value


      Stack: [0x000000001f220000,0x000000001f320000], sp=0x000000001f31bd78, free space=1007k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x4a2fc5]


      Current CompileTask:
      C2: 266 326 4 java.util.logging.Logger::log (33 bytes)


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

      Java Threads: ( => current thread )
        0x000000001d808000 JavaThread "Service Thread" daemon [_thread_blocked, id=8928, stack(0x000000001e620000,0x000000001e720000)]
        0x000000001d780800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=7968, stack(0x000000001f4b0000,0x000000001f5b0000)]
        0x000000001d771800 JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=8148, stack(0x000000001e820000,0x000000001e920000)]
        0x000000001d766800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=8416, stack(0x000000001ef90000,0x000000001f090000)]
      =>0x000000001d766000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=5820, stack(0x000000001f220000,0x000000001f320000)]
        0x000000001d763000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=4172, stack(0x000000001f0e0000,0x000000001f1e0000)]
        0x000000001d721000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3008, stack(0x000000001ee90000,0x000000001ef90000)]
        0x000000001d71f800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7536, stack(0x000000001ed00000,0x000000001ee00000)]
        0x000000001c554000 JavaThread "Finalizer" daemon [_thread_blocked, id=2996, stack(0x000000001eb00000,0x000000001ec00000)]
        0x000000001c54d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2228, stack(0x000000001e920000,0x000000001ea20000)]
        0x000000000210b800 JavaThread "main" [_thread_in_Java, id=1868, stack(0x00000000024a0000,0x00000000025a0000)]

      Other Threads:
        0x000000001c543000 VMThread [stack: 0x000000001e720000,0x000000001e820000] [id=3260]
        0x000000001d767800 WatcherThread [stack: 0x000000001f370000,0x000000001f470000] [id=8720]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      heap address: 0x00000006c0000000, size: 4096 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 9175K [0x000000076ab00000, 0x0000000770000000, 0x00000007c0000000)
        eden space 65536K, 14% used [0x000000076ab00000,0x000000076b3f5fb0,0x000000076eb00000)
        from space 10752K, 0% used [0x000000076f580000,0x000000076f580000,0x0000000770000000)
        to space 10752K, 0% used [0x000000076eb00000,0x000000076eb00000,0x000000076f580000)
       ParOldGen total 175104K, used 0K [0x00000006c0000000, 0x00000006cab00000, 0x000000076ab00000)
        object space 175104K, 0% used [0x00000006c0000000,0x00000006c0000000,0x00000006cab00000)
       Metaspace used 4359K, capacity 4806K, committed 4992K, reserved 1056768K
        class space used 482K, capacity 537K, committed 640K, reserved 1048576K

      Card table byte_map: [0x0000000011b40000,0x0000000012350000] byte_map_base: 0x000000000e540000

      Marking Bits: (ParMarkBitMap*) 0x00000000685e4ce0
       Begin Bits: [0x0000000013360000, 0x0000000017360000)
       End Bits: [0x0000000017360000, 0x000000001b360000)

      Polling page: 0x00000000004c0000

      CodeCache: size=245760Kb used=1729Kb max_used=1740Kb free=244030Kb
       bounds [0x0000000002780000, 0x00000000029f0000, 0x0000000011780000]
       total_blobs=604 nmethods=331 adapters=187
       compilation: enabled

      Compilation events (10 events):
      Event: 0.245 Thread 0x000000001d766000 326 4 java.util.logging.Logger::log (33 bytes)
      Event: 0.246 Thread 0x000000001d766800 nmethod 325 0x000000000292f890 code [0x000000000292f9e0, 0x000000000292fcb8]
      Event: 0.251 Thread 0x000000001d771800 327 4 java.util.Arrays::copyOf (46 bytes)
      Event: 0.253 Thread 0x000000001d766800 328 4 java.nio.Buffer::limit (62 bytes)
      Event: 0.253 Thread 0x000000001d766800 nmethod 328 0x0000000002925450 code [0x00000000029255a0, 0x0000000002925678]
      Event: 0.253 Thread 0x000000001d766800 329 4 java.lang.Integer::getChars (131 bytes)
      Event: 0.255 Thread 0x000000001d766800 nmethod 329 0x000000000292f490 code [0x000000000292f5e0, 0x000000000292f718]
      Event: 0.255 Thread 0x000000001d766800 330 4 java.nio.Buffer::<init> (121 bytes)
      Event: 0.255 Thread 0x000000001d771800 nmethod 327 0x000000000292ed90 code [0x000000000292eee0, 0x000000000292f278]
      Event: 0.256 Thread 0x000000001d766800 nmethod 330 0x000000000292e890 code [0x000000000292e9e0, 0x000000000292eb98]

      GC Heap History (0 events):
      No events

      Deoptimization events (1 events):
      Event: 0.207 Thread 0x000000000210b800 Uncommon trap: reason=null_check action=make_not_entrant pc=0x00000000028f6dbc method=java.lang.String.equals(Ljava/lang/Object;)Z @ 8

      Classes redefined (0 events):
      No events

      Internal exceptions (5 events):
      Event: 0.048 Thread 0x000000000210b800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076ab07cb0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u201\12322\hotspot
      Event: 0.048 Thread 0x000000000210b800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076ab07f98) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u201\12322\hotspot\src\share\vm\prim
      Event: 0.186 Thread 0x000000000210b800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x000000076b004628) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u201\12322\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167]
      Event: 0.188 Thread 0x000000000210b800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x000000076b0124d0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u201\12322\hotspot\src\share\vm\prims\methodHandles.cpp, line 1167]
      Event: 0.207 Thread 0x000000000210b800 Implicit null exception at 0x00000000028f6bdc to 0x00000000028f6dad

      Events (10 events):
      Event: 0.205 loading class java/lang/invoke/InnerClassLambdaMetafactory$ForwardingMethodGenerator done
      Event: 0.206 loading class GilStopWatch
      Event: 0.206 loading class GilStopWatch done
      Event: 0.207 loading class java/util/logging/LogRecord
      Event: 0.207 loading class java/util/logging/LogRecord done
      Event: 0.207 Thread 0x000000000210b800 Uncommon trap: trap_request=0xfffffff4 fr.pc=0x00000000028f6dbc
      Event: 0.207 Thread 0x000000000210b800 DEOPT PACKING pc=0x00000000028f6dbc sp=0x000000000259f490
      Event: 0.207 Thread 0x000000000210b800 DEOPT UNPACKING pc=0x00000000027c583b sp=0x000000000259f420 mode 2
      Event: 0.207 loading class GilStopWatch
      Event: 0.207 loading class GilStopWatch done


      Dynamic libraries:
      0x000000013f560000 - 0x000000013f597000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\bin\java.exe
      0x0000000077c80000 - 0x0000000077e1f000 C:\Windows\SYSTEM32\ntdll.dll
      0x0000000077b60000 - 0x0000000077c7f000 C:\Windows\system32\kernel32.dll
      0x000007fefdc20000 - 0x000007fefdc8a000 C:\Windows\system32\KERNELBASE.dll
      0x000007feffb70000 - 0x000007feffc4b000 C:\Windows\system32\ADVAPI32.dll
      0x000007fefe360000 - 0x000007fefe3ff000 C:\Windows\system32\msvcrt.dll
      0x000007fefe960000 - 0x000007fefe97f000 C:\Windows\SYSTEM32\sechost.dll
      0x000007feffc60000 - 0x000007feffd8d000 C:\Windows\system32\RPCRT4.dll
      0x0000000077a60000 - 0x0000000077b5a000 C:\Windows\system32\USER32.dll
      0x000007fefe8d0000 - 0x000007fefe937000 C:\Windows\system32\GDI32.dll
      0x000007fefe590000 - 0x000007fefe59e000 C:\Windows\system32\LPK.dll
      0x000007fefe5a0000 - 0x000007fefe66b000 C:\Windows\system32\USP10.dll
      0x000007fefbc50000 - 0x000007fefbe44000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
      0x000007feff970000 - 0x000007feff9e1000 C:\Windows\system32\SHLWAPI.dll
      0x000007fefe710000 - 0x000007fefe73e000 C:\Windows\system32\IMM32.DLL
      0x000007fefe7c0000 - 0x000007fefe8c9000 C:\Windows\system32\MSCTF.dll
      0x000007fefd860000 - 0x000007fefd8bc000 C:\PROGRA~1\Citrix\System32\MFAPHOOK64.DLL
      0x000007fefd780000 - 0x000007fefd7b2000 C:\Program Files\Citrix\ICAService\picaFullScreenHookX64.dll
      0x000007fefd010000 - 0x000007fefd046000 C:\Program Files\Citrix\ICAService\ShellHook64.dll
      0x000007fefe9e0000 - 0x000007fefebdd000 C:\Windows\system32\ole32.dll
      0x000007fefebe0000 - 0x000007feff96b000 C:\Windows\system32\SHELL32.dll
      0x000007fefd600000 - 0x000007fefd778000 C:\Program Files\Citrix\ICAService\SCardHook64.dll
      0x000007fefd5d0000 - 0x000007fefd5fa000 C:\Program Files\Citrix\ICAService\cxinjime64.dll
      0x000007fefd580000 - 0x000007fefd5cd000 C:\Program Files\Citrix\ICAService\PicaWtsHook64.dll
      0x000000006e8d0000 - 0x000000006e9a1000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\msvcr100.dll
      0x0000000067dc0000 - 0x0000000068664000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\server\jvm.dll
      0x000007fef0b90000 - 0x000007fef0b99000 C:\Windows\system32\WSOCK32.dll
      0x000007fefe040000 - 0x000007fefe08d000 C:\Windows\system32\WS2_32.dll
      0x000007feffc50000 - 0x000007feffc58000 C:\Windows\system32\NSI.dll
      0x000007fef8d30000 - 0x000007fef8d6b000 C:\Windows\system32\WINMM.dll
      0x000007fefc430000 - 0x000007fefc43c000 C:\Windows\system32\VERSION.dll
      0x0000000077e20000 - 0x0000000077e27000 C:\Windows\system32\PSAPI.DLL
      0x000007fef9f20000 - 0x000007fef9f2f000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\verify.dll
      0x000007fee0c50000 - 0x000007fee0c79000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\java.dll
      0x000007feee430000 - 0x000007feee453000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\instrument.dll
      0x000007feedf40000 - 0x000007feedf56000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\zip.dll
      0x000007fefd960000 - 0x000007fefd96f000 C:\Windows\system32\profapi.dll
      0x000007fef78c0000 - 0x000007fef78da000 F:\AmatSW\shared\utils\IntelliJ\2018.3-C\ideaIC-183.4886.12\bin\breakgen64.dll
      0x000007fef9780000 - 0x000007fef979a000 F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\bin\net.dll
      0x000007fefe400000 - 0x000007fefe585000 C:\Windows\system32\urlmon.dll
      0x000007fefda50000 - 0x000007fefda54000 C:\Windows\system32\api-ms-win-downlevel-ole32-l1-1-0.dll
      0x000007fefdc90000 - 0x000007fefdc94000 C:\Windows\system32\api-ms-win-downlevel-shlwapi-l1-1-0.dll
      0x000007fefdcb0000 - 0x000007fefdcb5000 C:\Windows\system32\api-ms-win-downlevel-advapi32-l1-1-0.dll
      0x000007fefdbd0000 - 0x000007fefdbd4000 C:\Windows\system32\api-ms-win-downlevel-user32-l1-1-0.dll
      0x000007fefdca0000 - 0x000007fefdca4000 C:\Windows\system32\api-ms-win-downlevel-version-l1-1-0.dll
      0x000007fefdcc0000 - 0x000007fefdcc3000 C:\Windows\system32\api-ms-win-downlevel-normaliz-l1-1-0.dll
      0x0000000077e30000 - 0x0000000077e33000 C:\Windows\system32\normaliz.DLL
      0x000007fefe090000 - 0x000007fefe35a000 C:\Windows\system32\iertutil.dll
      0x000007fefdd10000 - 0x000007fefe031000 C:\Windows\system32\WININET.dll
      0x000007fefdc00000 - 0x000007fefdc1e000 C:\Windows\system32\USERENV.dll
      0x000007fefc8d0000 - 0x000007fefc925000 C:\Windows\system32\mswsock.dll
      0x000007fefc8c0000 - 0x000007fefc8c7000 C:\Windows\System32\wship6.dll
      0x000007feee000000 - 0x000007feee125000 C:\Windows\system32\dbghelp.dll

      VM Arguments:
      jvm_args: -javaagent:F:\AmatSW\shared\utils\IntelliJ\2018.3-C\ideaIC-183.4886.12\lib\idea_rt.jar=54095:F:\AmatSW\shared\utils\IntelliJ\2018.3-C\ideaIC-183.4886.12\bin -Dfile.encoding=UTF-8
      java_command: JVMCrash
      java_class_path (initial): F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\charsets.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\deploy.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\access-bridge-64.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\cldrdata.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\dnsns.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\jaccess.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\jfxrt.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\localedata.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\nashorn.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\sunec.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\sunjce_provider.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\sunmscapi.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\sunpkcs11.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\ext\zipfs.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\javaws.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\jce.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\jfr.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\jfxswt.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\jsse.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\management-agent.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\plugin.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\resources.jar;F:\AmatSW\shared\SDKs\JDKs\1.8.x\1.8.0_201x64\jre\lib\rt.jar;F:\JMVCrash\out\production\JMVCrash;F:\AmatSW\shared\utils\IntelliJ\2018.3-C\ideaIC-183.4886.12\lib\idea_rt.jar
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JRE_HOME=C:\Program Files\IBM\RationalSDLC\Common\Java5.0\jre
      CLASSPATH=C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar
      PATH=C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files\IBM\RationalSDLC\Clearquest\cqcli\bin;C:\Program Files\IBM\RationalSDLC\common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Citrix\System32\;C:\Program Files\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files\Citrix\ICAService\;C:\Program Files (x86)\Common Files\Citrix\System32;C:\Program Files\Citrix\Virtual Desktop Agent\;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\AmatSW\shared\utils\cygwin\1.7.28x64\bin;F:\AmatSW\shared\utils\RTC-Client\jazz\scmtools\eclipse;C:\Program Files (x86)\SQL Server\100\Tools\Binn\;C:\Program Files (x86)\SQL Server\100\DTS\Binn\;C:\Program Files (x86)\SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;F:\Users\ggattegno91125\AppData\Local\Programs\Python\Python36;F:\AmatSW\shared\utils\GitTools\Git\cmd
      USERNAME=GGattegno91125
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 1, GenuineIntel



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

      OS: Windows 7 , 64 bit Build 7601 (6.1.7601.24150)

      CPU:total 8 (initial active 8) (4 cores per cpu, 1 threads per core) family 6 model 37 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, clmul, tsc, tscinvbit

      Memory: 4k page, physical 16776712k(11886872k free), swap 33552052k(27450000k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (25.201-b09) for windows-amd64 JRE (1.8.0_201-b09), built on Dec 15 2018 18:36:39 by "java_re" with MS VC++ 10.0 (VS2010)

      time: Wed Feb 27 09:37:11 2019
      timezone: Jerusalem Standard Time
      elapsed time: 0 seconds (0d 0h 0m 0s)



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run the source code below. To reproduce we needed to use the log(supplier) signature and have a supplier using native code.

      ACTUAL -
      JVM crashes always immediately

      ---------- BEGIN SOURCE ----------
      public class JVMCrash {

          private static void testCrash(Logger log) {
              printLog(log);

              GilStopWatch sw1 = new GilStopWatch();
              log.log(Level.INFO, sw1::pointStop);
              log.log(Level.INFO, sw1::pointStop);
          }

          private static void printLog(Logger log) {
              GilStopWatch sw = new GilStopWatch();
              log.log(Level.FINE, sw::pointStop);

          }

          public static void main(String[] args) {
              Logger logger = new AlonNamedWFLogger("Crash");
              for (int i = 0 ; i < 10000000 ; ++i) {
                  testCrash(logger);
              }
          }
      }


      public class GilStopWatch {
          public String pointStop() {
              String current = " Finished , "+String.valueOf(3); //needed to reproduce crash
              System.nanoTime(); //needed to reproduce crash
              return current;
          }
      }

      public class AlonWFLogger extends Logger {
          protected AlonWFLogger(String name, String resourceBundleName) {
              super(name, resourceBundleName);
          }
      }

      public class AlonNamedWFLogger extends AlonWFLogger {
          public AlonNamedWFLogger(String loggerName) {
              super(loggerName, null);
              addHandler(AlonGlobalLogHandler.instance);
          }
      }

      public class AlonGlobalLogHandler extends Handler{

          public static final Handler instance = new AlonGlobalLogHandler();

          private AlonGlobalLogHandler() {
          }

          @Override
          public void publish(LogRecord record) {
              System.out.print(record.getMessage());
          }

          @Override
          public void flush() {
              System.out.flush();
          }

          @Override
          public void close() throws SecurityException {
          }

      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmatte Fairoz Matte
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: