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

JVM crashes when -XX:+UseConcMarkSweepGC and -Xaprof are used together.

XMLWordPrintable

    • gc
    • b85
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)


      FULL OS VERSION :
      1. Microsoft Windows XP [Version 5.1.2600]
      2. SunOS manti 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Fire-V240
      3. Linux tina 2.6.12-9-amd64-k8-smp #1 SMP Mon Oct 10 13:18:18 BST 2005 x86_64 GNU/Linux
      4. Linux kenga 2.4.20 #8 SMP Tue Apr 8 06:53:48 MSD 2003 i686 unknown

      A DESCRIPTION OF THE PROBLEM :
      When JVM is started with parameters -XX:+UseConcMarkSweepGC and -Xaprof together (i.e. when concurrent mark and sweep garbage collector with object allocation statistics are needed together), JVM always crashes at the moment of first garbage collection.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Write simple runnable class (let it be Test.java) wich only perform System.gc() method.
      2. Compile it and run as follows:
      java -XX:+UseConcMarkSweepGC -Xaprof Test

      Result: JVM crashes (on any platform under any OS).

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      JVM shall not crash.
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # Internal Error (434F4D5041435449424C45265245452C49535433504143450E4350500674), pid=3608, tid=3616
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)

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

      Current thread (0x00abe3c8): VMThread [id=3616]

      Stack: [0x0b350000,0x0b390000), sp=0x0b38faec, free space=254k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x11d540]
      V [jvm.dll+0x62c36]
      V [jvm.dll+0x535d2]
      V [jvm.dll+0x6f7e9]
      V [jvm.dll+0x6e8d1]
      V [jvm.dll+0x6f091]
      V [jvm.dll+0x1235ac]
      V [jvm.dll+0x1233f7]
      V [jvm.dll+0x122ec5]
      V [jvm.dll+0x12306e]
      V [jvm.dll+0x122dd3]
      C [MSVCRT.dll+0x2a3b0]
      C [kernel32.dll+0xb50b]

      VM_Operation (0x0007fa10): full generation collection, mode: safepoint, requested by thread 0x00035d08


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

      Java Threads: ( => current thread )
        0x00acf4a0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3780]
        0x00ace1a0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3784]
        0x00acd260 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3760]
        0x00acc748 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=940]
        0x00ac3970 JavaThread "Finalizer" daemon [_thread_blocked, id=3748]
        0x00ac24d8 JavaThread "Reference Handler" daemon [_thread_blocked, id=3576]
        0x00035d08 JavaThread "main" [_thread_blocked, id=3404]

      Other Threads:
      =>0x00abe3c8 VMThread [id=3616]
        0x0b5107f0 WatcherThread [id=3804]

      VM state:at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x00035380/0x00000708] Threads_lock - owner thread: 0x00abe3c8
      [0x00035530/0x000006c4] Heap_lock - owner thread: 0x00035d08

      Heap
       par new generation total 4032K, used 175K [0x02ad0000, 0x02ed0000, 0x02ed0000)
        eden space 3968K, 4% used [0x02ad0000, 0x02afbf10, 0x02eb0000)
        from space 64K, 0% used [0x02eb0000, 0x02eb0000, 0x02ec0000)
        to space 64K, 0% used [0x02ec0000, 0x02ec0000, 0x02ed0000)
       concurrent mark-sweep generation total 12288K, used 0K [0x02ed0000, 0x03ad0000, 0x06ad0000)
       concurrent-mark-sweep perm gen total 8192K, used 1332K [0x06ad0000, 0x072d0000, 0x0aad0000)

      Dynamic libraries:
      0x00400000 - 0x0040c000 C:\WINDOWS\system32\java.exe
      0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
      0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
      0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
      0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
      0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
      0x6d670000 - 0x6d804000 C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll
      0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
      0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
      0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
      0x6bd00000 - 0x6bd0d000 C:\WINDOWS\system32\SYNCOR11.DLL
      0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_06\bin\hpi.dll
      0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
      0x6d640000 - 0x6d64c000 C:\Program Files\Java\jre1.5.0_06\bin\verify.dll
      0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_06\bin\java.dll
      0x6d660000 - 0x6d66f000 C:\Program Files\Java\jre1.5.0_06\bin\zip.dll

      VM Arguments:
      jvm_args: -XX:+UseConcMarkSweepGC -Xaprof
      java_command: Test
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\java\jdk1.5.0_05
      PATH=C:\java\jdk1.5.0_05\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
      USERNAME=test
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel



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

      OS: Windows XP Build 2600 Service Pack 2

      CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

      Memory: 4k page, physical 1047276k(517884k free), swap 2508204k(1970012k free)

      vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class Test {
          public static void main(String[] args) {
              System.gc();
          }
      }

      ---------- END SOURCE ----------

            iveresov Igor Veresov
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: