I've downloaded yjp 11.0.9 for Ubuntu (architecture not specified on download page, presumably its both 32 and 64) and it crashes the JVM whenever I want to attach to my application.
- The JVM crash output:
Code: Select all
2012-10-24 21:07:33 Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode): "Service Thread" daemon prio=10 tid=0x00007f23240f8800 nid=0x6901 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" daemon prio=10 tid=0x00007f23240f6000 nid=0x6900 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" daemon prio=10 tid=0x00007f23240f3000 nid=0x68ff waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x00007f23240f1000 nid=0x68fe waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=10 tid=0x00007f23240a4000 nid=0x68fd in Object.wait() [0x00007f231a103000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007c1d65798> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135) - locked <0x00000007c1d65798> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177) "Reference Handler" daemon prio=10 tid=0x00007f23240a1800 nid=0x68fc in Object.wait() [0x00007f231a204000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007c1d65320> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:503) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133) - locked <0x00000007c1d65320> (a java.lang.ref.Reference$Lock) "main" prio=10 tid=0x00007f2324008800 nid=0x68f2 runnable [0x00007f232c9c1000] java.lang.Thread.State: RUNNABLE at codese.CoDeSeDriver.delay(Unknown Source) at codese.CoDeSeDriver.main(Unknown Source) "VM Thread" prio=10 tid=0x00007f232409a000 nid=0x68fb runnable "GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f2324016800 nid=0x68f3 runnable "GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f2324018800 nid=0x68f4 runnable "GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f232401a000 nid=0x68f5 runnable "GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f232401c000 nid=0x68f6 runnable "GC task thread#4 (ParallelGC)" prio=10 tid=0x00007f232401e000 nid=0x68f7 runnable "GC task thread#5 (ParallelGC)" prio=10 tid=0x00007f232401f800 nid=0x68f8 runnable "GC task thread#6 (ParallelGC)" prio=10 tid=0x00007f2324021800 nid=0x68f9 runnable "GC task thread#7 (ParallelGC)" prio=10 tid=0x00007f2324023800 nid=0x68fa runnable "VM Periodic Task Thread" prio=10 tid=0x00007f2324103000 nid=0x6902 waiting on condition JNI global references: 111 Heap PSYoungGen total 55680K, used 954K [0x00000007c1d60000, 0x00000007c5b80000, 0x0000000800000000) eden space 47744K, 2% used [0x00000007c1d60000,0x00000007c1e4ebf0,0x00000007c4c00000) from space 7936K, 0% used [0x00000007c53c0000,0x00000007c53c0000,0x00000007c5b80000) to space 7936K, 0% used [0x00000007c4c00000,0x00000007c4c00000,0x00000007c53c0000) ParOldGen total 127296K, used 0K [0x0000000745800000, 0x000000074d450000, 0x00000007c1d60000) object space 127296K, 0% used [0x0000000745800000,0x0000000745800000,0x000000074d450000) PSPermGen total 21248K, used 2422K [0x0000000740600000, 0x0000000741ac0000, 0x0000000745800000) object space 21248K, 11% used [0x0000000740600000,0x000000074085da10,0x0000000741ac0000) 2012-10-24 21:07:38 Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode): "Service Thread" daemon prio=10 tid=0x00007f23240f8800 nid=0x6901 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" daemon prio=10 tid=0x00007f23240f6000 nid=0x6900 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" daemon prio=10 tid=0x00007f23240f3000 nid=0x68ff waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x00007f23240f1000 nid=0x68fe waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=10 tid=0x00007f23240a4000 nid=0x68fd in Object.wait() [0x00007f231a103000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007c1d65798> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135) - locked <0x00000007c1d65798> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177) "Reference Handler" daemon prio=10 tid=0x00007f23240a1800 nid=0x68fc in Object.wait() [0x00007f231a204000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000007c1d65320> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:503) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133) - locked <0x00000007c1d65320> (a java.lang.ref.Reference$Lock) "main" prio=10 tid=0x00007f2324008800 nid=0x68f2 runnable [0x00007f232c9c1000] java.lang.Thread.State: RUNNABLE at codese.CoDeSeDriver.delay(Unknown Source) at codese.CoDeSeDriver.main(Unknown Source) "VM Thread" prio=10 tid=0x00007f232409a000 nid=0x68fb runnable "GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f2324016800 nid=0x68f3 runnable "GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f2324018800 nid=0x68f4 runnable "GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f232401a000 nid=0x68f5 runnable "GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f232401c000 nid=0x68f6 runnable "GC task thread#4 (ParallelGC)" prio=10 tid=0x00007f232401e000 nid=0x68f7 runnable "GC task thread#5 (ParallelGC)" prio=10 tid=0x00007f232401f800 nid=0x68f8 runnable "GC task thread#6 (ParallelGC)" prio=10 tid=0x00007f2324021800 nid=0x68f9 runnable "GC task thread#7 (ParallelGC)" prio=10 tid=0x00007f2324023800 nid=0x68fa runnable "VM Periodic Task Thread" prio=10 tid=0x00007f2324103000 nid=0x6902 waiting on condition JNI global references: 111 Heap PSYoungGen total 55680K, used 954K [0x00000007c1d60000, 0x00000007c5b80000, 0x0000000800000000) eden space 47744K, 2% used [0x00000007c1d60000,0x00000007c1e4ebf0,0x00000007c4c00000) from space 7936K, 0% used [0x00000007c53c0000,0x00000007c53c0000,0x00000007c5b80000) to space 7936K, 0% used [0x00000007c4c00000,0x00000007c4c00000,0x00000007c53c0000) ParOldGen total 127296K, used 0K [0x0000000745800000, 0x000000074d450000, 0x00000007c1d60000) object space 127296K, 0% used [0x0000000745800000,0x0000000745800000,0x000000074d450000) PSPermGen total 21248K, used 2422K [0x0000000740600000, 0x0000000741ac0000, 0x0000000745800000) object space 21248K, 11% used [0x0000000740600000,0x000000074085da10,0x0000000741ac0000) sleep over CoDeSe_irbt_size10_threads1_iter1=20
Code: Select all
A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fd18cad2b3a, pid=29227, tid=140537786201856 # # JRE version: 7.0_09-b05 # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x63bb3a] IterateOverHeapObjectClosure::do_object(oopDesc*)+0x6a
The code works fine without yourkit attached.
Has anybody run into this problem as well? Are there situations where yourkit cannot profile and just crashes the JVM? How does it fare with JNI calls (sun.misc.Unsafe is made out of JNI calls)?
Thanks