Debugging jvm crashes

I have JNI code to interface with windows code to read from some usb devices. Things look fine until after some time (usually 50-100 calls, sometimes as many as 200) the jvm crashes, usually with an access violation in the callstack for one of the java prints.
The native code runs fine on its own, and examining it in the debugger everything looks fine, even on the occasions (about 5% of the time) the crash originates in one of the windows API calls there.
Removing either the actual ReadFile call in the native code, or any attempts to print the returned values makes it run fine. I can print other things in the program, and I can do other things with the returned values, just not print them.
Any ideas? Suggestions on where to look? I have crash dumps, and can post code if it'd be helpful.

On further experimentation this seems to be some sort of issue where the call to ReadFile in the native code, and the java System.out.print must be separated by some amount of time.

Similar Messages

  • Help debugging JVM crash on linux

    Does anybody have any tips on debugging JVM crashes?
    I have a third-party shared library that I link in and use through JNI bindings.
    When I use this third party application with the 1.6.0 JVM on red hat enterprise linux, it causes the JVM to unpredictably SEGV.
    I'm stumped, I don't know how to debug this since I don't have source code for either the third-party app or for the JVM.
    Even some thoughts about what might cause the JVM to do this would be great. I've looked in depth at signals and signal handling but didn't find anything wrong there.
    Help!
    # An unexpected error has been detected by Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00000000, pid=14312, tid=1319668656
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode)
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x4a9a2400): JavaThread "AWT-EventQueue-0" [_thread_in_vm_trans, id=14327]
    siginfo:
    [error occurred during error reporting, step 90, id 0xb]
    Stack: [0x4ea38000,0x4ea89000), sp=0x4ea870dc, free space=316k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x3ae327]
    V [libjvm.so+0x3aef34]
    C [libpthread.so.0+0xaf80]
    V [libjvm.so+0x3add75]
    V [libjvm.so+0x3ae327]
    V [libjvm.so+0x3079c0]
    V [libjvm.so+0x305278]
    C [libc.so.6+0x280d8]
    j java.awt.MediaTracker.statusID(IZZ)I+47
    j java.awt.MediaTracker.waitForID(IJ)Z+16
    j javax.swing.ImageIcon.loadImage(Ljava/awt/Image;)V+24
    j javax.swing.ImageIcon.<init>([B)V+82
    j sun.swing.ImageIconUIResource.<init>([B)V+2
    j sun.swing.SwingUtilities2$2.createValue(Ljavax/swing/UIDefaults;)Ljava/lang/Object;+69
    J javax.swing.UIDefaults.getFromHashtable(Ljava/lang/Object;)Ljava/lang/Object;
    J javax.swing.UIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object;
    J javax.swing.MultiUIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object;
    j javax.swing.UIDefaults.getIcon(Ljava/lang/Object;)Ljavax/swing/Icon;+2
    j javax.swing.UIManager.getIcon(Ljava/lang/Object;)Ljavax/swing/Icon;+4
    j javax.swing.plaf.basic.BasicFileChooserUI.installIcons(Ljavax/swing/JFileChooser;)V+48
    j javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Ljavax/swing/JFileChooser;)V+2
    j javax.swing.plaf.basic.BasicFileChooserUI.installUI(Ljavax/swing/JComponent;)V+39
    j javax.swing.plaf.metal.MetalFileChooserUI.installUI(Ljavax/swing/JComponent;)V+2
    j javax.swing.JComponent.setUI(Ljavax/swing/plaf/ComponentUI;)V+135
    j javax.swing.JFileChooser.updateUI()V+40
    j javax.swing.JFileChooser.setup(Ljavax/swing/filechooser/FileSystemView;)V+18
    j javax.swing.JFileChooser.<init>(Ljava/io/File;Ljavax/swing/filechooser/FileSystemView;)V+133
    j javax.swing.JFileChooser.<init>()V+9
    j com.coventor.misc.FontPicker$2.actionPerformed(Ljava/awt/event/ActionEvent;)V+4
    j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
    j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
    j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
    j javax.swing.DefaultButtonModel.setPressed(Z)V+117
    j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
    j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+562
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+320
    j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
    j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
    j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+156
    j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    V [libjvm.so+0x209a4d]
    V [libjvm.so+0x305bc8]
    V [libjvm.so+0x209360]
    V [libjvm.so+0x2093ed]
    V [libjvm.so+0x279605]
    V [libjvm.so+0x38076f]
    V [libjvm.so+0x306aa3]
    C [libpthread.so.0+0x4dd8]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j java.awt.MediaTracker.statusID(IZZ)I+47
    j java.awt.MediaTracker.waitForID(IJ)Z+16
    j javax.swing.ImageIcon.loadImage(Ljava/awt/Image;)V+24
    j javax.swing.ImageIcon.<init>([B)V+82
    j sun.swing.ImageIconUIResource.<init>([B)V+2
    j sun.swing.SwingUtilities2$2.createValue(Ljavax/swing/UIDefaults;)Ljava/lang/Object;+69
    J javax.swing.UIDefaults.getFromHashtable(Ljava/lang/Object;)Ljava/lang/Object;
    J javax.swing.UIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object;
    J javax.swing.MultiUIDefaults.get(Ljava/lang/Object;)Ljava/lang/Object;
    j javax.swing.UIDefaults.getIcon(Ljava/lang/Object;)Ljavax/swing/Icon;+2
    j javax.swing.UIManager.getIcon(Ljava/lang/Object;)Ljavax/swing/Icon;+4
    j javax.swing.plaf.basic.BasicFileChooserUI.installIcons(Ljavax/swing/JFileChooser;)V+48
    j javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Ljavax/swing/JFileChooser;)V+2
    j javax.swing.plaf.basic.BasicFileChooserUI.installUI(Ljavax/swing/JComponent;)V+39
    j javax.swing.plaf.metal.MetalFileChooserUI.installUI(Ljavax/swing/JComponent;)V+2
    j javax.swing.JComponent.setUI(Ljavax/swing/plaf/ComponentUI;)V+135
    j javax.swing.JFileChooser.updateUI()V+40
    j javax.swing.JFileChooser.setup(Ljavax/swing/filechooser/FileSystemView;)V+18
    j javax.swing.JFileChooser.<init>(Ljava/io/File;Ljavax/swing/filechooser/FileSystemView;)V+133
    j javax.swing.JFileChooser.<init>()V+9
    j com.coventor.misc.FontPicker$2.actionPerformed(Ljava/awt/event/ActionEvent;)V+4
    j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
    j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
    j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
    j javax.swing.DefaultButtonModel.setPressed(Z)V+117
    j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
    j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
    j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
    j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
    j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
    j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+562
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+320
    j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
    j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
    j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
    j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
    j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
    j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46
    j java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+156
    j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
    j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
    j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j java.awt.EventDispatchThread.run()V+9
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x4a954800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=14331]
    0x4a9fd400 JavaThread "DestroyJavaVM" [_thread_blocked, id=14315]
    =>0x4a9a2400 JavaThread "AWT-EventQueue-0" [_thread_in_vm_trans, id=14327]
    0x4a99c000 JavaThread "AWT-Shutdown" [_thread_blocked, id=14326]
    0x4a97fc00 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=14325]
    0x08292c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=14323]
    0x4a902000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=14321]
    0x4a900800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=14320]
    0x080bb400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14319]
    0x080ab400 JavaThread "Finalizer" daemon [_thread_blocked, id=14318]
    0x080a7000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14317]
    Other Threads:
    0x080a4000 VMThread [id=14316]
    0x4a90b800 WatcherThread [id=14322]
    VM state:synchronizing (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x08056b90/0x08056bb8] Safepoint_lock - owner thread: 0x080a4000
    [0x08056c10/0x08056c38] Threads_lock - owner thread: 0x080a4000
    Heap
    def new generation total 960K, used 348K [0x422e0000, 0x423e0000, 0x427c0000)
    eden space 896K, 31% used [0x422e0000, 0x423270d0, 0x423c0000)
    from space 64K, 100% used [0x423d0000, 0x423e0000, 0x423e0000)
    to space 64K, 0% used [0x423c0000, 0x423c0000, 0x423d0000)
    tenured generation total 4096K, used 950K [0x427c0000, 0x42bc0000, 0x462e0000)
    the space 4096K, 23% used [0x427c0000, 0x428adae0, 0x428adc00, 0x42bc0000)
    compacting perm gen total 12288K, used 9535K [0x462e0000, 0x46ee0000, 0x4a2e0000)
    the space 12288K, 77% used [0x462e0000, 0x46c2fe78, 0x46c30000, 0x46ee0000)
    No shared spaces configured.
    Dynamic libraries:
    06000000-06412000 r-xp 00000000 00:0b 457890057 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/client/libjvm.so
    06412000-0642b000 rwxp 00412000 00:0b 457890057 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/client/libjvm.so
    0642b000-0684a000 rwxp 00000000 00:00 0
    08048000-08052000 r-xp 00000000 00:0b 457826569 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/bin/java
    08052000-08053000 rwxp 00009000 00:0b 457826569 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/bin/java
    08053000-082d9000 rwxp 00000000 00:00 0
    40000000-40015000 r-xp 00000000 08:02 507907 /lib/ld-2.3.2.so
    40015000-40016000 rwxp 00015000 08:02 507907 /lib/ld-2.3.2.so
    40016000-40017000 rwxp 00000000 00:00 0
    40017000-40018000 ---p 00000000 00:00 0
    40018000-40019000 rwxp 00000000 00:00 0
    40019000-4001f000 r-xp 00000000 00:0b 457959177 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/native_threads/libhpi.so
    4001f000-40020000 rwxp 00006000 00:0b 457959177 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/native_threads/libhpi.so
    40020000-40028000 rwxs 00000000 08:02 1917749 /tmp/hsperfdata_ken/14312
    40028000-40029000 r-xp 00000000 00:0b 650339 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libnativelib.so
    40029000-4002a000 rwxp 00000000 00:0b 650339 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libnativelib.so
    4002a000-4002b000 r-xp 00000000 08:02 2064395 /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
    4002b000-4002c000 rwxp 00000000 08:02 2064395 /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
    4002c000-40039000 r-xp 00000000 08:02 2818055 /lib/tls/libpthread-0.60.so
    40039000-4003a000 rwxp 0000c000 08:02 2818055 /lib/tls/libpthread-0.60.so
    4003a000-4003c000 rwxp 00000000 00:00 0
    4003c000-40043000 r-xp 00000000 00:0b 457891593 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/jli/libjli.so
    40043000-40045000 rwxp 00006000 00:0b 457891593 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/jli/libjli.so
    40045000-40047000 r-xp 00000000 08:02 507920 /lib/libdl-2.3.2.so
    40047000-40048000 rwxp 00001000 08:02 507920 /lib/libdl-2.3.2.so
    40048000-4017b000 r-xp 00000000 08:02 2818050 /lib/tls/libc-2.3.2.so
    4017b000-4017e000 rwxp 00132000 08:02 2818050 /lib/tls/libc-2.3.2.so
    4017e000-40182000 rwxp 00000000 00:00 0
    40182000-401a3000 r-xp 00000000 08:02 2818053 /lib/tls/libm-2.3.2.so
    401a3000-401a4000 rwxp 00021000 08:02 2818053 /lib/tls/libm-2.3.2.so
    401a4000-401a7000 ---p 00000000 00:00 0
    401a7000-401f5000 rwxp 00003000 00:00 0
    401f5000-40200000 r-xp 00000000 00:0b 457957641 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libverify.so
    40200000-40201000 rwxp 0000b000 00:0b 457957641 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libverify.so
    40201000-40205000 r-xp 00000000 08:02 360496 /usr/X11R6/lib/libXtst.so.6.1
    40205000-40206000 rwxp 00004000 08:02 360496 /usr/X11R6/lib/libXtst.so.6.1
    40206000-40207000 rwxp 00000000 00:00 0
    4020a000-4021b000 r-xp 00000000 08:02 507924 /lib/libnsl-2.3.2.so
    4021b000-4021c000 rwxp 00011000 08:02 507924 /lib/libnsl-2.3.2.so
    4021c000-4021e000 rwxp 00000000 00:00 0
    4021e000-40241000 r-xp 00000000 00:0b 457913353 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libjava.so
    40241000-40243000 rwxp 00023000 00:0b 457913353 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libjava.so
    40243000-40252000 r-xp 00000000 00:0b 457957897 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libzip.so
    40252000-40254000 rwxp 0000e000 00:0b 457957897 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libzip.so
    40254000-4032c000 rwxp 00000000 00:00 0
    4032c000-42254000 rwxp 000d8000 00:00 0
    42254000-42258000 rwxp 00000000 00:00 0
    42258000-422d4000 rwxp 02004000 00:00 0
    422d4000-422db000 r-xp 00000000 08:02 360480 /usr/X11R6/lib/libXi.so.6.0
    422db000-422dc000 rwxp 00006000 08:02 360480 /usr/X11R6/lib/libXi.so.6.0
    422e0000-423e0000 rwxp 00000000 00:00 0
    423e0000-427c0000 rwxp 0218c000 00:00 0
    427c0000-42bc0000 rwxp 00000000 00:00 0
    42bc0000-462e0000 rwxp 0296c000 00:00 0
    462e0000-46ee0000 rwxp 00000000 00:00 0
    46ee0000-4a2e0000 rwxp 06c8c000 00:00 0
    4a2e0000-4a2e1000 rwxp 00000000 00:00 0
    4a2e1000-4a2e2000 rwxp 0a08d000 00:00 0
    4a2e2000-4a2e5000 rwxp 00000000 00:00 0
    4a2e5000-4a300000 rwxp 0a091000 00:00 0
    4a300000-4a306000 rwxp 00000000 00:00 0
    4a306000-4a320000 rwxp 0a0b2000 00:00 0
    4a320000-4a324000 rwxp 00000000 00:00 0
    4a324000-4a33f000 rwxp 00003000 00:00 0
    4a33f000-4a346000 rwxp 00000000 00:00 0
    4a346000-4a360000 rwxp 00025000 00:00 0
    4a360000-4a4db000 r-xs 02c75000 00:0b 458017033 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/rt.jar
    4a4db000-4a50b000 rwxp 00000000 00:00 0
    4a50b000-4a50c000 ---p 00030000 00:00 0
    4a50c000-4a58c000 rwxp 00031000 00:00 0
    4a58c000-4a58f000 ---p 000b1000 00:00 0
    4a58f000-4a5dd000 rwxp 000b4000 00:00 0
    4a5dd000-4a5e0000 ---p 00102000 00:00 0
    4a5e0000-4a62e000 rwxp 00105000 00:00 0
    4a62e000-4a82e000 r-xp 00000000 08:02 3342341 /usr/lib/locale/locale-archive
    4a82e000-4a831000 ---p 00000000 00:00 0
    4a831000-4a87f000 rwxp 00003000 00:00 0
    4a87f000-4a882000 ---p 00051000 00:00 0
    4a882000-4aa00000 rwxp 00054000 00:00 0
    4aa00000-4aa03000 ---p 00000000 00:00 0
    4aa03000-4aa51000 rwxp 00003000 00:00 0
    4aa51000-4aa52000 ---p 00051000 00:00 0
    4aa52000-4aad2000 rwxp 00052000 00:00 0
    4aad2000-4ab4d000 r-xp 00000000 00:0b 457897225 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libawt.so
    4ab4d000-4ab54000 rwxp 0007b000 00:0b 457897225 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libawt.so
    4ab54000-4ab78000 rwxp 00000000 00:00 0
    4ab78000-4ac3e000 r-xp 00000000 00:0b 457929481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libmlib_image.so
    4ac3e000-4ac3f000 rwxp 000c5000 00:0b 457929481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libmlib_image.so
    4ac3f000-4ac7d000 r-xp 00000000 00:0b 457961481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/xawt/libmawt.so
    4ac7d000-4ac80000 rwxp 0003d000 00:0b 457961481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/xawt/libmawt.so
    4ac80000-4ac93000 r-xp 00000000 00:0b 457941513 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libnet.so
    4ac93000-4ac94000 rwxp 00013000 00:0b 457941513 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libnet.so
    4ac95000-4aca2000 r-xp 00000000 08:02 360472 /usr/X11R6/lib/libXext.so.6.4
    4aca2000-4aca3000 rwxp 0000c000 08:02 360472 /usr/X11R6/lib/libXext.so.6.4
    4aca3000-4ad7f000 r-xp 00000000 08:02 360462 /usr/X11R6/lib/libX11.so.6.2
    4ad7f000-4ad82000 rwxp 000db000 08:02 360462 /usr/X11R6/lib/libX11.so.6.2
    4ad82000-4b47e000 r-xp 00000000 00:0b 458691848 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaABlend.so
    4b47e000-4b48b000 rwxp 006fb000 00:0b 458691848 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaABlend.so
    4b48b000-4b48d000 rwxp 00000000 00:00 0
    4b48d000-4b9da000 r-xp 00000000 00:0b 458693129 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaALops.so
    4b9da000-4b9e3000 rwxp 0054c000 00:0b 458693129 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaALops.so
    4b9e3000-4b9e6000 rwxp 00000000 00:00 0
    4b9e6000-4ba23000 r-xp 00000000 00:0b 458693385 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAPart.so
    4ba23000-4ba25000 rwxp 0003c000 00:0b 458693385 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAPart.so
    4ba25000-4be22000 r-xp 00000000 00:0b 458693641 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaASurf.so
    4be22000-4be28000 rwxp 003fc000 00:0b 458693641 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaASurf.so
    4be28000-4be29000 rwxp 00000000 00:00 0
    4be29000-4bfbb000 r-xp 00000000 00:0b 458694153 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAVis.so
    4bfbb000-4bfc0000 rwxp 00192000 00:0b 458694153 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAVis.so
    4bfc0000-4bfc1000 rwxp 00000000 00:00 0
    4bfc1000-4c033000 r-xp 00000000 00:0b 458694409 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAWarp.so
    4c033000-4c035000 rwxp 00071000 00:0b 458694409 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAWarp.so
    4c035000-4e20d000 r-xp 00000000 00:0b 458692104 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaACIS.so
    4e20d000-4e252000 rwxp 021d7000 00:0b 458692104 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaACIS.so
    4e252000-4e26b000 rwxp 00000000 00:00 0
    4e26b000-4e64b000 r-xp 00000000 00:0b 458694665 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaBase.so
    4e64b000-4e659000 rwxp 003e0000 00:0b 458694665 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaBase.so
    4e659000-4e65e000 rwxp 00000000 00:00 0
    4e65e000-4e66a000 r-xp 00000000 08:02 1228857 /usr/lib/libz.so.1.1.4
    4e66a000-4e66c000 rwxp 0000b000 08:02 1228857 /usr/lib/libz.so.1.1.4
    4e66c000-4e671000 r-xp 00000000 08:02 507918 /lib/libcrypt-2.3.2.so
    4e671000-4e672000 rwxp 00004000 08:02 507918 /lib/libcrypt-2.3.2.so
    4e672000-4e699000 rwxp 00000000 00:00 0
    4e699000-4e6e6000 r-xp 00000000 08:02 360494 /usr/X11R6/lib/libXt.so.6.0
    4e6e6000-4e6ea000 rwxp 0004c000 08:02 360494 /usr/X11R6/lib/libXt.so.6.0
    4e6ea000-4e793000 r-xp 00000000 08:02 1228905 /usr/lib/libstdc++.so.5.0.3
    4e793000-4e798000 rwxp 000a8000 08:02 1228905 /usr/lib/libstdc++.so.5.0.3
    4e798000-4e79d000 rwxp 00000000 00:00 0
    4e79d000-4e7a5000 r-xp 00000000 08:02 508037 /lib/libgcc_s-3.2.3-20040701.so.1
    4e7a5000-4e7a6000 rwxp 00007000 08:02 508037 /lib/libgcc_s-3.2.3-20040701.so.1
    4e7a6000-4e862000 r-xp 00000000 00:0b 458691592 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAAsm.so
    4e862000-4e865000 rwxp 000bb000 00:0b 458691592 /mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing/libSpaAAsm.so
    4e865000-4e86c000 r-xp 00000000 08:02 360460 /usr/X11R6/lib/libSM.so.6.0
    4e86c000-4e86d000 rwxp 00007000 08:02 360460 /usr/X11R6/lib/libSM.so.6.0
    4e86d000-4e881000 r-xp 00000000 08:02 360456 /usr/X11R6/lib/libICE.so.6.3
    4e881000-4e882000 rwxp 00013000 08:02 360456 /usr/X11R6/lib/libICE.so.6.3
    4e882000-4e884000 rwxp 00000000 00:00 0
    4e884000-4e902000 r-xp 00000000 00:0b 457903625 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libfontmanager.so
    4e902000-4e90c000 rwxp 0007e000 00:0b 457903625 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libfontmanager.so
    4e90c000-4e911000 rwxp 00000000 00:00 0
    4e911000-4e914000 ---p 00005000 00:00 0
    4e914000-4e962000 rwxp 00008000 00:00 0
    4e962000-4e969000 r-xp 00000000 00:0b 457941769 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libnio.so
    4e969000-4e96a000 rwxp 00006000 00:0b 457941769 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libnio.so
    4e96a000-4e970000 r-xs 00000000 08:02 2441410 /usr/lib/gconv/gconv-modules.cache
    4e970000-4e977000 r-xs 00106000 00:0b 458016777 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/resources.jar
    4e985000-4e98d000 r-xp 00000000 08:02 360470 /usr/X11R6/lib/libXcursor.so.1.0
    4e98d000-4e98e000 rwxp 00007000 08:02 360470 /usr/X11R6/lib/libXcursor.so.1.0
    4e98e000-4e995000 r-xp 00000000 08:02 360492 /usr/X11R6/lib/libXrender.so.1.2.2
    4e995000-4e996000 rwxp 00006000 08:02 360492 /usr/X11R6/lib/libXrender.so.1.2.2
    4e996000-4e999000 ---p 00000000 00:00 0
    4e999000-4e9e7000 rwxp 00003000 00:00 0
    4e9e7000-4e9ea000 ---p 00051000 00:00 0
    4e9ea000-4ea38000 rwxp 00054000 00:00 0
    4ea38000-4ea3b000 ---p 000a2000 00:00 0
    4ea3b000-4ea89000 rwxp 000a5000 00:00 0
    4ea89000-4ea8c000 ---p 000f3000 00:00 0
    4ea8c000-4eb23000 rwxp 000f6000 00:00 0
    4eb23000-4eb77000 r-xp 00000000 00:0b 457897481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libcmm.so
    4eb77000-4eb7a000 rwxp 00054000 00:0b 457897481 /mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/libcmm.so
    4eb7a000-4eb96000 r-xp 00000000 08:02 2064760 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4eb96000-4eb98000 rwxp 0001c000 08:02 2064760 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
    4ec00000-4ec99000 rwxp 00086000 00:00 0
    4ec99000-4ed00000 ---p 00000000 00:00 0
    bfff7000-c0000000 rwxp ffff9000 00:00 0
    VM Arguments:
    java_command: com.coventor.misc.FontPicker
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/mnt/tools/intel/fc/9.0/bin:/mnt/users/ken/builds/cware/trunk/memcad/bin:/mnt/users/ken/builds/cware/trunk/memcad/bin/linux:/mnt/users/ken/builds/cware/trunk/memcad/bin/linux:/mnt/builds_linux/trunk/current/debug/memcad/bin:/mnt/builds_linux/trunk/current/debug/memcad/bin/linux:/mnt/users/ken/builds/cware/trunk/memcad/src/test/tools/scripts:/mnt/users/ken/builds/cware/trunk/memcad/src/test/tools/linux:/mnt/builds_linux/trunk/current/debug/memcad/src/test/tools/scripts:/mnt/builds_linux/trunk/current/debug/memcad/src/test/tools/linux:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/bin:.:/mnt/users/ken/bin:/mnt/users/ken/scripts:/bin:/usr/bin:/usr/sbin:/usr/lang:/usr/ucb:/usr/local/bin:/etc:/usr/dt/bin:/usr/kerberos/bin:/usr/X11R6/bin:/usr/X11R6/bin:/opt/ken/WindRiver/SNiFF+-4.0.2/bin:/mnt/users/ken/local/graphviz/graphviz-1.12/dotneato:/mnt/tools/bin
    LD_LIBRARY_PATH=/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/client:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/../lib/i386:/mnt/tools/intel/fc/9.0/lib:/mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing:/mnt/users/ken/builds/cware/trunk/memcad/lib/linux/mech:/mnt/users/ken/builds/cware/trunk/memcad/lib/linux/missing:/mnt/builds_linux/trunk/current/debug/memcad/lib/linux/missing:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/client:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/native_threads:/mnt/users/ken/builds/cware/trunk/memcad/runtime/jre/1.6.0_01/linux/lib/i386/xawt
    SHELL=/usr/local/bin/tcsh
    DISPLAY=wheelie.memcad.com:0.0
    HOSTTYPE=i386-linux
    OSTYPE=linux
    ARCH=linux
    MACHTYPE=i386
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x3aeee0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000000, flags was changed from 0x10000004, consider using jsig library
    SIGBUS: [libjvm.so+0x3aeee0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000000, flags was changed from 0x10000004, consider using jsig library
    SIGFPE: [libjvm.so+0x305260], sa_mask[0]=0x00000080, sa_flags=0x10000000, flags was changed from 0x10000004, consider using jsig library
    SIGPIPE: [libjvm.so+0x305260], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x305260], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x307270], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x306c90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x306c90], sa_mask[0]=0x00000002, sa_flags=0x10000000
    SIGQUIT: [libjvm.so+0x306c90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x306c90], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR2: [libjvm.so+0x307270], sa_mask[0]=0x00000000, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:Red Hat Enterprise Linux WS release 3 (Taroon Update 8)
    uname:Linux 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686
    libc:glibc 2.3.2 NPTL 0.60
    rlimit: STACK infinity, CORE 0k, NPROC 7168, NOFILE 1024, AS infinity
    load average:0.06 0.06 0.02
    CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 4029580k(1730940k free), swap 2096472k(2096472k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_01-b06) for linux-x86, built on Mar 14 2007 01:00:53 by "java_re" with gcc 3.2.1-7a (J2SE release)

    Hi there,
    Since you said you use JNI, did you try to use the -Xcheck:jni parameter? It will perform some extra consistency checks when calling JNI, at the expense of maybe some loss in JNI performance. This might catch any problems that might occur at the JNI level. Of course, if the third-party library has bugs and corrupts the VM heap, there's no much we can do.
    Regards,
    Tony, HS GC Group

  • Debugging JVM crash via JNI Invocation

    Our software is causing a JVM crash with an EXCEPTION_FLT_STACK_CHECK error using the latest
    Sun 1.4.2 and 5.0 JVMs on Windows XP. No such error appears with 1.4 on Macintosh OS X.
    We start the JVM via JNI Invocation - our software is a plug-in for a standard Windows GUI program that
    requires a C++ interface. How can we get a crash dump or otherwise see what is going on when we
    crash? We don't have a chance to catch a Java exception. It seems to be crashing within a very generic
    call to the Xerces 2.6.2 XML parser.
    When we use the "-XX:+ShowMessageBoxOnError" option invoking the JVM, we do see a message box
    on the JVM error. Using the "-Xcheck:jni" option shows no problems. I tried viewing the JVM in jconsole,
    which worked nicely, but adding the "-Dcom.sun.management.jmxremote" option makes the crash
    go away.
    I feel like I've likely missed something obvious in my web and reference searches, but on the other hand
    JNI invocation information can be in short supply. This bug is 100% reproducible with a certain software
    and data setup.
    Thanks for any pointers and advice you can offer!
    Michael

    Thanks. Off list someone also pointed me to the Java troubleshooting guide at:
    http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf
    This is very helpful for giving instructions for creating a crash dump. Sun might be able to use it but I can't
    seem to get any response to my JVM bug report, so I'm looking for something that might help me figure
    out what the heck is going on. Is there a way to get a normal Java fatal error log via either
    -XX:+ShowMessageBoxOnError or -XX:OnError?
    Thanks again,
    Michael

  • JVM Crash: ConcMarkSweepGC related?

    We're experiencing the following JVM crash approximately 2-5 times per day on a well traffic application server running Tomcat 5.5 under Java 1.5 (05) on Linux with a 2.4.21-37 kernel. I'm posting here because we kind of have no route to take: I can't seem to work around the crash in any way. There's a potential that UseParallelGC might fix this, but I'm unable to run the app reliably with a ParallelGC, as we have a very large cache and the Full GC's get unbelievably long (2GB heap).
    How can we find out what's going on? Is there a way to obtain a debug build so that:
    V [libjvm.so+0x4c2c53]
    V [libjvm.so+0x1bea7c]
    We're also seeing this in the standard output:
    An exception occurred on the SessionReaperDaemon[null, 2005-11-01 20:02:14.81] thread while processing (task="com.tangosol.coherence.servlet.SessionHelper$SessionReaperDaemon$IncrementalReapTask@1ba4ac8"):
    java.lang.NullPointerException
         at com.tangosol.coherence.servlet.SessionHelper$SessionReaperDaemon$IncrementalReapTask.run(SessionHelper.java:3072)
         at com.tangosol.util.TaskDaemon.run(TaskDaemon.java:69)
         at com.tangosol.coherence.servlet.SessionHelper$SessionReaperDaemon.run(SessionHelper.java:2709)
         at com.tangosol.util.Daemon$1.run(Daemon.java:63)
    Prior to the crash, but this is an impossible place for an exception:
    3070: if (iter.hasNext())
    3071: {
    3072: String sId = (String) iter.next();3073: ...
    Any help or next steps would be greatly appreciated.
    An attached dump:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (4E4D4554484F440E4350500521), pid=1705, tid=907377584
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
    --------------- T H R E A D ---------------
    Current thread (0x36bc7068): JavaThread "SessionReaperDaemon[null, 2005-11-01 22:38:23.388]" daemon [_thread_in_Java, id=1739]
    Stack: [0x360d7000,0x36158000), sp=0x36156eec, free space=511k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x4c2c53]
    V [libjvm.so+0x1bea7c]
    V [libjvm.so+0x3e2bee]
    V [libjvm.so+0x4564cb]
    V [libjvm.so+0x3f8956]
    V [libjvm.so+0x3f5c64]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x0894eba0 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=4871]
    0x0864ea88 JavaThread "RMI TCP Connection(341)-192.168.100.62" daemon [_thread_in_native, id=4802]
    0x083e6568 JavaThread "http-80-Processor300" daemon [_thread_in_native, id=4708]
    0x08d4e058 JavaThread "http-80-Processor299" daemon [_thread_in_native, id=4707]
    0x08bc7c20 JavaThread "http-80-Processor298" daemon [_thread_blocked, id=4706]
    0x0845fd78 JavaThread "http-80-Processor297" daemon [_thread_in_native, id=4705]
    0x08e39330 JavaThread "http-80-Processor296" daemon [_thread_in_native, id=4704]
    0x08bceb30 JavaThread "http-80-Processor295" daemon [_thread_blocked, id=4703]
    0x08bb9de8 JavaThread "http-80-Processor294" daemon [_thread_in_native, id=4702]
    0x08b692d0 JavaThread "http-80-Processor293" daemon [_thread_in_native, id=4701]
    0x084fa8e0 JavaThread "http-80-Processor292" daemon [_thread_in_native, id=4700]
    0x08446908 JavaThread "http-80-Processor291" daemon [_thread_blocked, id=4699]
    0x08e4c4c0 JavaThread "http-80-Processor290" daemon [_thread_in_native, id=4698]
    0x08625e60 JavaThread "http-80-Processor289" daemon [_thread_blocked, id=4697]
    0x0843d5b8 JavaThread "http-80-Processor288" daemon [_thread_in_native, id=4696]
    0x08ca13b8 JavaThread "http-80-Processor287" daemon [_thread_in_native, id=4695]
    0x08395e00 JavaThread "http-80-Processor286" daemon [_thread_in_native, id=4694]
    0x084c8f28 JavaThread "http-80-Processor285" daemon [_thread_in_native, id=4693]
    0x083f6490 JavaThread "http-80-Processor284" daemon [_thread_in_native, id=4692]
    0x08e69368 JavaThread "http-80-Processor281" daemon [_thread_blocked, id=4689]
    0x08df8218 JavaThread "http-80-Processor280" daemon [_thread_blocked, id=4688]
    0x0861ba28 JavaThread "http-80-Processor279" daemon [_thread_blocked, id=4687]
    0x083e22d0 JavaThread "http-80-Processor278" daemon [_thread_blocked, id=4686]
    0x08e44e80 JavaThread "http-80-Processor277" daemon [_thread_blocked, id=4685]
    0x08625478 JavaThread "http-80-Processor276" daemon [_thread_blocked, id=4684]
    0x08547890 JavaThread "http-80-Processor275" daemon [_thread_in_native, id=4632]
    0x0846c598 JavaThread "http-80-Processor274" daemon [_thread_in_native, id=4631]
    0x08beadb8 JavaThread "http-80-Processor270" daemon [_thread_in_native, id=4627]
    0x0865b3a0 JavaThread "http-80-Processor269" daemon [_thread_in_native, id=4626]
    0x092899e0 JavaThread "http-80-Processor268" daemon [_thread_in_native, id=4625]
    0x09277f58 JavaThread "http-80-Processor267" daemon [_thread_blocked, id=4624]
    0x086790b0 JavaThread "http-80-Processor265" daemon [_thread_in_native, id=4622]
    0x0844d920 JavaThread "http-80-Processor263" daemon [_thread_blocked, id=4620]
    0x0846f478 JavaThread "http-80-Processor262" daemon [_thread_in_native, id=4619]
    0x08c5f470 JavaThread "http-80-Processor261" daemon [_thread_in_native, id=4618]
    0x088cd8d0 JavaThread "http-80-Processor260" daemon [_thread_in_native, id=4617]
    0x08d5af30 JavaThread "http-80-Processor259" daemon [_thread_blocked, id=4616]
    0x0884bc18 JavaThread "http-80-Processor258" daemon [_thread_blocked, id=4615]
    0x08e618a0 JavaThread "http-80-Processor257" daemon [_thread_in_native, id=4614]
    0x08be3de0 JavaThread "http-80-Processor256" daemon [_thread_in_native, id=4613]
    0x085de680 JavaThread "http-80-Processor255" daemon [_thread_blocked, id=4612]
    0x083b8420 JavaThread "http-80-Processor254" daemon [_thread_blocked, id=4611]
    0x08e533e0 JavaThread "http-80-Processor253" daemon [_thread_in_native, id=4610]
    0x083c5af8 JavaThread "http-80-Processor252" daemon [_thread_in_native, id=4609]
    0x084701c0 JavaThread "http-80-Processor251" daemon [_thread_blocked, id=4608]
    0x3639cff0 JavaThread "http-80-Processor250" daemon [_thread_in_native, id=4402]
    0x2f41cd88 JavaThread "http-80-Processor249" daemon [_thread_in_native, id=4401]
    0x36bf7a48 JavaThread "http-80-Processor247" daemon [_thread_blocked, id=4399]
    0x35160748 JavaThread "http-80-Processor246" daemon [_thread_in_native, id=4398]
    0x36b42ed0 JavaThread "http-80-Processor245" daemon [_thread_blocked, id=4397]
    0x359b3ec0 JavaThread "http-80-Processor244" daemon [_thread_in_native, id=4396]
    0x3633a1f8 JavaThread "http-80-Processor240" daemon [_thread_blocked, id=4392]
    0x35a9ef28 JavaThread "http-80-Processor239" daemon [_thread_in_native, id=4391]
    0x35a52840 JavaThread "http-80-Processor238" daemon [_thread_blocked, id=4390]
    0x35a8e9e8 JavaThread "http-80-Processor236" daemon [_thread_blocked, id=4388]
    0x35a8de38 JavaThread "http-80-Processor235" daemon [_thread_in_native, id=4387]
    0x304703b8 JavaThread "http-80-Processor232" daemon [_thread_in_native, id=4384]
    0x36b32498 JavaThread "http-80-Processor231" daemon [_thread_blocked, id=4383]
    0x2e149a40 JavaThread "http-80-Processor230" daemon [_thread_blocked, id=4382]
    0x304731f8 JavaThread "http-80-Processor229" daemon [_thread_blocked, id=4381]
    0x2e186cd0 JavaThread "http-80-Processor228" daemon [_thread_in_native, id=4380]
    0x35a53c68 JavaThread "http-80-Processor227" daemon [_thread_blocked, id=4379]
    0x083a85d0 JavaThread "RMI TCP Connection(315)-192.168.100.62" daemon [_thread_blocked, id=4343]
    0x08cdd748 JavaThread "JMX server connection timeout 1017" daemon [_thread_blocked, id=3885]
    0x08df9fc0 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=3884]
    0x083c7f68 JavaThread "http-80-Processor225" daemon [_thread_blocked, id=3816]
    0x083c85b8 JavaThread "http-80-Processor223" daemon [_thread_blocked, id=3814]
    0x08df3be8 JavaThread "http-80-Processor222" daemon [_thread_in_native, id=3813]
    0x087a49b8 JavaThread "http-80-Processor221" daemon [_thread_in_native, id=3812]
    0x084c9db8 JavaThread "http-80-Processor220" daemon [_thread_in_native, id=3811]
    0x086203e0 JavaThread "http-80-Processor218" daemon [_thread_in_native, id=3809]
    0x088e2090 JavaThread "http-80-Processor216" daemon [_thread_in_native, id=3807]
    0x088bd2d0 JavaThread "http-80-Processor214" daemon [_thread_in_native, id=3805]
    0x08863490 JavaThread "http-80-Processor211" daemon [_thread_in_native, id=3802]
    0x08e9f4b8 JavaThread "http-80-Processor207" daemon [_thread_in_native, id=3798]
    0x08c9f748 JavaThread "http-80-Processor206" daemon [_thread_in_native, id=3797]
    0x0861fa00 JavaThread "http-80-Processor205" daemon [_thread_in_native, id=3796]
    0x08408ec8 JavaThread "http-80-Processor204" daemon [_thread_blocked, id=3795]
    0x0869bf28 JavaThread "http-80-Processor203" daemon [_thread_blocked, id=3794]
    0x08ba2648 JavaThread "http-80-Processor201" daemon [_thread_blocked, id=3792]
    0x08e70980 JavaThread "http-80-Processor200" daemon [_thread_blocked, id=3550]
    0x08e707e8 JavaThread "http-80-Processor199" daemon [_thread_blocked, id=3549]
    0x088e83b0 JavaThread "http-80-Processor196" daemon [_thread_blocked, id=3546]
    0x08634758 JavaThread "http-80-Processor195" daemon [_thread_blocked, id=3545]
    0x08198ea8 JavaThread "http-80-Processor194" daemon [_thread_blocked, id=3544]
    0x0831d5a8 JavaThread "http-80-Processor191" daemon [_thread_in_native, id=3541]
    0x088c6788 JavaThread "http-80-Processor189" daemon [_thread_in_native, id=3539]
    0x0835d868 JavaThread "http-80-Processor187" daemon [_thread_blocked, id=3537]
    0x08be2788 JavaThread "http-80-Processor186" daemon [_thread_in_native, id=3536]
    0x08d5b638 JavaThread "http-80-Processor182" daemon [_thread_blocked, id=3532]
    0x088c6488 JavaThread "http-80-Processor180" daemon [_thread_in_native, id=3530]
    0x08d83d70 JavaThread "http-80-Processor173" daemon [_thread_blocked, id=3158]
    0x088f3ca8 JavaThread "http-80-Processor171" daemon [_thread_blocked, id=3156]
    0x08862858 JavaThread "http-80-Processor168" daemon [_thread_blocked, id=3153]
    0x08629e38 JavaThread "http-80-Processor162" daemon [_thread_blocked, id=3147]
    0x086b9dd0 JavaThread "http-80-Processor159" daemon [_thread_in_native, id=3144]
    0x086e1c88 JavaThread "http-80-Processor153" daemon [_thread_in_native, id=3138]
    0x082fae10 JavaThread "http-80-Processor151" daemon [_thread_in_native, id=3136]
    0x084c7c40 JavaThread "http-80-Processor149" daemon [_thread_blocked, id=2489]
    0x087a5568 JavaThread "http-80-Processor147" daemon [_thread_in_native, id=2487]
    0x08c5f648 JavaThread "http-80-Processor146" daemon [_thread_blocked, id=2486]
    0x08c64090 JavaThread "http-80-Processor135" daemon [_thread_blocked, id=2475]
    0x08d60c68 JavaThread "http-80-Processor133" daemon [_thread_in_native, id=2473]
    0x08cdc058 JavaThread "http-80-Processor129" daemon [_thread_blocked, id=2469]
    0x0854a978 JavaThread "http-80-Processor128" daemon [_thread_blocked, id=2468]
    0x08d940c0 JavaThread "http-80-Processor126" daemon [_thread_in_native, id=2466]
    0x087c4998 JavaThread "http-80-Processor114" daemon [_thread_blocked, id=2186]
    0x0895ec90 JavaThread "http-80-Processor113" daemon [_thread_in_native, id=2185]
    0x0895e028 JavaThread "http-80-Processor112" daemon [_thread_blocked, id=2184]
    0x08e9bbb8 JavaThread "http-80-Processor82" daemon [_thread_in_native, id=2147]
    0x08634cf8 JavaThread "http-80-Processor80" daemon [_thread_in_native, id=2145]
    0x085d93c0 JavaThread "http-80-Processor68" daemon [_thread_blocked, id=2129]
    0x085d8658 JavaThread "http-80-Processor67" daemon [_thread_blocked, id=2128]
    0x085d7310 JavaThread "http-80-Processor66" daemon [_thread_in_native, id=2127]
    0x084c57e0 JavaThread "http-80-Processor60" daemon [_thread_blocked, id=2121]
    0x084c4a78 JavaThread "http-80-Processor59" daemon [_thread_blocked, id=2120]
    0x08588db8 JavaThread "http-80-Processor56" daemon [_thread_blocked, id=2117]
    0x086a2130 JavaThread "http-80-Processor54" daemon [_thread_in_native, id=2115]
    0x0878cfa8 JavaThread "http-80-Processor50" daemon [_thread_in_native, id=2108]
    0x087b9148 JavaThread "http-80-Processor39" daemon [_thread_blocked, id=2097]
    0x082f38c8 JavaThread "http-80-Processor29" daemon [_thread_blocked, id=2087]
    0x087a6a30 JavaThread "http-80-Processor28" daemon [_thread_in_native, id=2086]
    0x36b33540 JavaThread "http-80-Monitor" [_thread_blocked, id=1769]
    0x351178e0 JavaThread "http-80-Processor4" daemon [_thread_blocked, id=1747]
    0x35a72210 JavaThread "http-80-Processor1" daemon [_thread_blocked, id=1744]
    0x363ed3b0 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=1743]
    0x35a60238 JavaThread "Thread-4" [_thread_blocked, id=1742]
    =>0x36bc7068 JavaThread "SessionReaperDaemon[null, 2005-11-01 22:38:23.388]" daemon [_thread_in_Java, id=1739]
    0x363633c8 JavaThread "DistributedCache:DistributedSessions:EventDispatcher" daemon [_thread_blocked, id=1738]
    0x363771a0 JavaThread "DistributedCache:DistributedSessions" daemon [_thread_blocked, id=1737]
    0x36ba85f0 JavaThread "ReplicatedCache:ReplicatedSessionsMisc" daemon [_thread_blocked, id=1736]
    0x36bbb118 JavaThread "TcpRingListener" daemon [_thread_in_native, id=1735]
    0x36373478 JavaThread "Cluster" daemon [_thread_blocked, id=1733]
    0x36351268 JavaThread "PacketPublisher" daemon [_thread_blocked, id=1732]
    0x36350d60 JavaThread "PacketReceiver" daemon [_thread_blocked, id=1731]
    0x36ba8858 JavaThread "PacketListenerN" daemon [_thread_in_native, id=1730]
    0x36bb11e8 JavaThread "PacketListener1" daemon [_thread_in_native, id=1729]
    0x36b9f530 JavaThread "Logger@9508926 3.0/315" daemon [_thread_blocked, id=1728]
    0x081b0910 JavaThread "RMI TCP Accept-9000" daemon [_thread_in_native, id=1726]
    0x081b5c90 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=1725]
    0x081b57c0 JavaThread "Timer-0" daemon [_thread_blocked, id=1724]
    0x08157b60 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1722]
    0x081566e8 JavaThread "CompilerThread1" daemon [_thread_blocked, id=1721]
    0x08155698 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1720]
    0x08154578 JavaThread "AdapterThread" daemon [_thread_blocked, id=1719]
    0x08153618 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1718]
    0x081528e8 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=1717]
    0x08148480 JavaThread "Finalizer" daemon [_thread_blocked, id=1716]
    0x08148008 JavaThread "Reference Handler" daemon [_thread_blocked, id=1715]
    0x0805c598 JavaThread "main" [_thread_in_native, id=1705]
    Other Threads:
    0x08145bc8 VMThread [id=1714]
    0x082237b0 WatcherThread [id=1727]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation total 523840K, used 289536K [0x3d1c0000, 0x5d1c0000, 0x5d1c0000)
    eden space 523392K, 55% used [0x3d1c0000, 0x4ec800f0, 0x5d0e0000)
    from space 448K, 0% used [0x5d150000, 0x5d150000, 0x5d1c0000)
    to space 448K, 0% used [0x5d0e0000, 0x5d0e0000, 0x5d150000)
    concurrent mark-sweep generation total 1318912K, used 521347K [0x5d1c0000, 0xad9c0000, 0xad9c0000)
    concurrent-mark-sweep perm gen total 30720K, used 30499K [0xad9c0000, 0xaf7c0000, 0xb19c0000)
    Dynamic libraries:
    08048000-08056000 r-xp 00000000 08:02 180163 /usr/java/jdk1.5.0_05/bin/java
    08056000-08058000 rwxp 0000e000 08:02 180163 /usr/java/jdk1.5.0_05/bin/java
    08058000-0aea7000 rwxp 00000000 00:00 0
    2af40000-2b067000 rwxp 00001000 00:00 0
    2b067000-2b06a000 ---p 00000000 00:00 0
    2b06a000-2b0e8000 rwxp 00003000 00:00 0
    2b0e8000-2b0eb000 ---p 00081000 00:00 0
    2b0eb000-2b169000 rwxp 00084000 00:00 0
    2b169000-2b16c000 ---p 00102000 00:00 0
    2b16c000-2b1ea000 rwxp 00105000 00:00 0
    2b1ea000-2b1ed000 ---p 00081000 00:00 0
    2b1ed000-2b26b000 rwxp 00084000 00:00 0
    2b26b000-2b26e000 ---p 00081000 00:00 0
    2b26e000-2b2ec000 rwxp 00084000 00:00 0
    2b2ec000-2b367000 r-xs 00000000 08:02 1784003 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/xsdlib.jar
    2b367000-2b382000 r-xs 00000000 08:02 1784002 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/xmlrpc-1.2-b1.jar
    2b382000-2b39d000 r-xs 00000000 08:02 1784001 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/xml-apis.jar
    2b39d000-2b476000 r-xs 00000000 08:02 1784000 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/xercesImpl.jar
    2b476000-2b554000 r-xs 00000000 08:02 1783999 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/xalan.jar
    2b554000-2b557000 ---p 00000000 00:00 0
    2b557000-2b5d5000 rwxp 00003000 00:00 0
    2b5d5000-2b5d8000 ---p 00081000 00:00 0
    2b5d8000-2b656000 rwxp 00084000 00:00 0
    2b656000-2b659000 ---p 00081000 00:00 0
    2b659000-2b6d7000 rwxp 00084000 00:00 0
    2b6d7000-2b6da000 ---p 00102000 00:00 0
    2b6da000-2b758000 rwxp 00105000 00:00 0
    2b758000-2b75b000 ---p 00183000 00:00 0
    2b75b000-2b7d9000 rwxp 00186000 00:00 0
    2b7d9000-2b7dc000 rwxp 00000000 00:00 0
    2b7dc000-2b85a000 rwxp 00207000 00:00 0
    2b85a000-2b85d000 ---p 00285000 00:00 0
    2b85d000-2b8db000 rwxp 00288000 00:00 0
    2b8db000-2b8de000 ---p 00102000 00:00 0
    2b8de000-2b95c000 rwxp 00105000 00:00 0
    2b95c000-2b95f000 ---p 00183000 00:00 0
    2b95f000-2ba5d000 rwxp 00186000 00:00 0
    2ba5d000-2ba60000 ---p 00182000 00:00 0
    2ba60000-2bade000 rwxp 00185000 00:00 0
    2bade000-2bae1000 ---p 00203000 00:00 0
    2bae1000-2bb5f000 rwxp 00206000 00:00 0
    2bb5f000-2bb62000 ---p 00284000 00:00 0
    2bb62000-2bbe0000 rwxp 00287000 00:00 0
    2bbe0000-2bbe3000 ---p 00305000 00:00 0
    2bbe3000-2bc61000 rwxp 00308000 00:00 0
    2bc61000-2bc64000 ---p 00204000 00:00 0
    2bc64000-2bce2000 rwxp 00207000 00:00 0
    2bce2000-2bce5000 ---p 00285000 00:00 0
    2bce5000-2bd63000 rwxp 00288000 00:00 0
    2bd63000-2bd66000 rwxp 00000000 00:00 0
    2bd66000-2bde4000 rwxp 00186000 00:00 0
    2bde4000-2bde7000 ---p 00204000 00:00 0
    2bde7000-2be65000 rwxp 00207000 00:00 0
    2be65000-2be68000 rwxp 00000000 00:00 0
    2be68000-2bee6000 rwxp 00084000 00:00 0
    2bee6000-2bee9000 ---p 00102000 00:00 0
    2bee9000-2bf67000 rwxp 00105000 00:00 0
    2bf67000-2bf6a000 ---p 00183000 00:00 0
    2bf6a000-2bfe8000 rwxp 00186000 00:00 0
    2bfe8000-2bfeb000 ---p 00204000 00:00 0
    2bfeb000-2c069000 rwxp 00207000 00:00 0
    2c069000-2c06c000 ---p 00081000 00:00 0
    2c06c000-2c0ea000 rwxp 00084000 00:00 0
    2c0ea000-2c0ed000 ---p 00102000 00:00 0
    2c0ed000-2c16b000 rwxp 00105000 00:00 0
    2c16b000-2c16e000 ---p 00183000 00:00 0
    2c16e000-2c1ec000 rwxp 00186000 00:00 0
    2c1ec000-2c1ef000 rwxp 00000000 00:00 0
    2c1ef000-2c26d000 rwxp 00207000 00:00 0
    2c26d000-2c270000 ---p 00285000 00:00 0
    2c270000-2c2ee000 rwxp 00288000 00:00 0
    2c2ee000-2c2f1000 ---p 00306000 00:00 0
    2c2f1000-2c36f000 rwxp 00309000 00:00 0
    2c36f000-2c372000 ---p 00387000 00:00 0
    2c372000-2c3f0000 rwxp 0038a000 00:00 0
    2c3f0000-2c3f3000 ---p 00204000 00:00 0
    2c3f3000-2c471000 rwxp 00207000 00:00 0
    2c471000-2c474000 ---p 00285000 00:00 0
    2c474000-2c4f2000 rwxp 00288000 00:00 0
    2c4f2000-2c4f5000 ---p 00102000 00:00 0
    2c4f5000-2c573000 rwxp 00105000 00:00 0
    2c573000-2c576000 ---p 00183000 00:00 0
    2c576000-2c5f4000 rwxp 00186000 00:00 0
    2c5f4000-2c5f7000 ---p 00204000 00:00 0
    2c5f7000-2c675000 rwxp 00207000 00:00 0
    2c675000-2c678000 ---p 00285000 00:00 0
    2c678000-2c6f6000 rwxp 00288000 00:00 0
    2c6f6000-2c6f9000 ---p 00306000 00:00 0
    2c6f9000-2c777000 rwxp 00309000 00:00 0
    2c777000-2c77a000 ---p 00387000 00:00 0
    2c77a000-2c7f8000 rwxp 0038a000 00:00 0
    2c7f8000-2c7fb000 ---p 00081000 00:00 0
    2c7fb000-2c879000 rwxp 00084000 00:00 0
    2c879000-2c87c000 ---p 00102000 00:00 0
    2c87c000-2c8fa000 rwxp 00105000 00:00 0
    2c8fa000-2c8fd000 ---p 00183000 00:00 0
    2c8fd000-2c97b000 rwxp 00186000 00:00 0
    2c97b000-2c97e000 rwxp 00000000 00:00 0
    2c97e000-2c9fc000 rwxp 00207000 00:00 0
    2c9fc000-2c9ff000 ---p 00285000 00:00 0
    2c9ff000-2ca7d000 rwxp 00288000 00:00 0
    2ca7d000-2ca80000 ---p 00285000 00:00 0
    2ca80000-2cafe000 rwxp 00288000 00:00 0
    2cafe000-2cb01000 rwxp 00000000 00:00 0
    2cb01000-2cb7f000 rwxp 00309000 00:00 0
    2cb7f000-2cb82000 ---p 00387000 00:00 0
    2cb82000-2cc58000 rwxp 0038a000 00:00 0
    2cc58000-2cd00000 ---p 00029000 00:00 0
    2cd7f000-2cd82000 ---p 00000000 00:00 0
    2cd82000-2cefe000 rwxp 00003000 00:00 0
    2cefe000-2cf00000 ---p 00029000 00:00 0
    2cf00000-2d0fe000 rwxp 0002b000 00:00 0
    2d0fe000-2d100000 ---p 00038000 00:00 0
    2d17b000-2d17e000 ---p 00000000 00:00 0
    2d17e000-2d1fc000 rwxp 00003000 00:00 0
    2d1fc000-2d1ff000 ---p 00081000 00:00 0
    2d1ff000-2d27d000 rwxp 00084000 00:00 0
    2d27d000-2d280000 rwxp 00000000 00:00 0
    2d280000-2d2fe000 rwxp 00105000 00:00 0
    2d2fe000-2d301000 ---p 00183000 00:00 0
    2d301000-2d37f000 rwxp 00186000 00:00 0
    2d37f000-2d382000 ---p 00204000 00:00 0
    2d382000-2d600000 rwxp 00207000 00:00 0
    2d67f000-2d682000 ---p 00000000 00:00 0
    2d682000-2e1ff000 rwxp 00003000 00:00 0
    2e1ff000-2e200000 ---p 00029000 00:00 0
    2e200000-2e25d000 rwxp 0002a000 00:00 0
    2e25d000-2e300000 ---p 00059000 00:00 0
    2e300000-2e700000 rwxp 00000000 00:00 0
    2e77f000-2e782000 ---p 00000000 00:00 0
    2e782000-30500000 rwxp 00003000 00:00 0
    3057f000-30582000 rwxp 00000000 00:00 0
    30582000-30700000 rwxp 00003000 00:00 0
    3077d000-30780000 ---p 00000000 00:00 0
    30780000-307fe000 rwxp 00003000 00:00 0
    307fe000-30801000 ---p 00081000 00:00 0
    30801000-3087f000 rwxp 00084000 00:00 0
    3087f000-30882000 ---p 00102000 00:00 0
    30882000-30a00000 rwxp 00105000 00:00 0
    30a7f000-30a82000 ---p 00000000 00:00 0
    30a82000-30ffc000 rwxp 00003000 00:00 0
    30ffc000-31000000 ---p 00029000 00:00 0
    31000000-311fc000 rwxp 00095000 00:00 0
    311fc000-31200000 ---p 00029000 00:00 0
    31200000-313fc000 rwxp 0002d000 00:00 0
    313fc000-31400000 ---p 000fd000 00:00 0
    31416000-31434000 r-xs 00000000 08:02 1783998 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/wsdl4j.jar
    31434000-31442000 r-xs 00000000 08:02 1783997 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/wrapper.jar
    31442000-3147f000 r-xs 00000000 08:02 1783995 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/webInstaller.jar
    3147f000-31482000 ---p 00000000 00:00 0
    31482000-315ff000 rwxp 00003000 00:00 0
    315ff000-31600000 ---p 00000000 00:00 0
    31625000-3167f000 r-xs 00000000 08:02 1783994 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/velocity-1.4-rc1.jar
    3167f000-31682000 ---p 00000000 00:00 0
    31682000-31dfb000 rwxp 00003000 00:00 0
    31dfb000-31e00000 ---p 00000000 00:00 0
    31e14000-31e17000 ---p 00000000 00:00 0
    31e17000-31e95000 rwxp 00003000 00:00 0
    31e95000-31e98000 ---p 00081000 00:00 0
    31e98000-31f16000 rwxp 00084000 00:00 0
    31f16000-31f19000 ---p 00102000 00:00 0
    31f19000-31f97000 rwxp 00105000 00:00 0
    31f97000-31f9a000 ---p 00183000 00:00 0
    31f9a000-32018000 rwxp 00186000 00:00 0
    32018000-3201b000 ---p 00183000 00:00 0
    3201b000-32099000 rwxp 00186000 00:00 0
    32099000-3209c000 ---p 00204000 00:00 0
    3209c000-3211a000 rwxp 00207000 00:00 0
    3211a000-3211d000 ---p 00285000 00:00 0
    3211d000-3219b000 rwxp 00288000 00:00 0
    3219b000-3219e000 ---p 00102000 00:00 0
    3219e000-3221c000 rwxp 00105000 00:00 0
    3221c000-3221f000 ---p 00183000 00:00 0
    3221f000-3229d000 rwxp 00186000 00:00 0
    3229d000-322a0000 ---p 00204000 00:00 0
    322a0000-3231e000 rwxp 00207000 00:00 0
    3231e000-32321000 ---p 00285000 00:00 0
    32321000-3239f000 rwxp 00288000 00:00 0
    3239f000-323a2000 ---p 00306000 00:00 0
    323a2000-32420000 rwxp 00309000 00:00 0
    32420000-32423000 ---p 00387000 00:00 0
    32423000-324a1000 rwxp 0038a000 00:00 0
    324a1000-324a4000 ---p 00408000 00:00 0
    324a4000-32522000 rwxp 0040b000 00:00 0
    32522000-32525000 ---p 00285000 00:00 0
    32525000-325a3000 rwxp 00288000 00:00 0
    325a3000-325a6000 ---p 00102000 00:00 0
    325a6000-32624000 rwxp 00105000 00:00 0
    32624000-32627000 ---p 00183000 00:00 0
    32627000-326a5000 rwxp 00186000 00:00 0
    326a5000-326a8000 ---p 00204000 00:00 0
    326a8000-32726000 rwxp 00207000 00:00 0
    32726000-32729000 ---p 00285000 00:00 0
    32729000-327a7000 rwxp 00288000 00:00 0
    327a7000-327aa000 ---p 00102000 00:00 0
    327aa000-32828000 rwxp 00105000 00:00 0
    32828000-3282b000 rwxp 00000000 00:00 0
    3282b000-328a9000 rwxp 00186000 00:00 0
    328a9000-328ac000 ---p 00204000 00:00 0
    328ac000-3292a000 rwxp 00207000 00:00 0
    3292a000-3292d000 ---p 00285000 00:00 0
    3292d000-329ab000 rwxp 00288000 00:00 0
    329ab000-329ae000 rwxp 00000000 00:00 0
    329ae000-32a2c000 rwxp 00309000 00:00 0
    32a2c000-32a2f000 ---p 00183000 00:00 0
    32a2f000-32aad000 rwxp 00186000 00:00 0
    32aad000-32ab0000 rwxp 00000000 00:00 0
    32ab0000-32b2e000 rwxp 00207000 00:00 0
    32b2e000-32b31000 ---p 00000000 00:00 0
    32b31000-32baf000 rwxp 00003000 00:00 0
    32baf000-32bb2000 ---p 00081000 00:00 0
    32bb2000-32c30000 rwxp 00084000 00:00 0
    32c30000-32c33000 ---p 00102000 00:00 0
    32c33000-32cb1000 rwxp 00105000 00:00 0
    32cb1000-32cb4000 rwxp 00000000 00:00 0
    32cb4000-32d32000 rwxp 00186000 00:00 0
    32d32000-32d35000 rwxp 00000000 00:00 0
    32d35000-32db3000 rwxp 00084000 00:00 0
    32db3000-32db6000 ---p 00102000 00:00 0
    32db6000-32e34000 rwxp 00105000 00:00 0
    32e34000-32e37000 rwxp 00000000 00:00 0
    32e37000-32eb5000 rwxp 00186000 00:00 0
    32eb5000-32eb8000 ---p 00204000 00:00 0
    32eb8000-32f36000 rwxp 00207000 00:00 0
    32f36000-32f39000 rwxp 00000000 00:00 0
    32f39000-32fb7000 rwxp 00288000 00:00 0
    32fb7000-32fba000 ---p 00306000 00:00 0
    32fba000-33038000 rwxp 00309000 00:00 0
    33038000-3303b000 rwxp 00000000 00:00 0
    3303b000-330b9000 rwxp 00186000 00:00 0
    330b9000-330bc000 ---p 00204000 00:00 0
    330bc000-3313a000 rwxp 00207000 00:00 0
    3313a000-3313d000 ---p 00285000 00:00 0
    3313d000-331bb000 rwxp 00288000 00:00 0
    331bb000-331be000 ---p 00102000 00:00 0
    331be000-3323c000 rwxp 00105000 00:00 0
    3323c000-3323f000 ---p 00183000 00:00 0
    3323f000-332bd000 rwxp 00186000 00:00 0
    332bd000-332c0000 ---p 00204000 00:00 0
    332c0000-3333e000 rwxp 00207000 00:00 0
    3333e000-33341000 ---p 00285000 00:00 0
    33341000-333bf000 rwxp 00288000 00:00 0
    333bf000-333c2000 ---p 00306000 00:00 0
    333c2000-33440000 rwxp 00309000 00:00 0
    33440000-33443000 ---p 00183000 00:00 0
    33443000-334c1000 rwxp 00186000 00:00 0
    334e2000-33531000 r-xs 00000000 08:02 1783993 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/torque-3.0.2.jar
    33531000-33537000 r-xs 00000000 08:02 1783992 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/textile4j-1.20.jar
    33537000-336e9000 r-xs 00000000 08:02 1783991 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/tangosol.jar
    336e9000-33710000 r-xs 00000000 08:02 1783990 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/ss_css2.jar
    33710000-33716000 r-xs 00000000 08:02 1783989 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/smtp.jar
    33716000-3371b000 r-xs 00000000 08:02 1783987 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/saaj.jar
    3371b000-33720000 r-xs 00000000 08:02 1783986 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/relaxngDatatype.jar
    33720000-33726000 r-xs 00000000 08:02 1783985 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/pop3.jar
    33726000-3373e000 r-xs 00000000 08:02 1783984 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/p6spy.jar
    3373e000-3375b000 r-xs 00000000 08:02 1783983 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/oscache-2.1.1.jar
    3375b000-337ff000 r-xs 00000000 08:02 1783982 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/optional.jar
    337ff000-3396a000 r-xs 00000000 08:02 1783981 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/msv.jar
    3396a000-33979000 r-xs 00000000 08:02 1783980 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/msutil.jar
    33979000-3398a000 r-xs 00000000 08:02 1783979 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/mssqlserver.jar
    3398a000-339d1000 r-xs 00000000 08:02 1783978 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/msbase.jar
    339d1000-339e8000 r-xs 00000000 08:02 1783977 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/metadata-extractor-2.2.2.jar
    339e8000-33a15000 r-xs 00000000 08:02 1783976 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/mailapi.jar
    33a15000-33a6c000 r-xs 00000000 08:02 1783975 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/log4j-1.2.8.jar
    33a6c000-33a6e000 r-xs 00000000 08:02 1783974 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jdbc2_0-stdext.jar
    33a6e000-33ab6000 r-xs 00000000 08:02 1783973 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jcs.jar
    33ab6000-33ac2000 r-xs 00000000 08:02 1783972 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jazzy-core.jar
    33ac2000-33acb000 r-xs 00000000 08:02 1783971 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jaxrpc.jar
    33acb000-33b06000 r-xs 00000000 08:02 1783970 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jaxen-1.1-beta-4.jar
    33b06000-33b0e000 r-xs 00000000 08:02 1783969 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jakarta-regexp-1.2.jar
    33b0e000-33b1e000 r-xs 00000000 08:02 1783968 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jakarta-oro-2.0.6.jar
    33b1e000-33c9f000 r-xs 00000000 08:02 1783967 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jai_core.jar
    33c9f000-33cd3000 r-xs 00000000 08:02 1783966 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/jai_codec.jar
    33cd3000-33d03000 r-xs 00000000 08:02 1783965 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/isorelax.jar
    33d03000-33d25000 r-xs 00000000 08:02 1783964 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/imap.jar
    33d25000-33d54000 r-xs 00000000 08:02 1783963 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/hessian-3.0.13.jar
    33d54000-33d58000 r-xs 00000000 08:02 1783962 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/fast-md5-2.5.jar
    33d58000-33db8000 r-xs 00000000 08:02 1783961 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/dom4j-1.5-rc1.jar
    33db8000-33df5000 r-xs 00000000 08:02 1783960 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/dnsjava-1.6.6.jar
    33df5000-33ef6000 r-xs 00000000 08:02 1783958 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/db-ojb-1.0.1.jar
    33ef6000-33f0f000 r-xs 00000000 08:02 1783957 /usr/local/apache-tomcat-5.5.12/webapps/x/WEB-INF/lib/crossdb.jar
    33f0f000-33f1d000

    An aside: When I switch to ParallelGC, afterrunning
    for about 5-6 hours, GC times start doubling
    (approximately) in time, eventually moving upwardsof
    2 minutes per full GC.That sounds to me like you're swapping during full
    GCs. I wouldn't assume that 2 GB of physical RAM is
    sufficient to run an app with an 1800 MB heap. Have
    you done any heap profiling to determine the real
    working set of your application? When the GCs get
    this pathologically long, is there disk activity on
    the machine?Hmm.. So what should we size our heap to on a server with 2GB? The server is essentially only running the Java process. What would you consider "safe"?
    While heap profiling with jconsole, the application only utilizes 1.1GB of the heap at peaks. We want to expand that eventually as we size our caches larger.
    I don't believe there's disk activity with long GCs, but I can't confirm that 100% right now. The server is reading files from another machine, so the disks are more or less untouched while the app is running. There's heavy caching. The only reason disks would be hititng if your guess regarding the swapping turns out correct. After you suggest a safer way to calc a max heap size for our machine, I'll try again with ParallelGC and a smaller heap.
    Some points:
    - I tried increasing perm generation size. It'snot
    even close to filled (according to gc log).(As you mentioned, "old generation" instead of "perm
    generation".) What about when the full collection
    times are taking 2 minutes in duration? Is there any
    disk activity indicating swapping?Again, not positive on the disk situation -- should get an answer above to figure this out.
    - I have not tried the -client VM, will this break
    performance on a production application?The client VM does not generate as high quality
    machine code as the server VM but on the x86
    architecture many benchmark scores for the two
    compilers are comparable. I would recommend you try
    that option if only to narrow down the scope of the
    crash you're seeing.
    - I saw a bug related to a ConcMarkSweepGC crashon
    4-cpu machines opened on Oct 17th. I've testedthis
    on 4-cpu (2 proc with hyperthreading) and 2-cpu
    (hyperthreading off) -- both exhibit this issue.What bug ID is this?http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337544
    - Are there any known issues with this collectorand
    Linux 2.4.21-37.ELsmp? Should we be using
    LD_ASSUME_KERNEL=2.2.5 or anything? For java to
    recognize this variable, do we just need itspecified
    anywhere in the environment at JVM start? How dowe
    test if it worked?No issues as far as I know, but I am not a Linux
    expert. I think in order to toggle which thread
    library is used you just need that variable exported
    in the environment when the JVM starts up. You can
    probably use pmap to see which thread library got
    loaded to verify the one you expect is present in the
    loaded objects.Trying various combinations of LD_ASSUME_KERNEL to switch threading versions has no real effect on stability there. We're seeing crashes repeatedly still.
    I'm going to attempt to deploy some machines with a new kernel as well and see if we can reproduce on those. I'll try ParallelGC again as soon as I get your recommendations on the configuration.

  • JVM crash when adding method to class

    Hello,
    I am getting some kind of problem with the virtual machine. The JVM crashes when making a class (with new). It happened when I was adding some functionality to the class, I worked my way backwards and discovered it crashes when I add any new methods, if I comment them out again everything works, adding a method by any name causes to crash.
    I went in debug to find out where it was happening, and it happens on this line:
    public PerspectiveActionToolBarHeader createPerspectiveActionToolBarHeader() {
         PerspectiveActionToolBarHeader ret = null;
         ret = new PerspectiveActionToolBarHeader(this); // << here
         return ret;
    }The PerspectiveActionToolBarHeader is the class where adding methods causes it to fail. For example, it has the method
    public Container getContainer() {
         return this;
    }and works, but if I add:
    public void anything(){} it causes a crash on the new PerspectiveActionToolBarHeader(this);
    When stepped into with the debugger it goes to the (source not found) ClassNotFoundException and eventually before the crash the (stack?) looks like this:
    Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available     
    MaldiSoftwareOptionsUIEnsemble(PerspectiveUIEnsemble).createPerspectiveActionToolBarHeader() line: 72
    and the debugger describes the class just before the crash:
    Launcher$AppClassLoader (id=44)     
    arg0     "saiman.uiobjnew.PerspectiveToolBarButton" (id=51) << has just changed
    and the log file (not sure how much to copy here!):
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x005c0001, pid=15504, tid=20112
    # JRE version: 6.0_24-b07
    # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
    # Problematic frame:
    # C 0x005c0001
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x011ca000): JavaThread "main" [_thread_in_vm, id=20112, stack(0x01140000,0x01190000)]
    siginfo: ExceptionCode=0xc000001d
    Registers:
    EAX=0x13e13248, EBX=0x6da0daa8, ECX=0x13e13250, EDX=0x13e131f8
    ESP=0x0118f93c, EBP=0x0118f9a0, ESI=0x011ca9b0, EDI=0x011ca9ac
    EIP=0x005c0001, EFLAGS=0x00010206
    Register to memory mapping:
    EAX=0x13e13248
    {method}
    - klass: {other class}
    EBX=0x6da0daa8
    0x6da0daa8 is pointing to unknown location
    ECX=0x13e13250
    {method}
    - klass: {other class}
    EDX=0x13e131f8
    {constMethod}
    - klass: {other class}
    - method: 0x13e13248 {method} 'flipVisible' '(I)V' in 'saiman/uiobjnew/PerspectiveActionToolBarHeader'
    - exceptions: 0x13bf11e8
    ESP=0x0118f93c
    0x0118f93c is pointing into the stack for thread: 0x011ca000
    "main" prio=6 tid=0x011ca000 nid=0x4e90 runnable [0x0118f000]
    java.lang.Thread.State: RUNNABLE
    EBP=0x0118f9a0
    0x0118f9a0 is pointing into the stack for thread: 0x011ca000
    "main" prio=6 tid=0x011ca000 nid=0x4e90 runnable [0x0118f000]
    java.lang.Thread.State: RUNNABLE
    ESI=0x011ca9b0
    0x011ca9b0 is pointing to unknown location
    EDI=0x011ca9ac
    0x011ca9ac is pointing to unknown location
    Top of Stack: (sp=0x0118f93c)
    0x0118f93c: 6d94272d 011ca370 13e17d40 011ca000
    0x0118f94c: 011ca000 01a30950 011ca748 011ca9b4
    0x0118f95c: 011cab3c 0118fb28 011c6748 011ca348
    0x0118f96c: 011ca370 011ca73c 6da0daa8 011ca350
    0x0118f97c: 011ca370 0118f9cc 011ca9a8 0118f9c8
    0x0118f98c: 011ca788 011ca370 011ca9b0 011ca000
    0x0118f99c: 13e17d40 0118f9cc 6d943009 00000910
    0x0118f9ac: 011ca9ac 00000001 011ca000 011ca000
    Instructions: (pc=0x005c0001)
    0x005bfff1: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff
    0x005c0001: ff ff 7f 00 00 00 00 00 00 00 00 ff ff ff ff 00
    Stack: [0x01140000,0x01190000], sp=0x0118f93c, free space=318k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x005c0001
    V [jvm.dll+0x153009]
    V [jvm.dll+0xdecdb]
    V [jvm.dll+0xe1887]
    V [jvm.dll+0xe1c46]
    V [jvm.dll+0xec09a]
    j saiman.uiobjnew.PerspectiveUIEnsemble.createPerspectiveActionToolBarHeader()Lsaiman/uiobjnew/PerspectiveActionToolBarHeader;+2
    j saiman.mv.ModelViewPerspectiveUIEnsemble.createPerspectiveActionToolBarHeader()Lsaiman/uiobjnew/PerspectiveActionToolBarHeader;+1
    j saiman.uiobjnew.PerspectiveUIEnsemble.addButtons()V+1
    j saiman.uiobjnew.PerspectiveUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+21
    j saiman.mv.ModelViewPerspectiveUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.uiobjnew.SoftwareOptionsUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.wmaldi.MaldiSoftwareOptionsUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.newuiimpl.MassSpectrumMainFrameImpl.main([Ljava/lang/String;)V+173
    v ~StubRoutines::call_stub
    V [jvm.dll+0xf0ab9]
    V [jvm.dll+0x1837d1]
    V [jvm.dll+0xf0b3d]
    V [jvm.dll+0xfa0d6]
    V [jvm.dll+0x101cde]
    C [javaw.exe+0x2155]
    C [javaw.exe+0x8614]
    C [kernel32.dll+0x51194]
    C [ntdll.dll+0x5b3f5]
    C [ntdll.dll+0x5b3c8]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j saiman.uiobjnew.PerspectiveUIEnsemble.createPerspectiveActionToolBarHeader()Lsaiman/uiobjnew/PerspectiveActionToolBarHeader;+2
    j saiman.mv.ModelViewPerspectiveUIEnsemble.createPerspectiveActionToolBarHeader()Lsaiman/uiobjnew/PerspectiveActionToolBarHeader;+1
    j saiman.uiobjnew.PerspectiveUIEnsemble.addButtons()V+1
    j saiman.uiobjnew.PerspectiveUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+21
    j saiman.mv.ModelViewPerspectiveUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.uiobjnew.SoftwareOptionsUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.wmaldi.MaldiSoftwareOptionsUIEnsemble.<init>(Lsaiman/uiobjnew/MultiPerspectiveFrame;)V+2
    j saiman.newuiimpl.MassSpectrumMainFrameImpl.main([Ljava/lang/String;)V+173
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x01b05400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=19680, stack(0x18560000,0x185b0000)]
    0x01b04800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=19516, stack(0x18140000,0x18190000)]
    0x01b04000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=20064, stack(0x18040000,0x18090000)]
    0x01b03c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=20276, stack(0x17ff0000,0x18040000)]
    0x01aeb000 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=16832, stack(0x17fa0000,0x17ff0000)]
    0x01aea000 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=16360, stack(0x17ef0000,0x17f40000)]
    0x01ae8000 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=20084, stack(0x17ea0000,0x17ef0000)]
    0x01ade400 JavaThread "Attach Listener" daemon [_thread_blocked, id=19772, stack(0x17d90000,0x17de0000)]
    0x01add400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=20192, stack(0x17d40000,0x17d90000)]
    0x01ab2800 JavaThread "Finalizer" daemon [_thread_blocked, id=17344, stack(0x17cf0000,0x17d40000)]
    0x01aabc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=19964, stack(0x17ca0000,0x17cf0000)]
    =>0x011ca000 JavaThread "main" [_thread_in_vm, id=20112, stack(0x01140000,0x01190000)]
    Other Threads:
    0x01aa7c00 VMThread [stack: 0x011d0000,0x01220000] [id=19144]
    0x01b17400 WatcherThread [stack: 0x180f0000,0x18140000] [id=12792]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 4928K, used 768K [0x03bf0000, 0x04140000, 0x09140000)
    eden space 4416K, 5% used [0x03bf0000, 0x03c30380, 0x04040000)
    from space 512K, 100% used [0x040c0000, 0x04140000, 0x04140000)
    to space 512K, 0% used [0x04040000, 0x04040000, 0x040c0000)
    tenured generation total 10944K, used 1858K [0x09140000, 0x09bf0000, 0x13bf0000)
    the space 10944K, 16% used [0x09140000, 0x09310948, 0x09310a00, 0x09bf0000)
    compacting perm gen total 12288K, used 9598K [0x13bf0000, 0x147f0000, 0x17bf0000)
    the space 12288K, 78% used [0x13bf0000, 0x1454fb70, 0x1454fc00, 0x147f0000)
    No shared spaces configured.
    Edited by: hanvyj on 07-Jun-2011 02:39
    Edited by: hanvyj on 07-Jun-2011 02:43

    I think I may have stumbled across the answer, It seems that the abstract class PerspectiveToolBar implements
    the interface with the method public Container getContainer() but does not declare it, this should be fine because the method is abstract but it crashes. When I add the method public abstract Container getContainer(); to the abstract sub-class there is no error. I'm going to try make a small compilable example to see if I can reproduce it.
    edit its actually only one of the two interface methods, and not getContainer(), but another one. If anyone is interested here is the interface:
    public interface IMassSpectrometerPassableControlContainer
         Container getContainer();
         void reloadWidgetsOnVisible(boolean visible);
    }and it works only if there is "public abstract void reloadWidgetsOnVisible(boolean visible);" in the abstract class PerspectiveToolBar implementing IMassSpectrometerPassableControlContainer.
    I tried to reproduce it, but I can't get another class to repeat the behaviour, so I don't think I can post a bug report on it. Here is my attempt anyway:
    import javax.swing.JToolBar;
    * Class     Test.java
    * Date:     7 Jun 2011
    * @author     tofuser
    public class Test extends Subclass
         public static void main(String args[])
              System.out.println("in main method");
              Test t = new Test();
              t.interfaceMethod();
         @Override
         public void interfaceMethod()
              System.out.println("interface method");
    abstract class Subclass extends JToolBar implements Interface
         private static final long serialVersionUID = 1L;
         //this line is where it breaks in my code, including it works
         //public abstract void interfaceMethod();
    interface Interface
         public abstract void interfaceMethod();
    }Edited by: hanvyj on 07-Jun-2011 03:56

  • Variety of periodic JVM crashes (no JNI)

    Hello,
    I have a J2SE application that runs on a Linux box that is getting a number of various JVM crashes. The program has no JNI and does not use any libraries, it's all just Java. The call stacks are always different, and I don't see any consistency in what is happening in the application when the JVM crashes. It does however always seem to be a SIGSEGV. Sometimes they happen after 2 minutes of uptime, sometimes after days.
    I tried upgrading the JVM from 6.0_27-b07 to 7.0_06-b24 but it has made no difference. I uploaded all the hs_err logs here: http://www.tacticstudios.com/downloads/logs.rar if you would like to take a look.
    Due to the inconsistent call stacks my only assumption is that memory is getting corrupted in some way, and the crash is occurring later on.  Maybe it is a hardware problem? I'm not certain what would cause this.
    Any assistance you can provide in how to debug this, or any ideas would be extremely appreciated. I have pasted the most recent error log below.
    Jesse
    # A fatal error has been detected by the Java Runtime Environment:
    #  SIGSEGV (0xb) at pc=0x00007fbcc8a16bd4, pid=3126, tid=140448514426624
    # JRE version: 7.0_06-b24
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # V  [libjvm.so+0x7b5bd4]  PhaseChaitin::Split(unsigned int)+0x8e4
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    # If you would like to submit a bug report, please visit:
    #   http://bugreport.sun.com/bugreport/crash.jsp
    ---------------  T H R E A D  ---------------
    Current thread (0x00007fbcc40e7800):  JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=3145, stack(0x00007fbcb7bfc000,0x00007fbcb7cfd000)]
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=128 (), si_addr=0x0000000000000000
    Registers:
    RAX=0x00007fbc89897540, RBX=0x00007fbc88e499f0, RCX=0x00007fbc898974b0, RDX=0x0000000000000000
    RSP=0x00007fbcb7cf8390, RBP=0x00007fbcb7cf8820, RSI=0x0000000000000004, RDI=0x00007fbc88e499f0
    R8 =0x0000000000000181, R9 =0x0000000000000004, R10=0x0000000000000001, R11=0x00007fbc88e69390
    R12=0x0000000000000000, R13=0x0000000000000001, R14=0x00007fbc88e499f0, R15=0xf100000000000000
    RIP=0x00007fbcc8a16bd4, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000
      TRAPNO=0x000000000000000d
    Top of Stack: (sp=0x00007fbcb7cf8390)
    0x00007fbcb7cf8390:   00007fbcb7cf83d0 00007fbcc897d002
    0x00007fbcb7cf83a0:   0000000000000000 0000000000000000
    0x00007fbcb7cf83b0:   000000000000002a 00007fbcb7cf8a40
    0x00007fbcb7cf83c0:   0101010101010101 0101010101010101
    0x00007fbcb7cf83d0:   0000000000000000 0000000000000000
    0x00007fbcb7cf83e0:   00007fbcb7cf8690 00007fbcb7cf8650
    0x00007fbcb7cf83f0:   00007fbcb7cf8670 00007fbcb7cf8750
    0x00007fbcb7cf8400:   0000000000000007 00007fbc88f97d90
    0x00007fbcb7cf8410:   0000000000000000 00007fbcb7cf8a40
    0x00007fbcb7cf8420:   00007fbc8908f210 00007fbcc848c156
    0x00007fbcb7cf8430:   00007fbcb7cf8490 0000000000000004
    0x00007fbcb7cf8440:   00007fbc88712fc8 00007fbc8908f188
    0x00007fbcb7cf8450:   0000000000000008 0000000000002940
    0x00007fbcb7cf8460:   00007fbcb7cf9f90 00007fbc883f9cc0
    0x00007fbcb7cf8470:   00007fbc883fa590 0000000000000000
    0x00007fbcb7cf8480:   0000000000000090 00007fbcb7cf8a40
    0x00007fbcb7cf8490:   00007fbc8909b580 00007fbc8908f188
    0x00007fbcb7cf84a0:   00007fbcb7cfa058 00007fbcc846c6ce
    0x00007fbcb7cf84b0:   0000000000000003 0000011ac8ac9296
    0x00007fbcb7cf84c0:   00007fbc883fb850 00007fbc88b58600
    0x00007fbcb7cf84d0:   00007fbc88b58640 00007fbc883fc120
    0x00007fbcb7cf84e0:   01007fbc8908f260 00007fbc898974b0
    0x00007fbcb7cf84f0:   00007fbc88b51000 00007fbc88348b90
    0x00007fbcb7cf8500:   00007fbc883f4990 0000007888107a90
    0x00007fbcb7cf8510:   00007fbcb7cf8500 00007fbcc848c03f
    0x00007fbcb7cf8520:   00007fbcb7cf89e0 00000000000000f0
    0x00007fbcb7cf8530:   0000000000000009 0000000000000013
    0x00007fbcb7cf8540:   00007fbcc8f37280 00007fbcc8763c94
    0x00007fbcb7cf8550:   0000000000000008 00007fbcb7cfade0
    0x00007fbcb7cf8560:   00007fbcc8f37280 00007fbcc8763ac0
    0x00007fbcb7cf8570:   00007fbc88071000 0000000000000048
    0x00007fbcb7cf8580:   0000000000000002 0000000000070d60
    Instructions: (pc=0x00007fbcc8a16bd4)
    0x00007fbcc8a16bb4:   84 f6 0f 84 dc 1b 00 00 48 8b 8d c8 fc ff ff 45
    0x00007fbcc8a16bc4:   31 f6 8b 71 18 85 f6 74 07 48 8b 41 20 4c 8b 30
    0x00007fbcc8a16bd4:   49 8b 07 4c 89 ff ff 50 28 48 8b b5 c8 fc ff ff
    0x00007fbcc8a16be4:   48 89 85 78 fc ff ff 31 c0 8b 56 18 85 d2 74 07
    Register to memory mapping:
    RAX=0x00007fbc89897540 is an unknown value
    RBX=0x00007fbc88e499f0 is an unknown value
    RCX=0x00007fbc898974b0 is an unknown value
    RDX=0x0000000000000000 is an unknown value
    RSP=0x00007fbcb7cf8390 is pointing into the stack for thread: 0x00007fbcc40e7800
    RBP=0x00007fbcb7cf8820 is pointing into the stack for thread: 0x00007fbcc40e7800
    RSI=0x0000000000000004 is an unknown value
    RDI=0x00007fbc88e499f0 is an unknown value
    R8 =0x0000000000000181 is an unknown value
    R9 =0x0000000000000004 is an unknown value
    R10=0x0000000000000001 is an unknown value
    R11=0x00007fbc88e69390 is an unknown value
    R12=0x0000000000000000 is an unknown value
    R13=0x0000000000000001 is an unknown value
    R14=0x00007fbc88e499f0 is an unknown value
    R15=0xf100000000000000 is an unknown value
    Stack: [0x00007fbcb7bfc000,0x00007fbcb7cfd000],  sp=0x00007fbcb7cf8390,  free space=1008k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [libjvm.so+0x7b5bd4]  PhaseChaitin::Split(unsigned int)+0x8e4
    V  [libjvm.so+0x347d4e]  PhaseChaitin::Register_Allocate()+0x48e
    V  [libjvm.so+0x3ba1dd]  Compile::Code_Gen()+0x3ad
    V  [libjvm.so+0x3bcde5]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool)+0xe15
    V  [libjvm.so+0x32eaf2]  C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x142
    V  [libjvm.so+0x3c1d03]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x323
    V  [libjvm.so+0x3c2e6d]  CompileBroker::compiler_thread_loop()+0x43d
    V  [libjvm.so+0x864ec8]  JavaThread::thread_main_inner()+0xc8
    V  [libjvm.so+0x865018]  JavaThread::run()+0x138
    V  [libjvm.so+0x746a00]  java_start(Thread*)+0x100
    Current CompileTask:
    C2:5652858  298             Main.GameObject::aiMoveUnit (1510 bytes)
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x00007fbc68018000 JavaThread "Thread-107" [_thread_in_native, id=4598, stack(0x00007fbcb53d9000,0x00007fbcb54da000)]
      0x00007fbc68017000 JavaThread "Thread-108" [_thread_blocked, id=4597, stack(0x00007fbcb52d8000,0x00007fbcb53d9000)]
      0x00007fbc68012000 JavaThread "Thread-100" [_thread_in_native, id=4442, stack(0x00007fbcb59df000,0x00007fbcb5ae0000)]
      0x00007fbc68011800 JavaThread "Thread-101" [_thread_blocked, id=4441, stack(0x00007fbcb58de000,0x00007fbcb59df000)]
      0x00007fbc68016000 JavaThread "Thread-93" [_thread_in_native, id=4405, stack(0x00007fbcb57dd000,0x00007fbcb58de000)]
      0x00007fbc68015000 JavaThread "Thread-94" [_thread_blocked, id=4404, stack(0x00007fbcb56dc000,0x00007fbcb57dd000)]
      0x00007fbc68014000 JavaThread "Thread-85" [_thread_in_native, id=4322, stack(0x00007fbcb54da000,0x00007fbcb55db000)]
      0x00007fbc68013000 JavaThread "Thread-86" [_thread_blocked, id=4321, stack(0x00007fbcb55db000,0x00007fbcb56dc000)]
      0x00007fbc6801d000 JavaThread "Thread-79" [_thread_in_native, id=4308, stack(0x00007fbcb68f2000,0x00007fbcb69f3000)]
      0x00007fbc68001000 JavaThread "Thread-80" [_thread_blocked, id=4307, stack(0x00007fbcb69f3000,0x00007fbcb6af4000)]
      0x00007fbc68010800 JavaThread "Thread-41" [_thread_in_native, id=3373, stack(0x00007fbcb5be1000,0x00007fbcb5ce2000)]
      0x00007fbc6800f800 JavaThread "Thread-42" [_thread_blocked, id=3372, stack(0x00007fbcb5ae0000,0x00007fbcb5be1000)]
      0x00007fbc6800e800 JavaThread "Thread-36" [_thread_in_native, id=3343, stack(0x00007fbcb5de3000,0x00007fbcb5ee4000)]
      0x00007fbc6800d800 JavaThread "Thread-37" [_thread_blocked, id=3342, stack(0x00007fbcb5ce2000,0x00007fbcb5de3000)]
      0x00007fbc6800c800 JavaThread "Thread-28" [_thread_in_native, id=3325, stack(0x00007fbcb5ee4000,0x00007fbcb5fe5000)]
      0x00007fbc6800b800 JavaThread "Thread-29" [_thread_blocked, id=3324, stack(0x00007fbcb5fe5000,0x00007fbcb60e6000)]
      0x00007fbc6800a000 JavaThread "Thread-19" [_thread_in_native, id=3214, stack(0x00007fbcb60e6000,0x00007fbcb61e7000)]
      0x00007fbc68008800 JavaThread "Thread-20" [_thread_blocked, id=3213, stack(0x00007fbcb61e7000,0x00007fbcb62e8000)]
      0x00007fbc68007800 JavaThread "Thread-17" [_thread_in_native, id=3211, stack(0x00007fbcb62e8000,0x00007fbcb63e9000)]
      0x00007fbc68006800 JavaThread "Thread-18" [_thread_blocked, id=3210, stack(0x00007fbcb63e9000,0x00007fbcb64ea000)]
      0x00007fbc68003000 JavaThread "Thread-11" [_thread_in_native, id=3190, stack(0x00007fbcb67f1000,0x00007fbcb68f2000)]
      0x00007fbc68002000 JavaThread "Thread-12" [_thread_blocked, id=3189, stack(0x00007fbcb64ea000,0x00007fbcb65eb000)]
      0x00007fbc74005800 JavaThread "Thread-5" [_thread_in_native, id=3162, stack(0x00007fbcb6af4000,0x00007fbcb6bf5000)]
      0x00007fbc74004000 JavaThread "Thread-1" [_thread_blocked, id=3161, stack(0x00007fbcb6bf5000,0x00007fbcb6cf6000)]
      0x00007fbc7800e800 JavaThread "Thread-3" [_thread_in_native, id=3160, stack(0x00007fbcb6cf6000,0x00007fbcb6df7000)]
      0x00007fbc7800d000 JavaThread "Thread-4" [_thread_blocked, id=3159, stack(0x00007fbcb6df7000,0x00007fbcb6ef8000)]
      0x00007fbcc4007800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3135, stack(0x00007fbcc8160000,0x00007fbcc8261000)]
      0x00007fbcc4625800 JavaThread "Thread-2" [_thread_in_native, id=3149, stack(0x00007fbcb6ef8000,0x00007fbcb6ff9000)]
      0x00007fbcc4619800 JavaThread "Thread-0" [_thread_blocked, id=3148, stack(0x00007fbcb6ff9000,0x00007fbcb70fa000)]
      0x00007fbcc40ea000 JavaThread "Service Thread" daemon [_thread_blocked, id=3146, stack(0x00007fbcb7afb000,0x00007fbcb7bfc000)]
    =>0x00007fbcc40e7800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=3145, stack(0x00007fbcb7bfc000,0x00007fbcb7cfd000)]
      0x00007fbcc40e4800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3144, stack(0x00007fbcb7cfd000,0x00007fbcb7dfe000)]
      0x00007fbcc40e2800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3143, stack(0x00007fbcb7dfe000,0x00007fbcb7eff000)]
      0x00007fbcc4099000 JavaThread "Finalizer" daemon [_thread_blocked, id=3142, stack(0x00007fbcb7eff000,0x00007fbcb8000000)]
      0x00007fbcc4096800 JavaThread "Reference Handler" daemon [_thread_blocked, id=3141, stack(0x00007fbcbc0ef000,0x00007fbcbc1f0000)]
    Other Threads:
      0x00007fbcc408f800 VMThread [stack: 0x00007fbcbc1f0000,0x00007fbcbc2f1000] [id=3140]
      0x00007fbcc40f4800 WatcherThread [stack: 0x00007fbcb79fa000,0x00007fbcb7afb000] [id=3147]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    PSYoungGen      total 108032K, used 64372K [0x00000000eaab0000, 0x00000000f53b0000, 0x0000000100000000)
      eden space 100224K, 63% used [0x00000000eaab0000,0x00000000ee8dd1b8,0x00000000f0c90000)
      from space 7808K, 9% used [0x00000000f0c90000,0x00000000f0d40000,0x00000000f1430000)
      to   space 7552K, 0% used [0x00000000f4c50000,0x00000000f4c50000,0x00000000f53b0000)
    ParOldGen       total 29952K, used 15594K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 52% used [0x00000000c0000000,0x00000000c0f3a848,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6931K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4c4c10,0x00000000bc2c0000)
    Card table byte_map: [0x00007fbcc0574000,0x00007fbcc079e000] byte_map_base: 0x00007fbcbff9d000
    Polling page: 0x00007fbcc91ab000
    Code Cache  [0x00007fbcc079e000, 0x00007fbcc0a0e000, 0x00007fbcc379e000)
    total_blobs=549 nmethods=296 adapters=205 free_code_cache=47745Kb largest_free_block=48842112
    Compilation events (10 events):
    Event: 5283.138 Thread 0x00007fbcc40e4800 nmethod 293 0x00007fbcc08e5950 code [0x00007fbcc08e5a80, 0x00007fbcc08e5af8]
    Event: 5447.824 Thread 0x00007fbcc40e7800  294             Main.GameObject::aiGetMovementPath (1009 bytes)
    Event: 5447.912 Thread 0x00007fbcc40e7800 nmethod 294 0x00007fbcc0901610 code [0x00007fbcc0901a00, 0x00007fbcc0903d70]
    Event: 5481.887 Thread 0x00007fbcc40e4800  295             Main.GameObject::aiGetTargetInRange (212 bytes)
    Event: 5481.896 Thread 0x00007fbcc40e4800 nmethod 295 0x00007fbcc08e5f90 code [0x00007fbcc08e61c0, 0x00007fbcc08e68f0]
    Event: 5536.215 Thread 0x00007fbcc40e7800  296             Main.GameObject::getBestPath (333 bytes)
    Event: 5536.245 Thread 0x00007fbcc40e7800 nmethod 296 0x00007fbcc0906950 code [0x00007fbcc0906c20, 0x00007fbcc0908190]
    Event: 5553.050 Thread 0x00007fbcc40e4800  297             IsoInfo.Main.Unit::canMove (58 bytes)
    Event: 5553.051 Thread 0x00007fbcc40e4800 nmethod 297 0x00007fbcc08e77d0 code [0x00007fbcc08e7920, 0x00007fbcc08e7a78]
    Event: 5652.525 Thread 0x00007fbcc40e7800  298             Main.GameObject::aiMoveUnit (1510 bytes)
    GC Heap History (10 events):
    Event: 907.123 GC heap before
    {Heap before GC invocations=8 (full 1):
    PSYoungGen      total 39808K, used 32448K [0x00000000eaab0000, 0x00000000eda10000, 0x0000000100000000)
      eden space 31936K, 100% used [0x00000000eaab0000,0x00000000ec9e0000,0x00000000ec9e0000)
      from space 7872K, 6% used [0x00000000ed1e0000,0x00000000ed260000,0x00000000ed990000)
      to   space 8192K, 0% used [0x00000000ec9e0000,0x00000000ec9e0000,0x00000000ed1e0000)
    ParOldGen       total 29952K, used 15297K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0ef0798,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6721K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 31% used [0x00000000bae00000,0x00000000bb4904f8,0x00000000bc2c0000)
    Event: 907.125 GC heap after
    Heap after GC invocations=8 (full 1):
    PSYoungGen      total 40128K, used 768K [0x00000000eaab0000, 0x00000000ef8d0000, 0x0000000100000000)
      eden space 31936K, 0% used [0x00000000eaab0000,0x00000000eaab0000,0x00000000ec9e0000)
      from space 8192K, 9% used [0x00000000ec9e0000,0x00000000ecaa0000,0x00000000ed1e0000)
      to   space 8256K, 0% used [0x00000000ef0c0000,0x00000000ef0c0000,0x00000000ef8d0000)
    ParOldGen       total 29952K, used 15297K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0ef0798,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6721K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 31% used [0x00000000bae00000,0x00000000bb4904f8,0x00000000bc2c0000)
    Event: 1532.671 GC heap before
    {Heap before GC invocations=9 (full 1):
    PSYoungGen      total 40128K, used 32704K [0x00000000eaab0000, 0x00000000ef8d0000, 0x0000000100000000)
      eden space 31936K, 100% used [0x00000000eaab0000,0x00000000ec9e0000,0x00000000ec9e0000)
      from space 8192K, 9% used [0x00000000ec9e0000,0x00000000ecaa0000,0x00000000ed1e0000)
      to   space 8256K, 0% used [0x00000000ef0c0000,0x00000000ef0c0000,0x00000000ef8d0000)
    ParOldGen       total 29952K, used 15297K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0ef0798,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6764K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 31% used [0x00000000bae00000,0x00000000bb49b0d0,0x00000000bc2c0000)
    Event: 1532.674 GC heap after
    Heap after GC invocations=9 (full 1):
    PSYoungGen      total 71232K, used 640K [0x00000000eaab0000, 0x00000000ef870000, 0x0000000100000000)
      eden space 63360K, 0% used [0x00000000eaab0000,0x00000000eaab0000,0x00000000ee890000)
      from space 7872K, 8% used [0x00000000ef0c0000,0x00000000ef160000,0x00000000ef870000)
      to   space 8128K, 0% used [0x00000000ee890000,0x00000000ee890000,0x00000000ef080000)
    ParOldGen       total 29952K, used 15297K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0ef0798,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6764K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 31% used [0x00000000bae00000,0x00000000bb49b0d0,0x00000000bc2c0000)
    Event: 2415.833 GC heap before
    {Heap before GC invocations=10 (full 1):
    PSYoungGen      total 71232K, used 64000K [0x00000000eaab0000, 0x00000000ef870000, 0x0000000100000000)
      eden space 63360K, 100% used [0x00000000eaab0000,0x00000000ee890000,0x00000000ee890000)
      from space 7872K, 8% used [0x00000000ef0c0000,0x00000000ef160000,0x00000000ef870000)
      to   space 8128K, 0% used [0x00000000ee890000,0x00000000ee890000,0x00000000ef080000)
    ParOldGen       total 29952K, used 15297K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0ef0798,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6811K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4a6d00,0x00000000bc2c0000)
    Event: 2415.834 GC heap after
    Heap after GC invocations=10 (full 1):
    PSYoungGen      total 71488K, used 960K [0x00000000eaab0000, 0x00000000f1c60000, 0x0000000100000000)
      eden space 63360K, 0% used [0x00000000eaab0000,0x00000000eaab0000,0x00000000ee890000)
      from space 8128K, 11% used [0x00000000ee890000,0x00000000ee980000,0x00000000ef080000)
      to   space 7936K, 0% used [0x00000000f14a0000,0x00000000f14a0000,0x00000000f1c60000)
    ParOldGen       total 29952K, used 15393K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0f087e8,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6811K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4a6d00,0x00000000bc2c0000)
    Event: 3564.860 GC heap before
    {Heap before GC invocations=11 (full 1):
    PSYoungGen      total 71488K, used 64320K [0x00000000eaab0000, 0x00000000f1c60000, 0x0000000100000000)
      eden space 63360K, 100% used [0x00000000eaab0000,0x00000000ee890000,0x00000000ee890000)
      from space 8128K, 11% used [0x00000000ee890000,0x00000000ee980000,0x00000000ef080000)
      to   space 7936K, 0% used [0x00000000f14a0000,0x00000000f14a0000,0x00000000f1c60000)
    ParOldGen       total 29952K, used 15393K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0f087e8,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6848K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4b0338,0x00000000bc2c0000)
    Event: 3564.862 GC heap after
    Heap after GC invocations=11 (full 1):
    PSYoungGen      total 107584K, used 576K [0x00000000eaab0000, 0x00000000f1bd0000, 0x0000000100000000)
      eden space 100224K, 0% used [0x00000000eaab0000,0x00000000eaab0000,0x00000000f0c90000)
      from space 7360K, 7% used [0x00000000f14a0000,0x00000000f1530000,0x00000000f1bd0000)
      to   space 7808K, 0% used [0x00000000f0c90000,0x00000000f0c90000,0x00000000f1430000)
    ParOldGen       total 29952K, used 15562K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0f32848,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6848K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4b0338,0x00000000bc2c0000)
    Event: 4661.819 GC heap before
    {Heap before GC invocations=12 (full 1):
    PSYoungGen      total 107584K, used 100800K [0x00000000eaab0000, 0x00000000f1bd0000, 0x0000000100000000)
      eden space 100224K, 100% used [0x00000000eaab0000,0x00000000f0c90000,0x00000000f0c90000)
      from space 7360K, 7% used [0x00000000f14a0000,0x00000000f1530000,0x00000000f1bd0000)
      to   space 7808K, 0% used [0x00000000f0c90000,0x00000000f0c90000,0x00000000f1430000)
    ParOldGen       total 29952K, used 15562K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 51% used [0x00000000c0000000,0x00000000c0f32848,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6868K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4b53c8,0x00000000bc2c0000)
    Event: 4661.820 GC heap after
    Heap after GC invocations=12 (full 1):
    PSYoungGen      total 108032K, used 704K [0x00000000eaab0000, 0x00000000f53b0000, 0x0000000100000000)
      eden space 100224K, 0% used [0x00000000eaab0000,0x00000000eaab0000,0x00000000f0c90000)
      from space 7808K, 9% used [0x00000000f0c90000,0x00000000f0d40000,0x00000000f1430000)
      to   space 7552K, 0% used [0x00000000f4c50000,0x00000000f4c50000,0x00000000f53b0000)
    ParOldGen       total 29952K, used 15594K [0x00000000c0000000, 0x00000000c1d40000, 0x00000000eaab0000)
      object space 29952K, 52% used [0x00000000c0000000,0x00000000c0f3a848,0x00000000c1d40000)
    PSPermGen       total 21248K, used 6868K [0x00000000bae00000, 0x00000000bc2c0000, 0x00000000c0000000)
      object space 21248K, 32% used [0x00000000bae00000,0x00000000bb4b53c8,0x00000000bc2c0000)
    Deoptimization events (10 events):
    Event: 1030.601 Thread 0x00007fbcc4619800 Uncommon trap -34 fr.pc 0x00007fbcc0863418
    Event: 1175.846 Thread 0x00007fbcc4619800 Uncommon trap -34 fr.pc 0x00007fbcc0863418
    Event: 1182.839 Thread 0x00007fbcc4619800 Uncommon trap -34 fr.pc 0x00007fbcc0863418
    Event: 1297.158 Thread 0x00007fbcc4619800 Uncommon trap -122 fr.pc 0x00007fbcc0851b3c
    Event: 1665.442 Thread 0x00007fbcc4619800 Uncommon trap -83 fr.pc 0x00007fbcc08a20fc
    Event: 1665.442 Thread 0x00007fbcc4619800 Uncommon trap -83 fr.pc 0x00007fbcc0881eb4
    Event: 1682.396 Thread 0x00007fbcc4619800 Uncommon trap -83 fr.pc 0x00007fbcc086908c
    Event: 1800.266 Thread 0x00007fbcc4619800 Uncommon trap -83 fr.pc 0x00007fbcc085da7c
    Event: 2579.579 Thread 0x00007fbcc4619800 Uncommon trap -12 fr.pc 0x00007fbcc08b2584
    Event: 4892.024 Thread 0x00007fbcc4619800 Uncommon trap -12 fr.pc 0x00007fbcc08b7598
    Internal exceptions (10 events):
    Event: 135.214 Thread 0x00007fbcc4619800 Threw 0x00000000eaf84e08 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 135.215 Thread 0x00007fbcc4619800 Threw 0x00000000eafed3c8 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 263.679 Thread 0x00007fbcc4619800 Threw 0x00000000eb855ba8 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 769.972 Thread 0x00007fbcc4619800 Threw 0x00000000ebe42428 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 769.973 Thread 0x00007fbcc4619800 Threw 0x00000000ebe46b98 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 1297.157 Thread 0x00007fbcc4619800 Threw 0x00000000ebdad4e0 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 1665.441 Thread 0x00007fbcc4619800 Threw 0x00000000eb8d6848 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jvm.cpp:1166
    Event: 2400.274 Thread 0x00007fbc68014000 Threw 0x00000000eabbec48 at /HUDSON/workspace/jdk7u6-2-build-linux-amd64-product/jdk7u6/hotspot/src/share/vm/prims/jni.cpp:742
    Event: 2579.579 Thread 0x00007fbcc4619800 Implicit null exception at 0x00007fbcc08b11b6 to 0x00007fbcc08b2571
    Event: 4892.024 Thread 0x00007fbcc4619800 Implicit null exception at 0x00007fbcc08b621a to 0x00007fbcc08b7585
    Events (10 events):
    Event: 4948.484 Thread 0x00007fbc74265000 Thread added: 0x00007fbc74265000
    Event: 4948.484 Thread 0x00007fbc7426b800 Thread added: 0x00007fbc7426b800
    Event: 4948.616 Executing VM operation: RevokeBias
    Event: 4948.616 Executing VM operation: RevokeBias done
    Event: 4948.616 Thread 0x00007fbc7426b800 Thread exited: 0x00007fbc7426b800
    Event: 4948.622 Executing VM operation: RevokeBias
    Event: 4948.622 Executing VM operation: RevokeBias done
    Event: 4948.622 Thread 0x00007fbc74265000 Thread exited: 0x00007fbc74265000
    Event: 5481.896 Thread 0x00007fbcc40e4800 flushing nmethod 0x00007fbcc0851690
    Event: 5536.245 Thread 0x00007fbcc40e7800 flushing nmethod 0x00007fbcc0862510
    Dynamic libraries:
    00400000-00401000 r-xp 00000000 08:02 658256                             /usr/java/jre1.7.0_06/bin/java
    00600000-00601000 rw-p 00000000 08:02 658256                             /usr/java/jre1.7.0_06/bin/java
    01ae6000-01b07000 rw-p 00000000 00:00 0                                  [heap]
    bae00000-bc2c0000 rw-p 00000000 00:00 0
    bc2c0000-c0000000 rw-p 00000000 00:00 0
    c0000000-c1d40000 rw-p 00000000 00:00 0
    c1d40000-eaab0000 rw-p 00000000 00:00 0
    eaab0000-f53b0000 rw-p 00000000 00:00 0
    f53b0000-100000000 rw-p 00000000 00:00 0
    3647c00000-3647c20000 r-xp 00000000 08:06 343                            /lib64/ld-2.12.so
    3647e1f000-3647e20000 r--p 0001f000 08:06 343                            /lib64/ld-2.12.so
    3647e20000-3647e21000 rw-p 00020000 08:06 343                            /lib64/ld-2.12.so
    3647e21000-3647e22000 rw-p 00000000 00:00 0
    3648000000-364818a000 r-xp 00000000 08:06 344                            /lib64/libc-2.12.so
    364818a000-3648389000 ---p 0018a000 08:06 344                            /lib64/libc-2.12.so
    3648389000-364838d000 r--p 00189000 08:06 344                            /lib64/libc-2.12.so
    364838d000-364838e000 rw-p 0018d000 08:06 344                            /lib64/libc-2.12.so
    364838e000-3648393000 rw-p 00000000 00:00 0
    3648400000-3648483000 r-xp 00000000 08:06 348                            /lib64/libm-2.12.so
    3648483000-3648682000 ---p 00083000 08:06 348                            /lib64/libm-2.12.so
    3648682000-3648683000 r--p 00082000 08:06 348                            /lib64/libm-2.12.so
    3648683000-3648684000 rw-p 00083000 08:06 348                            /lib64/libm-2.12.so
    3648800000-3648802000 r-xp 00000000 08:06 351                            /lib64/libdl-2.12.so
    3648802000-3648a02000 ---p 00002000 08:06 351                            /lib64/libdl-2.12.so
    3648a02000-3648a03000 r--p 00002000 08:06 351                            /lib64/libdl-2.12.so
    3648a03000-3648a04000 rw-p 00003000 08:06 351                            /lib64/libdl-2.12.so
    3648c00000-3648c17000 r-xp 00000000 08:06 345                            /lib64/libpthread-2.12.so
    3648c17000-3648e17000 ---p 00017000 08:06 345                            /lib64/libpthread-2.12.so
    3648e17000-3648e18000 r--p 00017000 08:06 345                            /lib64/libpthread-2.12.so
    3648e18000-3648e19000 rw-p 00018000 08:06 345                            /lib64/libpthread-2.12.so
    3648e19000-3648e1d000 rw-p 00000000 00:00 0
    3649400000-3649407000 r-xp 00000000 08:06 352                            /lib64/librt-2.12.so
    3649407000-3649606000 ---p 00007000 08:06 352                            /lib64/librt-2.12.so
    3649606000-3649607000 r--p 00006000 08:06 352                            /lib64/librt-2.12.so
    3649607000-3649608000 rw-p 00007000 08:06 352                            /lib64/librt-2.12.so
    364a000000-364a016000 r-xp 00000000 08:06 386                            /lib64/libresolv-2.12.so
    364a016000-364a216000 ---p 00016000 08:06 386                            /lib64/libresolv-2.12.so
    364a216000-364a217000 r--p 00016000 08:06 386                            /lib64/libresolv-2.12.so
    364a217000-364a218000 rw-p 00017000 08:06 386                            /lib64/libresolv-2.12.so
    364a218000-364a21a000 rw-p 00000000 00:00 0
    7fbc34000000-7fbc34021000 rw-p 00000000 00:00 0
    7fbc34021000-7fbc38000000 ---p 00000000 00:00 0
    7fbc38000000-7fbc38021000 rw-p 00000000 00:00 0
    7fbc38021000-7fbc3c000000 ---p 00000000 00:00 0
    7fbc3c000000-7fbc3c021000 rw-p 00000000 00:00 0
    7fbc3c021000-7fbc40000000 ---p 00000000 00:00 0
    7fbc40000000-7fbc40021000 rw-p 00000000 00:00 0
    7fbc40021000-7fbc44000000 ---p 00000000 00:00 0
    7fbc44000000-7fbc44021000 rw-p 00000000 00:00 0
    7fbc44021000-7fbc48000000 ---p 00000000 00:00 0
    7fbc48000000-7fbc48021000 rw-p 00000000 00:00 0
    7fbc48021000-7fbc4c000000 ---p 00000000 00:00 0
    7fbc4c000000-7fbc4c021000 rw-p 00000000 00:00 0
    7fbc4c021000-7fbc50000000 ---p 00000000 00:00 0
    7fbc50000000-7fbc50021000 rw-p 00000000 00:00 0
    7fbc50021000-7fbc54000000 ---p 00000000 00:00 0
    7fbc54000000-7fbc54040000 rw-p 00000000 00:00 0
    7fbc54040000-7fbc58000000 ---p 00000000 00:00 0
    7fbc58000000-7fbc58021000 rw-p 00000000 00:00 0
    7fbc58021000-7fbc5c000000 ---p 00000000 00:00 0
    7fbc5c000000-7fbc5c021000 rw-p 00000000 00:00 0
    7fbc5c021000-7fbc60000000 ---p 00000000 00:00 0
    7fbc60000000-7fbc60021000 rw-p 00000000 00:00 0
    7fbc60021000-7fbc64000000 ---p 00000000 00:00 0
    7fbc64000000-7fbc64021000 rw-p 00000000 00:00 0
    7fbc64021000-7fbc68000000 ---p 00000000 00:00 0
    7fbc68000000-7fbc68024000 rw-p 00000000 00:00 0
    7fbc68024000-7fbc6c000000 ---p 00000000 00:00 0
    7fbc6c000000-7fbc6c021000 rw-p 00000000 00:00 0
    7fbc6c021000-7fbc70000000 ---p 00000000 00:00 0
    7fbc70000000-7fbc70021000 rw-p 00000000 00:00 0
    7fbc70021000-7fbc74000000 ---p 00000000 00:00 0
    7fbc74000000-7fbc7428b000 rw-p 00000000 00:00 0
    7fbc7428b000-7fbc78000000 ---p 00000000 00:00 0
    7fbc78000000-7fbc78021000 rw-p 00000000 00:00 0
    7fbc78021000-7fbc7c000000 ---p 00000000 00:00 0
    7fbc7c000000-7fbc7c021000 rw-p 00000000 00:00 0
    7fbc7c021000-7fbc80000000 ---p 00000000 00:00 0
    7fbc80000000-7fbc80021000 rw-p 00000000 00:00 0
    7fbc80021000-7fbc84000000 ---p 00000000 00:00 0
    7fbc84000000-7fbc84a1b000 rw-p 00000000 00:00 0
    7fbc84a1b000-7fbc88000000 ---p 00000000 00:00 0
    7fbc88000000-7fbc8a3cf000 rw-p 00000000 00:00 0
    7fbc8a3cf000-7fbc8c000000 ---p 00000000 00:00 0
    7fbc8c000000-7fbc8c021000 rw-p 00000000 00:00 0
    7fbc8c021000-7fbc90000000 ---p 00000000 00:00 0
    7fbc92170000-7fbc98000000 r--p 00000000 08:02 796195                     /usr/lib/locale/locale-archive
    7fbc98000000-7fbc98021000 rw-p 00000000 00:00 0
    7fbc98021000-7fbc9c000000 ---p 00000000 00:00 0
    7fbc9c000000-7fbc9c021000 rw-p 00000000 00:00 0
    7fbc9c021000-7fbca0000000 ---p 00000000 00:00 0
    7fbca0000000-7fbca0021000 rw-p 00000000 00:00 0
    7fbca0021000-7fbca4000000 ---p 00000000 00:00 0
    7fbca4000000-7fbca4021000 rw-p 00000000 00:00 0
    7fbca4021000-7fbca8000000 ---p 00000000 00:00 0
    7fbca8000000-7fbca8021000 rw-p 00000000 00:00 0
    7fbca8021000-7fbcac000000 ---p 00000000 00:00 0
    7fbcb0000000-7fbcb0021000 rw-p 00000000 00:00 0
    7fbcb0021000-7fbcb4000000 ---p 00000000 00:00 0
    7fbcb50d6000-7fbcb50d9000 ---p 00000000 00:00 0
    7fbcb50d9000-7fbcb51d7000 rw-p 00000000 00:00 0
    7fbcb51d7000-7fbcb51da000 ---p 00000000 00:00 0
    7fbcb51da000-7fbcb52d8000 rw-p 00000000 00:00 0
    7fbcb52d8000-7fbcb52db000 ---p 00000000 00:00 0
    7fbcb52db000-7fbcb53d9000 rw-p 00000000 00:00 0
    7fbcb53d9000-7fbcb53dc000 ---p 00000000 00:00 0
    7fbcb53dc000-7fbcb54da000 rw-p 00000000 00:00 0
    7fbcb54da000-7fbcb54dd000 ---p 00000000 00:00 0
    7fbcb54dd000-7fbcb55db000 rw-p 00000000 00:00 0
    7fbcb55db000-7fbcb55de000 ---p 00000000 00:00 0
    7fbcb55de000-7fbcb56dc000 rw-p 00000000 00:00 0
    7fbcb56dc000-7fbcb56df000 ---p 00000000 00:00 0
    7fbcb56df000-7fbcb57dd000 rw-p 00000000 00:00 0
    7fbcb57dd000-7fbcb57e0000 ---p 00000000 00:00 0
    7fbcb57e0000-7fbcb58de000 rw-p 00000000 00:00 0
    7fbcb58de000-7fbcb58e1000 ---p 00000000 00:00 0
    7fbcb58e1000-7fbcb59df000 rw-p 00000000 00:00 0
    7fbcb59df000-7fbcb59e2000 ---p 00000000 00:00 0
    7fbcb59e2000-7fbcb5ae0000 rw-p 00000000 00:00 0
    7fbcb5ae0000-7fbcb5ae3000 ---p 00000000 00:00 0
    7fbcb5ae3000-7fbcb5be1000 rw-p 00000000 00:00 0
    7fbcb5be1000-7fbcb5be4000 ---p 00000000 00:00 0
    7fbcb5be4000-7fbcb5ce2000 rw-p 00000000 00:00 0
    7fbcb5ce2000-7fbcb5ce5000 ---p 00000000 00:00 0
    7fbcb5ce5000-7fbcb5de3000 rw-p 00000000 00:00 0
    7fbcb5de3000-7fbcb5de6000 ---p 00000000 00:00 0
    7fbcb5de6000-7fbcb5ee4000 rw-p 00000000 00:00 0
    7fbcb5ee4000-7fbcb5ee7000 ---p 00000000 00:00 0
    7fbcb5ee7000-7fbcb5fe5000 rw-p 00000000 00:00 0
    7fbcb5fe5000-7fbcb5fe8000 ---p 00000000 00:00 0
    7fbcb5fe8000-7fbcb60e6000 rw-p 00000000 00:00 0
    7fbcb60e6000-7fbcb60e9000 ---p 00000000 00:00 0
    7fbcb60e9000-7fbcb61e7000 rw-p 00000000 00:00 0
    7fbcb61e7000-7fbcb61ea000 ---p 00000000 00:00 0
    7fbcb61ea000-7fbcb62e8000 rw-p 00000000 00:00 0
    7fbcb62e8000-7fbcb62eb000 ---p 00000000 00:00 0
    7fbcb62eb000-7fbcb63e9000 rw-p 00000000 00:00 0
    7fbcb63e9000-7fbcb63ec000 ---p 00000000 00:00 0
    7fbcb63ec000-7fbcb64ea000 rw-p 00000000 00:00 0
    7fbcb64ea000-7fbcb64ed000 ---p 00000000 00:00 0
    7fbcb64ed000-7fbcb65eb000 rw-p 00000000 00:00 0
    7fbcb65eb000-7fbcb65f0000 r-xp 00000000 08:06 8064                       /lib64/libnss_dns-2.12.so
    7fbcb65f0000-7fbcb67ef000 ---p 00005000 08:06 8064                       /lib64/libnss_dns-2.12.so
    7fbcb67ef000-7fbcb67f0000 r--p 00004000 08:06 8064                       /lib64/libnss_dns-2.12.so
    7fbcb67f0000-7fbcb67f1000 rw-p 00005000 08:06 8064                       /lib64/libnss_dns-2.12.so
    7fbcb67f1000-7fbcb67f4000 ---p 00000000 00:00 0
    7fbcb67f4000-7fbcb68f2000 rw-p 00000000 00:00 0
    7fbcb68f2000-7fbcb68f5000 ---p 00000000 00:00 0
    7fbcb68f5000-7fbcb69f3000 rw-p 00000000 00:00 0
    7fbcb69f3000-7fbcb69f6000 ---p 00000000 00:00 0
    7fbcb69f6000-7fbcb6af4000 rw-p 00000000 00:00 0
    7fbcb6af4000-7fbcb6af7000 ---p 00000000 00:00 0
    7fbcb6af7000-7fbcb6bf5000 rw-p 00000000 00:00 0
    7fbcb6bf5000-7fbcb6bf8000 ---p 00000000 00:00 0
    7fbcb6bf8000-7fbcb6cf6000 rw-p 00000000 00:00 0
    7fbcb6cf6000-7fbcb6cf9000 ---p 00000000 00:00 0
    7fbcb6cf9000-7fbcb6df7000 rw-p 00000000 00:00 0
    7fbcb6df7000-7fbcb6dfa000 ---p 00000000 00:00 0
    7fbcb6dfa000-7fbcb6ef8000 rw-p 00000000 00:00 0
    7fbcb6ef8000-7fbcb6efb000 ---p 00000000 00:00 0
    7fbcb6efb000-7fbcb6ff9000 rw-p 00000000 00:00 0
    7fbcb6ff9000-7fbcb6ffc000 ---p 00000000 00:00 0
    7fbcb6ffc000-7fbcb70fa000 rw-p 00000000 00:00 0
    7fbcb70fa000-7fbcb710f000 r-xp 00000000 08:02 658313                     /usr/java/jre1.7.0_06/lib/amd64/libnet.so
    7fbcb710f000-7fbcb730f000 ---p 00015000 08:02 658313                     /usr/java/jre1.7.0_06/lib/amd64/libnet.so
    7fbcb730f000-7fbcb7310000 rw-p 00015000 08:02 658313                     /usr/java/jre1.7.0_06/lib/amd64/libnet.so
    7fbcb7310000-7fbcb7320000 r-xp 00000000 08:02 658314                     /usr/java/jre1.7.0_06/lib/amd64/libnio.so
    7fbcb7320000-7fbcb7520000 ---p 00010000 08:02 658314                     /usr/java/jre1.7.0_06/lib/amd64/libnio.so
    7fbcb7520000-7fbcb7521000 rw-p 00010000 08:02 658314                     /usr/java/jre1.7.0_06/lib/amd64/libnio.so
    7fbcb7521000-7fbcb7527000 r-xp 00000000 08:02 658276                     /usr/java/jre1.7.0_06/lib/amd64/headless/libmawt.so
    7fbcb7527000-7fbcb7727000 ---p 00006000 08:02 658276                     /usr/java/jre1.7.0_06/lib/amd64/headless/libmawt.so
    7fbcb7727000-7fbcb7728000 rw-p 00006000 08:02 658276                     /usr/java/jre1.7.0_06/lib/amd64/headless/libmawt.so
    7fbcb7728000-7fbcb77ca000 r-xp 00000000 08:02 658281                     /usr/java/jre1.7.0_06/lib/amd64/libawt.so
    7fbcb77ca000-7fbcb79ca000 ---p 000a2000 08:02 658281                     /usr/java/jre1.7.0_06/lib/amd64/libawt.so
    7fbcb79ca000-7fbcb79d6000 rw-p 000a2000 08:02 658281                     /usr/java/jre1.7.0_06/lib/amd64/libawt.so
    7fbcb79d6000-7fbcb79fa000 rw-p 00000000 00:00 0
    7fbcb79fa000-7fbcb79fb000 ---p 00000000 00:00 0
    7fbcb79fb000-7fbcb7afb000 rw-p 00000000 00:00 0
    7fbcb7afb000-7fbcb7afe000 ---p 00000000 00:00 0
    7fbcb7afe000-7fbcb7bfc000 rw-p 00000000 00:00 0
    7fbcb7bfc000-7fbcb7bff000 ---p 00000000 00:00 0
    7fbcb7bff000-7fbcb7cfd000 rw-p 00000000 00:00 0
    7fbcb7cfd000-7fbcb7d00000 ---p 00000000 00:00 0
    7fbcb7d00000-7fbcb7dfe000 rw-p 00000000 00:00 0
    7fbcb7dfe000-7fbcb7e01000 ---p 00000000 00:00 0
    7fbcb7e01000-7fbcb7eff000 rw-p 00000000 00:00 0
    7fbcb7eff000-7fbcb7f02000 ---p 00000000 00:00 0
    7fbcb7f02000-7fbcb8000000 rw-p 00000000 00:00 0
    7fbcb8000000-7fbcb8021000 rw-p 00000000 00:00 0
    7fbcb8021000-7fbcbc000000 ---p 00000000 00:00 0
    7fbcbc0ef000-7fbcbc0f2000 ---p 00000000 00:00 0
    7fbcbc0f2000-7fbcbc1f0000 rw-p 00000000 00:00 0
    7fbcbc1f0000-7fbcbc1f1000 ---p 00000000 00:00 0
    7fbcbc1f1000-7fbcbd31a000 rw-p 00000000 00:00 0
    7fbcbd31a000-7fbcbd4e6000 r--s 01665000 08:02 658895                     /usr/java/jre1.7.0_06/lib/rt.jar
    7fbcbd4e6000-7fbcc001a000 rw-p 00000000 00:00 0
    7fbcc001a000-7fbcc001b000 ---p 00000000 00:00 0
    7fbcc001b000-7fbcc011b000 rw-p 00000000 00:00 0
    7fbcc011b000-7fbcc011c000 ---p 00000000 00:00 0
    7fbcc011c000-7fbcc021c000 rw-p 00000000 00:00 0
    7fbcc021c000-7fbcc021d000 ---p 00000000 00:00 0
    7fbcc021d000-7fbcc031d000 rw-p 00000000 00:00 0
    7fbcc031d000-7fbcc031e000 ---p 00000000 00:00 0
    7fbcc031e000-7fbcc042d000 rw-p 00000000 00:00 0
    7fbcc042d000-7fbcc0574000 rw-p 00000000 00:00 0
    7fbcc0574000-7fbcc057f000 rw-p 00000000 00:00 0
    7fbcc057f000-7fbcc059d000 rw-p 00000000 00:00 0
    7fbcc059d000-7fbcc05ac000 rw-p 00000000 00:00 0
    7fbcc05ac000-7fbcc06f2000 rw-p 00000000 00:00 0
    7fbcc06f2000-7fbcc0747000 rw-p 00000000 00:00 0
    7fbcc0747000-7fbcc079d000 rw-p 00000000 00:00 0
    7fbcc079d000-7fbcc079e000 rw-p 00000000 00:00 0
    7fbcc079e000-7fbcc0a0e000 rwxp 00000000 00:00 0
    7fbcc0a0e000-7fbcc379e000 rw-p 00000000 00:00 0
    7fbcc379e000-7fbcc37b8000 r-xp 00000000 08:02 658325                     /usr/java/jre1.7.0_06/lib/amd64/libzip.so
    7fbcc37b8000-7fbcc39b8000 ---p 0001a000 08:02 658325                     /usr/java/jre1.7.0_06/lib/amd64/libzip.so
    7fbcc39b8000-7fbcc39b9000 rw-p 0001a000 08:02 658325                     /usr/java/jre1.7.0_06/lib/amd64/libzip.so
    7fbcc39b9000-7fbcc39c5000 r-xp 00000000 08:06 8068                       /lib64/libnss_files-2.12.so
    7fbcc39c5000-7fbcc3bc5000 ---p 0000c000 08:06 8068                       /lib64/libnss_files-2.12.so
    7fbcc3bc5000-7fbcc3bc6000 r--p 0000c000 08:06 8068                       /lib64/libnss_files-2.12.so
    7fbcc3bc6000-7fbcc3bc7000 rw-p 0000d000 08:06 8068                       /lib64/libnss_files-2.12.so
    7fbcc3bc7000-7fbcc3bf0000 r-xp 00000000 08:02 658295                     /usr/java/jre1.7.0_06/lib/amd64/libjava.so
    7fbcc3bf0000-7fbcc3df0000 ---p 00029000 08:02 658295                     /usr/java/jre1.7.0_06/lib/amd64/libjava.so
    7fbcc3df0000-7fbcc3df2000 rw-p 00029000 08:02 658295                     /usr/java/jre1.7.0_06/lib/amd64/libjava.so
    7fbcc3df2000-7fbcc3dff000 r-xp 00000000 08:02 658324                     /usr/java/jre1.7.0_06/lib/amd64/libverify.so
    7fbcc3dff000-7fbcc3ffe000 ---p 0000d000 08:02 658324                     /usr/java/jre1.7.0_06/lib/amd64/libverify.so
    7fbcc3ffe000-7fbcc4000000 rw-p 0000c000 08:02 658324                     /usr/java/jre1.7.0_06/lib/amd64/libverify.so
    7fbcc4000000-7fbcc462c000 rw-p 00000000 00:00 0
    7fbcc462c000-7fbcc8000000 ---p 00000000 00:00 0
    7fbcc803d000-7fbcc804f000 r--s 000d8000 08:08 21758031                   /home/jesse/isoserver/IsoServer.jar
    7fbcc804f000-7fbcc8082000 rw-p 00000000 00:00 0
    7fbcc8082000-7fbcc80a0000 rw-p 00000000 00:00 0
    7fbcc80a0000-7fbcc80aa000 rw-p 00000000 00:00 0
    7fbcc80aa000-7fbcc8160000 rw-p 00000000 00:00 0
    7fbcc8160000-7fbcc8163000 ---p 00000000 00:00 0
    7fbcc8163000-7fbcc8261000 rw-p 00000000 00:00 0
    7fbcc8261000-7fbcc8ca8000 r-xp 00000000 08:02 658329                     /usr/java/jre1.7.0_06/lib/amd64/server/libjvm.so
    7fbcc8ca8000-7fbcc8ea7000 ---p 00a47000 08:02 658329                     /usr/java/jre1.7.0_06/lib/amd64/server/libjvm.so
    7fbcc8ea7000-7fbcc8f4a000 rw-p 00a46000 08:02 658329                     /usr/java/jre1.7.0_06/lib/amd64/server/libjvm.so
    7fbcc8f4a000-7fbcc8f89000 rw-p 00000000 00:00 0
    7fbcc8f89000-7fbcc8f9f000 r-xp 00000000 08:02 658278                     /usr/java/jre1.7.0_06/lib/amd64/jli/libjli.so
    7fbcc8f9f000-7fbcc919e000 ---p 00016000 08:02 658278                     /usr/java/jre1.7.0_06/lib/amd64/jli/libjli.so
    7fbcc919e000-7fbcc919f000 rw-p 00015000 08:02 658278                     /usr/java/jre1.7.0_06/lib/amd64/jli/libjli.so
    7fbcc919f000-7fbcc91a0000 rw-p 00000000 00:00 0
    7fbcc91a1000-7fbcc91a2000 rw-p 00000000 00:00 0
    7fbcc91a2000-7fbcc91aa000 rw-s 00000000 08:07 292                        /tmp/hsperfdata_root/3126
    7fbcc91aa000-7fbcc91ab000 rw-p 00000000 00:00 0
    7fbcc91ab000-7fbcc91ac000 r--p 00000000 00:00 0
    7fbcc91ac000-7fbcc91ad000 rw-p 00000000 00:00 0
    7fffad99a000-7fffad9af000 rw-p 00000000 00:00 0                          [stack]
    7fffad9ff000-7fffada00000 r-xp 00000000 00:00 0                          [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
    VM Arguments:
    jvm_args: -Xmx1024m
    java_command: Main.IsoServer nogui
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/usr/local/jdk
    CLASSPATH=.:/usr/local/jdk/lib/classes.zip:/usr/local/jdk/lib/mysql-connector-java-5.1.6.jar
    PATH=/usr/local/jdk/bin:/usr/lib64/qt-3.3/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x8a5a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x8a5a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x741b60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x741b60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGXFSZ: [libjvm.so+0x741b60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x741b60], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x7414b0], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGTERM: [libjvm.so+0x743840], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x743840], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    ---------------  S Y S T E M  ---------------
    OS:CentOS release 6.4 (Final)
    uname:Linux 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64
    libc:glibc 2.12 NPTL 2.12
    rlimit: STACK 10240k, CORE 0k, NPROC 15830, NOFILE 1024, AS infinity
    load average:0.08 0.02 0.01
    /proc/meminfo:
    MemTotal:        2045524 kB
    MemFree:           93212 kB
    Buffers:          215936 kB
    Cached:           957604 kB
    SwapCached:         7300 kB
    Active:           977036 kB
    Inactive:         786260 kB
    Active(anon):     338308 kB
    Inactive(anon):   253632 kB
    Active(file):     638728 kB
    Inactive(file):   532628 kB
    Unevictable:           0 kB
    Mlocked:               0 kB
    SwapTotal:       4095992 kB
    SwapFree:        4084172 kB
    Dirty:                20 kB
    Writeback:             0 kB
    AnonPages:        586236 kB
    Mapped:            31028 kB
    Shmem:              2128 kB
    Slab:             133656 kB
    SReclaimable:     102016 kB
    SUnreclaim:        31640 kB
    KernelStack:        2056 kB
    PageTables:        14972 kB
    NFS_Unstable:          0 kB
    Bounce:                0 kB
    WritebackTmp:          0 kB
    CommitLimit:     5118752 kB
    Committed_AS:    2418356 kB
    VmallocTotal:   34359738367 kB
    VmallocUsed:      275704 kB
    VmallocChunk:   34359355248 kB
    HardwareCorrupted:     0 kB
    AnonHugePages:    233472 kB
    HugePages_Total:       0
    HugePages_Free:        0
    HugePages_Rsvd:        0
    HugePages_Surp:        0
    Hugepagesize:       2048 kB
    DirectMap4k:        7744 kB
    DirectMap2M:     2080768 kB
    CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 30 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, tsc, tscinvbit
    /proc/cpuinfo:
    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 30
    model name    : Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
    stepping    : 5
    cpu MHz        : 2800.022
    cache size    : 8192 KB
    physical id    : 0
    siblings    : 4
    core id        : 0
    cpu cores    : 4
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 11
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
    bogomips    : 5600.04
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 36 bits physical, 48 bits virtual
    power management:
    processor    : 1
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 30
    model name    : Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
    stepping    : 5
    cpu MHz        : 2800.022
    cache size    : 8192 KB
    physical id    : 0
    siblings    : 4
    core id        : 1
    cpu cores    : 4
    apicid        : 2
    initial apicid    : 2
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 11
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
    bogomips    : 5599.14
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 36 bits physical, 48 bits virtual
    power management:
    processor    : 2
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 30
    model name    : Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
    stepping    : 5
    cpu MHz        : 2800.022
    cache size    : 8192 KB
    physical id    : 0
    siblings    : 4
    core id        : 2
    cpu cores    : 4
    apicid        : 4
    initial apicid    : 4
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 11
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
    bogomips    : 5599.14
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 36 bits physical, 48 bits virtual
    power management:
    processor    : 3
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 30
    model name    : Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz
    stepping    : 5
    cpu MHz        : 2800.022
    cache size    : 8192 KB
    physical id    : 0
    siblings    : 4
    core id        : 3
    cpu cores    : 4
    apicid        : 6
    initial apicid    : 6
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 11
    wp        : yes
    flags        : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
    bogomips    : 5599.14
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 36 bits physical, 48 bits virtual
    power management:
    Memory: 4k page, physical 2045524k(93212k free), swap 4095992k(4084172k free)
    vm_info: Java HotSpot(TM) 64-Bit Server VM (23.2-b09) for linux-amd64 JRE (1.7.0_06-b24), built on Aug  9 2012 19:49:48 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)
    time: Tue Jun 18 13:37:03 2013
    elapsed time: 5652 seconds

    Hi!
    I've got the jvm crashing when it calls native methods
    via the JNI.
    The same native method run without a glitch in "pure"
    C. So there is no bug in the native method, I suppose.
    What is more interesting
    is that the same java program with the same native
    interface runs fine using gij (from gnu) too!
    $ java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition
    (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed
    mode)
    The native methods are in C. Compiled using gcc.
    $ gcc -v
    Reading specs from
    /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
    Configured with: ../configure --prefix=/usr
    mandir=/usr/share/man infodir=/usr/share/info
    enable-shared enable-threads=posix
    disable-checking host=i386-redhat-linux
    with-system-zlib enable-__cxa_atexit
    Thread model: posix
    gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
    The machine is P4 on Red hat linux 8.0
    $ uname -a
    Linux vanee.mlaproxy.iitk.ac.in 2.4.18-14 #1 Wed Sep 4
    13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
    The error message is
    An unexpected exception has been detected in native
    code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4CDBEDA3
    Function=Java_Medico_Producer_vanee+0x2B3
    Library=/home/asingh/Java/medico/develop/Source/libnati
    elib.so
    Current Java thread:
    at Medico.Producer.vanee(Native Method)
    at Medico.Producer.run(Producer.java:18)
    If you are interested, I can also post the dyanamic
    libraries.
    Any help is appreciated. Please cc me a copy at
    [email protected]
    Thanks,
    Abhishek.Signal 11 is a segmentation fault. If this runs fine in pure C then you may be passing it a null value on the Java side. I am unfamilar with gij, so I don't know what to say about that

  • JVM crash during frequent reading

    In my DB XML application I have the following method:
    public List<String> getDocumentNamesList() throws XmlException {
    List<String> names = new ArrayList<String>();
    String query = "collection('" + CONTAINER_NAME + "')";
    log.debug("XQuery: " + query);
    XmlQueryContext localContext = null;
    XmlQueryExpression qe = null;
    XmlResults results = null;
    XmlTransaction txn = null;
    try {
    localContext = xmlManager.createQueryContext();
    txn = xmlManager.createTransaction();
    qe = xmlManager.prepare(txn, query, localContext);
    results = qe.execute(txn, localContext, documentConfig);
    while(results.hasNext()) {
    names.add(results.next().asDocument().getName());
    txn.commit();
    return names;
    } catch (XmlException e) {
    //exception handling goes here
    } finally {
    if(results != null) results.delete();
    My environment conf is:
    EnvironmentConfig envConf = new EnvironmentConfig();
    envConf.setAllowCreate(true); // If the environment does not
    // exits, create it.
    envConf.setInitializeCache(true); // Turn on the shared memory
    // region.
    envConf.setInitializeLocking(true); // Turn on the locking subsystem.
    envConf.setInitializeLogging(true); // Turn on the logging subsystem.
    envConf.setTransactional(true);
    envConf.setErrorStream(System.out);
    envConf.setRegister(true);
    envConf.setRunRecovery(true);
    log.debug("Opening DB environment at " + envHome.getAbsolutePath());
    env = new Environment(envHome, envConf);
    I'm trying to use Apache Jmeter to simulate a heavy load on my application. My testplan just simulating 5 threads at the same time, each of them executes the above method. When a thread finishes its job, a new thread is launched. After 2-4 minutes of work, the JVM crashes. It crashes on invoking internal XmlResults.hasNext() method.
    I tried DB XML 2.4.13 and 2.4.16 under Windows XP SP3. Also I tried to make the method and container without txn support. Still the same.
    Are there any common pitfalls that I might encounter? Did I provide enough information?
    Am I right that ideally native libraries shouldn't crash in any case, but rather throw appropriate exceptions?
    UPD: there is more specific error which was printed to the console:
    assert failure: ..\..\db-4.6.21\env\env_method.c/607: "f == 0"
    Any pointers are highly appreciated!
    Vyacheslav
    Edited by: detonator413 on Dec 17, 2008 7:11 AM
    Edited by: detonator413 on Dec 17, 2008 8:49 AM

    George,
    actually I delete results objects in the finally clause. But I found one thing which is left from the working project when I process possible deadlocks. It's an infinite while loop. However I rewrote getDocumentNamesList method, but unfortunately the problem persists. Note that the main thread waits until all other threads finish their work, thus the environment is closed when all processing is done.
    Here is a slightly modified method:
        public  List<String> getDocumentNamesList() throws XmlException {
            List<String> returnList = new ArrayList<String>();
            StringBuilder queryBuilder = new StringBuilder("collection('xml_content.dbxml')");
            String metaKey = "prx:revnum";
            String queryPart = "[dbxml:metadata('" + metaKey + "')='-1']";
            queryBuilder.append(queryPart);
            XmlQueryContext localContext = null;
            XmlQueryExpression qe = null;
            XmlResults results;
            XmlTransaction txn;
            try {
                localContext = manager.createQueryContext();
                localContext.setNamespace("prx", "http://tntbase.mathweb.org/ns");
                txn = manager.createTransaction();
                qe = manager.prepare(txn, queryBuilder.toString(), localContext);
                results = qe.execute(txn, localContext, documentConfig);
                while(results.hasNext()) {
                    XmlDocument doc = results.next().asDocument();
                    returnList.add(getWholePathFromDoc(doc));
                results.delete();
                txn.commit();
            } catch (XmlException e) {
                e.printStackTrace();
            } finally {
                if(qe !=null ) {
                    qe.delete();
                if(localContext != null) {
                    localContext.delete();
            return returnList;
    [\code]
    btw, why is code formatting not working?
    Thanks for your help,
    Vyacheslav
    Edited by: detonator413 on Jan 28, 2009 8:19 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Java.lang.Class- getFields() results in JVM crash when called through JNI

    From a C++ application, I use Invocation APIs to create a JVM and call some Java methods using JNI
    I get a crash in jvm.dll with EXCEPTION_ACCESS_VIOLATION
    when I try to call "getFields" method of java.lang.Class in order to get the Fields of the java class
    This method call, should return a java/lang/reflect/Fields[] on success
    I am able to get the method ID of this method by using pEnv->GetMethodID(..)
    However, when I call this method using CallObjectMethod(..), HotSpt JVM crashes with access violation with the dump given below.
    Any clues on how to debug and find the problem?
    Or has anyone tried getting the fields of a Java class from C++ by calling reflection APIs uing JNI?
    Thanks in advance!
    Sample code
    jclass testerClass = pEnv->FindClass("com/test/Tester");
    jmethodID cid = pEnv->GetMethodID(testerClass,"<init>","()V");
    if(NULL == cid)
    pEnv->ExceptionDescribe();
    jobject testerObject = pEnv->NewObjectV(testerClass, mid);
    jmethodID mid = pEnv->GetMethodID(testerClass, "getClass",
                             "()Ljava/lang/Class;");
    jobject clsObj = (jobject)pEnv->CallObjectMethod(testerObject, mid);
    pEnv->ExceptionDescribe();
    jclass      jCls = pEnv->GetObjectClass(clsObj);
    jmethodID midGetFields = pEnv->GetMethodID(jCls, "getFields",
                                            "()[Ljava/lang/reflect/Field;");
    jobjectArray jobjArray = (jobjectArray)pEnv->CallObjectMethod(testerObject, midGetFields);
    pEnv->ExceptionDescribe();
    Crash dump
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x809E69F
    Function=JVM_FindSignal+0x11505
    Library=D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    Current Java thread:
         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
         at java.lang.Class.privateGetPublicFields(Unknown Source)
         at java.lang.Class.getFields(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00419000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JNITester.exe
    0x77F50000 - 0x77FF7000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000      C:\WINDOWS\system32\kernel32.dll
    0x10000000 - 0x10023000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JniUtils.dll
    0x00320000 - 0x00332000      E:\SnmpIpmNativeTestDriver\MTFStubHelper.dll
    0x00340000 - 0x0035B000      E:\SnmpIpmNativeTestDriver\MTFXMLFileAPI.dll
    0x12000000 - 0x122B1000      e:\sc\sc12.1\bin\xerces-c_2_2_0D.dll
    0x77DD0000 - 0x77E5D000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000      C:\WINDOWS\system32\RPCRT4.dll
    0x10200000 - 0x1026C000      e:\sc\sc12.1\bin\MSVCRTD.dll
    0x102A0000 - 0x102B7000      e:\sc\sc12.1\bin\MSVCIRTD.dll
    0x5F800000 - 0x5F8E9000      e:\sc\sc12.1\bin\MFC42uD.DLL
    0x77C70000 - 0x77CB0000      C:\WINDOWS\system32\GDI32.dll
    0x77D40000 - 0x77DCC000      C:\WINDOWS\system32\USER32.dll
    0x5F700000 - 0x5F746000      e:\sc\sc12.1\bin\MFCD42uD.DLL
    0x5F500000 - 0x5F5C6000      e:\sc\sc12.1\bin\MFCO42uD.DLL
    0x10480000 - 0x104FE000      e:\sc\sc12.1\bin\MSVCP60D.dll
    0x15020000 - 0x15042000      e:\sc\sc12.1\bin\SCTraceLib.dll
    0x6D510000 - 0x6D58D000      C:\WINDOWS\System32\dbghelp.dll
    0x77C10000 - 0x77C63000      C:\WINDOWS\system32\msvcrt.dll
    0x77C00000 - 0x77C07000      C:\WINDOWS\system32\VERSION.dll
    0x00360000 - 0x0037D000      e:\sc\sc12.1\bin\SCFileManager.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\System32\PSAPI.DLL
    0x00420000 - 0x00580000      e:\sc\sc12.1\bin\BctCoreCL.dll
    0x5D920000 - 0x5D929000      C:\WINDOWS\System32\RPCNS4.dll
    0x71B20000 - 0x71B31000      C:\WINDOWS\system32\MPR.dll
    0x71C20000 - 0x71C6E000      C:\WINDOWS\System32\NETAPI32.dll
    0x71AB0000 - 0x71AC5000      C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\System32\WS2HELP.dll
    0x15000000 - 0x15012000      e:\sc\sc12.1\bin\CTEventLog.dll
    0x773D0000 - 0x77BC2000      C:\WINDOWS\system32\SHELL32.dll
    0x70A70000 - 0x70AD4000      C:\WINDOWS\system32\SHLWAPI.dll
    0x771B0000 - 0x772D1000      C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771AB000      C:\WINDOWS\system32\OLEAUT32.dll
    0x1F7A0000 - 0x1F7D6000      C:\WINDOWS\System32\ODBC32.dll
    0x77340000 - 0x773CB000      C:\WINDOWS\system32\COMCTL32.dll
    0x763B0000 - 0x763F5000      C:\WINDOWS\system32\comdlg32.dll
    0x08000000 - 0x08138000      D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    0x76B40000 - 0x76B6C000      C:\WINDOWS\System32\WINMM.dll
    0x5FD00000 - 0x5FD0D000      C:\WINDOWS\System32\MFC42LOC.DLL
    0x71950000 - 0x71A34000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x1F840000 - 0x1F857000      C:\WINDOWS\System32\odbcint.dll
    0x5DAC0000 - 0x5DAC7000      C:\WINDOWS\System32\rdpsnd.dll
    0x00FE0000 - 0x00FE7000      D:\Java\j2re1.4.2_03\bin\hpi.dll
    0x01000000 - 0x0100E000      D:\Java\j2re1.4.2_03\bin\verify.dll
    0x01010000 - 0x01029000      D:\Java\j2re1.4.2_03\bin\java.dll
    0x01030000 - 0x0103D000      D:\Java\j2re1.4.2_03\bin\zip.dll
    0x76C90000 - 0x76CB2000      C:\WINDOWS\system32\imagehlp.dll
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 132K [0x15050000, 0x150f0000, 0x15530000)
    eden space 512K, 25% used [0x15050000, 0x15071250, 0x150d0000)
    from space 64K, 0% used [0x150d0000, 0x150d0000, 0x150e0000)
    to space 64K, 0% used [0x150e0000, 0x150e0000, 0x150f0000)
    tenured generation total 1408K, used 0K [0x15530000, 0x15690000, 0x19050000)
    the space 1408K, 0% used [0x15530000, 0x15530000, 0x15530200, 0x15690000)
    compacting perm gen total 4096K, used 964K [0x19050000, 0x19450000, 0x1d050000)
    the space 4096K, 23% used [0x19050000, 0x191410e0, 0x19141200, 0x19450000)
    Local Time = Wed Aug 25 21:06:44 2004
    Elapsed Time = 0
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002EF
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)

    You are right, I tried getting the java.lang.Class reference for the com.test.Tester by calling getClass() on com.test.Tester
    And using this jclass reference for java.lang.Class, I tried getting the method ID of getFields and eventually the Field[]
    Thanks for the help
    I have some more questions.
    Assumption - Using JNI, I got the fields array of com.test.Tester and I am iterating through the fields
    1.Assuming that the Tester class had an Integer field say m_nIntVal, then once I get the jobject equivalent of this Field in C++.
    Now I need to get the type of the field (I call the method java.lang.reflect.getType() from JNI)
    This gives me a jclass reference to it's type i.e java.lang.Integer
    2.I need to get the name of this type i.e I want to get the name of the type in a string as "java.lang.Integer"
    For this, on the jclass reference of java.lang.Integer got in Step 1, I call getClass() from JNI (to get the java.lang.Class) and then getName()
    Now, for calling getClass(), I need a temporary object reference corresponding to the jclass of java.lang.Integer, The problem is that Integer does not have a default constructor, so my call to create the jobject fails.
    But, since I do not know that I am constructing an Integer (remember that is what I am trying to find out - getType), I cant pass any values to constructor
    Now, how do I go about creating a jobject of Integer, without knowing that I am constructing that, as this does not have a default constructor without parameters
    Also, I tried using AllocObject to get the jobject and then tried to get the method ID of getClass(). Even this failed
    3. If the com.test.Tester class had a primitive "int" field, say m_nPrimitiveInt
    for which java provides a Class representation, I am able to get the jclass reference to the type of m_nPrimitiveInt
    Now, how do I get the name of the type as "int" in a string?
    Forllowing a similar procedure like in Step 2 fails when I try to pass the jclass reference to the type of m_nPrimitiveInt to the GetMethodID
    with the error FATAL ERROR in native method: JNI received a class argument that is not a class
    Can you tell me what is the way out?
    Thanks in advance,
    Also, can I mail you with some doubts that I have? If its ok, please contact me at [email protected]

  • JVM crash for weblogic8.1 running on solaris and JDK1.4.2_05

    Hi,
    I am an administrator of weblogic8.1 server platfrom running solaris8.1 There are 2 managed server runs on 2 solaris unix box and admin server run on a third solaris unix box. Since last couple of days, weblogic server crashing everyday creating a core file and hs_err_pidxxxx.log, on each manage server.Below is the content of hs_err_pidxxxx.log.
    Unexpected Signal : 11 occurred at PC=0xFE1CBCAC
    Function=[Unknown. Nearest: JVM_FillInStackTrace+0x4CE4]
    Library=/bea/jdk142_05/jre/lib/sparc/server/libjvm.so
    Current Java thread:
    Dynamic libraries:
    0x10000 /bea/jdk142_05/bin/java
    0xff360000 /usr/lib/libthread.so.1
    0xff3a0000 /usr/lib/libdl.so.1
    0xff200000 /usr/lib/libc.so.1
    0xff340000 /usr/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
    0xfe000000 /bea/jdk142_05/jre/lib/sparc/server/libjvm.so
    0xff2e0000 /usr/lib/libCrun.so.1
    0xff1e0000 /usr/lib/libsocket.so.1
    0xff100000 /usr/lib/libnsl.so.1
    0xff0d0000 /usr/lib/libm.so.1
    0xff1c0000 /usr/lib/libsched.so.1
    0xff310000 /usr/lib/libw.so.1
    0xff0a0000 /usr/lib/libmp.so.2
    0xff070000 /bea/jdk142_05/jre/lib/sparc/native_threads/libhpi.so
    0xff050000 /usr/lib/nss_files.so.1
    0xfe7d0000 /bea/jdk142_05/jre/lib/sparc/libverify.so
    0xfe790000 /bea/jdk142_05/jre/lib/sparc/libjava.so
    0xfe770000 /bea/jdk142_05/jre/lib/sparc/libzip.so
    0xf94a0000 /osmf/i3/i3v7/products/j2ee/lib/libPreciseLog.so
    0xf9480000 /usr/lib/libpthread.so.1
    0xf9460000 /usr/lib/libkstat.so.1
    0xa9050000 /bea/jdk142_05/jre/lib/sparc/libnet.so
    0xa9290000 /usr/lib/nss_dns.so.1
    0xa8db0000 /usr/lib/libresolv.so.2
    0xa9030000 /bea/weblogic814/server/lib/solaris/libmuxer.so
    0xa8b60000 /usr/ucblib/libucb.so.1
    0xa8b20000 /usr/lib/libelf.so.1
    0xa8d90000 /bea/jdk142_05/jre/lib/sparc/libnio.so
    0xa8a60000 /usr/lib/librt.so.1
    0xa8920000 /usr/lib/libaio.so.1
    0xa8900000 /usr/lib/libsendfile.so.1
    0xa83e0000 /bea/jdk142_05/jre/lib/sparc/libioser12.so
    Heap at VM Abort:
    Heap
    def new generation total 339264K, used 293091K [0xa9400000, 0xbe950000, 0xbe950000)
    eden space 329024K, 87% used [0xa9400000, 0xbac61f00, 0xbd550000)
    from space 10240K, 58% used [0xbd550000, 0xbdb26ea0, 0xbdf50000)
    to space 10240K, 0% used [0xbdf50000, 0xbdf50000, 0xbe950000)
    tenured generation total 699072K, used 204153K [0xbe950000, 0xe9400000, 0xe9400000)
    the space 699072K, 29% used [0xbe950000, 0xcb0ae7f8, 0xcb0ae800, 0xe9400000)
    compacting perm gen total 65024K, used 64974K [0xe9400000, 0xed380000, 0xf9400000)
    the space 65024K, 99% used [0xe9400000, 0xed373a30, 0xed373c00, 0xed380000)
    Local Time = Mon Nov 20 13:17:55 2006
    Elapsed Time = 150397
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002EF 01
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_05-b04 mixed mode)
    any idea?

    Hi Jitesh
    JVM crash could be because of any code, it could be weblogic or your own application or a bug in JDK itself.
    1) You can run tools like GDB on the core file which will indicate the source of the crash.
    From the stack it looks like a Sun JDK bug
    2) Search on sun for this error code shows some known bugs. Checkout http://onesearch.sun.com/search/onesearch/index.jsp?charset=utf-8&col=developer-debugging&qt=4F530E43505002EF+01&rt=true&cs=false
    3) You can also upgrade the JVM to the latest version of 1.4.2. I believe you have 1.4.2_05
    Vimala-

  • HOTSPOT JVM crash with EXCEPTION_ACCESS_VIOLATION

    From a C++ application, I use Invocation APIs to create a JVM and call some Java methods using JNI
    I get a crash in jvm.dll with EXCEPTION_ACCESS_VIOLATION
    when I try to call "getFields" method of java.lang.Class in order to get the Fields of the java class
    This method call, should return a java/lang/reflect/Fields[] on success
    I am able to get the method ID of this method by using pEnv->GetMethodID(..)
    However, when I call this method using CallObjectMethod(..), HotSpt JVM crashes with access violation with the dump given below.
    Any clues on how to debug and find the problem?
    Thanks in advance!
    Sample code
    jclass testerClass = pEnv->FindClass("com/test/Tester");
    jmethodID cid = pEnv->GetMethodID(testerClass,"<init>","()V");
    if(NULL == cid)
    pEnv->ExceptionDescribe();
    jobject testerObject = pEnv->NewObjectV(testerClass, mid);
    jmethodID mid = pEnv->GetMethodID(testerClass, "getClass",
                             "()Ljava/lang/Class;");
    jobject clsObj = (jobject)pEnv->CallObjectMethod(testerObject, mid);
    pEnv->ExceptionDescribe();
    jclass      jCls = pEnv->GetObjectClass(clsObj);
    jmethodID midGetFields = pEnv->GetMethodID(jCls, "getFields",
                                            "()[Ljava/lang/reflect/Field;");
    jobjectArray jobjArray = (jobjectArray)pEnv->CallObjectMethod(testerObject, midGetFields);
    pEnv->ExceptionDescribe();
    Crash dump
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x809E69F
    Function=JVM_FindSignal+0x11505
    Library=D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    Current Java thread:
         at java.lang.Class.privateGetDeclaredFields(Unknown Source)
         at java.lang.Class.privateGetPublicFields(Unknown Source)
         at java.lang.Class.getFields(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00419000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JNITester.exe
    0x77F50000 - 0x77FF7000      C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000      C:\WINDOWS\system32\kernel32.dll
    0x10000000 - 0x10023000      E:\SC\SC12.1\SCApplications\SNMP\Bin\JniUtils.dll
    0x00320000 - 0x00332000      E:\SnmpIpmNativeTestDriver\MTFStubHelper.dll
    0x00340000 - 0x0035B000      E:\SnmpIpmNativeTestDriver\MTFXMLFileAPI.dll
    0x12000000 - 0x122B1000      e:\sc\sc12.1\bin\xerces-c_2_2_0D.dll
    0x77DD0000 - 0x77E5D000      C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000      C:\WINDOWS\system32\RPCRT4.dll
    0x10200000 - 0x1026C000      e:\sc\sc12.1\bin\MSVCRTD.dll
    0x102A0000 - 0x102B7000      e:\sc\sc12.1\bin\MSVCIRTD.dll
    0x5F800000 - 0x5F8E9000      e:\sc\sc12.1\bin\MFC42uD.DLL
    0x77C70000 - 0x77CB0000      C:\WINDOWS\system32\GDI32.dll
    0x77D40000 - 0x77DCC000      C:\WINDOWS\system32\USER32.dll
    0x5F700000 - 0x5F746000      e:\sc\sc12.1\bin\MFCD42uD.DLL
    0x5F500000 - 0x5F5C6000      e:\sc\sc12.1\bin\MFCO42uD.DLL
    0x10480000 - 0x104FE000      e:\sc\sc12.1\bin\MSVCP60D.dll
    0x15020000 - 0x15042000      e:\sc\sc12.1\bin\SCTraceLib.dll
    0x6D510000 - 0x6D58D000      C:\WINDOWS\System32\dbghelp.dll
    0x77C10000 - 0x77C63000      C:\WINDOWS\system32\msvcrt.dll
    0x77C00000 - 0x77C07000      C:\WINDOWS\system32\VERSION.dll
    0x00360000 - 0x0037D000      e:\sc\sc12.1\bin\SCFileManager.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\System32\PSAPI.DLL
    0x00420000 - 0x00580000      e:\sc\sc12.1\bin\BctCoreCL.dll
    0x5D920000 - 0x5D929000      C:\WINDOWS\System32\RPCNS4.dll
    0x71B20000 - 0x71B31000      C:\WINDOWS\system32\MPR.dll
    0x71C20000 - 0x71C6E000      C:\WINDOWS\System32\NETAPI32.dll
    0x71AB0000 - 0x71AC5000      C:\WINDOWS\System32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\System32\WS2HELP.dll
    0x15000000 - 0x15012000      e:\sc\sc12.1\bin\CTEventLog.dll
    0x773D0000 - 0x77BC2000      C:\WINDOWS\system32\SHELL32.dll
    0x70A70000 - 0x70AD4000      C:\WINDOWS\system32\SHLWAPI.dll
    0x771B0000 - 0x772D1000      C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771AB000      C:\WINDOWS\system32\OLEAUT32.dll
    0x1F7A0000 - 0x1F7D6000      C:\WINDOWS\System32\ODBC32.dll
    0x77340000 - 0x773CB000      C:\WINDOWS\system32\COMCTL32.dll
    0x763B0000 - 0x763F5000      C:\WINDOWS\system32\comdlg32.dll
    0x08000000 - 0x08138000      D:\Java\j2re1.4.2_03\bin\client\jvm.dll
    0x76B40000 - 0x76B6C000      C:\WINDOWS\System32\WINMM.dll
    0x5FD00000 - 0x5FD0D000      C:\WINDOWS\System32\MFC42LOC.DLL
    0x71950000 - 0x71A34000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x1F840000 - 0x1F857000      C:\WINDOWS\System32\odbcint.dll
    0x5DAC0000 - 0x5DAC7000      C:\WINDOWS\System32\rdpsnd.dll
    0x00FE0000 - 0x00FE7000      D:\Java\j2re1.4.2_03\bin\hpi.dll
    0x01000000 - 0x0100E000      D:\Java\j2re1.4.2_03\bin\verify.dll
    0x01010000 - 0x01029000      D:\Java\j2re1.4.2_03\bin\java.dll
    0x01030000 - 0x0103D000      D:\Java\j2re1.4.2_03\bin\zip.dll
    0x76C90000 - 0x76CB2000      C:\WINDOWS\system32\imagehlp.dll
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 132K [0x15050000, 0x150f0000, 0x15530000)
    eden space 512K, 25% used [0x15050000, 0x15071250, 0x150d0000)
    from space 64K, 0% used [0x150d0000, 0x150d0000, 0x150e0000)
    to space 64K, 0% used [0x150e0000, 0x150e0000, 0x150f0000)
    tenured generation total 1408K, used 0K [0x15530000, 0x15690000, 0x19050000)
    the space 1408K, 0% used [0x15530000, 0x15530000, 0x15530200, 0x15690000)
    compacting perm gen total 4096K, used 964K [0x19050000, 0x19450000, 0x1d050000)
    the space 4096K, 23% used [0x19050000, 0x191410e0, 0x19141200, 0x19450000)
    Local Time = Wed Aug 25 21:06:44 2004
    Elapsed Time = 0
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002EF
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)

    Hi
    How about running it with -Xcheck:jni and -verbose:jni

  • JVM crashes after ClassLoader-problem in Eclipse-Plugin using Eclipse 3.4

    Hi all
    while using plug-in com.lti.civil for displaying webcam in a SWT-Window or Swing-Frame the JVM crashed before displaying the stream.
    It isn't happening when using in a normal java-project. it happens when it's implemented in a plugin.
    I think it is a class-loader-problem.
    I've debugged and came to the following technical result:
    - Class NativeVideoFormat not found
    - NoClassDefFoundError: 40
    - JVM (jdk1.6.0_07\jre\bin) crashed with exit code -1073741819
    I'm looking for days for a solution. Please somebody may help me!
    Thanks very much.
    Edited by: Martin_Pulfer on Feb 16, 2009 5:03 AM
    Edited by: Martin_Pulfer on Feb 16, 2009 5:04 AM

    The crash log is pretty generic, it's hard to say where exactly it crashed... The best way to report such incidents is to file bugs to JavaFX JIRA (http://javafx-jira.kenai.com), but without a details crash log or a test case, the bug will likely be closed as not reproducible.

  • Problem calling two perl modules from java in seperate threads(JVM CRASHES)

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

    Dear Friends,
    I have one severe problem regarding calling perl modules from java
    I had to call two perl modules simultaneously (i.e.) from two threads,,, but jvm crashes when one of the perl calls is exiting earlier
    I am unable to spot out why ....
    For calling perl from java ...., We are first calling C code from java using JNI and then Perl code from C
    All works fine if we call only one perl call at a time.... If we call them in a synchronized manner the JVM is not crashing .... But we don't want blocking..
    The following is the code snippet
    <JAVA FILE>
    class Sample
         static {
              System.loadLibrary("xyz");  // Here xyz is the library file generated by compiling c code
         public native void call_PrintList();
         public native void call_PrintListNew();
         Sample()
              new Thread1(this).start();     
         public static void main(String args[])
              System.out.println("In the main Method");
              new Sample().call_PrintList();
         class Thread1 extends Thread
              Sample sample;
              Thread1(Sample sam)
                   sample=sam;
              public void run()
                   sample.call_PrintListNew();     
    }<C FILE>
    #include <EXTERN.h>
    #include <perl.h>
    static PerlInterpreter *my_perl;
    static char * words[] = {"alpha", "beta", "gamma", "delta", NULL } ;
    static void
    call_PrintList(){
         printf("\nIn the Call method of string.c\n");
            char *wor[] = {"hello", "sudha", NULL } ;
               char *my_argv[] = { "", "string.pl" };
               PERL_SYS_INIT3(&argc,&argv,&env);
               my_perl = perl_alloc();
                   PL_perl_destruct_level = 1; //// We have mentioned this also and tried removing destruct call
               perl_construct( my_perl );
               perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
              PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
               perl_run(my_perl);
         dSP ;
            perl_call_argv("PrintList",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
    //     perl_destruct(my_perl);
    //          perl_free(my_perl);
    //           PERL_SYS_TERM();
    static void
    call_PrintListNew(){
    printf("In the new call method\n");
    char *wor[] = {"Hiiiiiiiiiiiiiii", "Satyam123333", NULL } ;
            char *my_argv[] = { "", "string.pl" };
            PERL_SYS_INIT3(&argc,&argv,&env);
            my_perl = perl_alloc();
    PL_perl_destruct_level = 1;
            perl_construct( my_perl );
            perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
            PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
            perl_run(my_perl);
            dSP ;
            perl_call_argv("PrintListNew",  G_DISCARD, wor) ;
    PL_perl_destruct_level = 1;
      //      perl_destruct(my_perl);
      //      perl_free(my_perl);
       //     PERL_SYS_TERM();
    void callNew()
    call_PrintListNew();
    void call ( )
    call_PrintList();
    //char *wor[] = {"hello","sudha",NULL};
    /*   char *my_argv[] = { "", "string.pl" };
          PERL_SYS_INIT3(&argc,&argv,&env);
          my_perl = perl_alloc();
          perl_construct( my_perl );
          perl_parse(my_perl, NULL, 2, my_argv, (char**)NULL);
         PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
          perl_run(my_perl);*/
       //   call_PrintList();                      /*** Compute 3 ** 4 ***/
    /*      perl_destruct(my_perl);
          perl_free(my_perl);
          PERL_SYS_TERM();*/
        }And Finally the perl code
    sub PrintList
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
    sub PrintListNew
                my(@list) = @_ ;
                foreach (@list) { print "$_\n" }
            }Please help me in this regard

  • JVM Crash ConcurrentGCThread (6u21 windows-amd64 jvm.dll+0x1291fb)

    Hi,
    a customer hit this JVM crash on Windows 2008 SP1 with JDK 6u21:
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d9b91fb, pid=3944, tid=2912
    # JRE version: 6.0_21-b07
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b17 mixed mode windows-amd64 )
    # Problematic frame:
    # V  [jvm.dll+0x1291fb]
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    ---------------  T H R E A D  ---------------
    Current thread (0x0000000001091000):  ConcurrentGCThread [stack: 0x000000006cc80000,0x000000006cd80000] [id=2912]
    siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000069
    Registers:
    EAX=0x0000000000000059, EBX=0x000000006cd7fab0, ECX=0x0000000000000069, EDX=0x0000000067186c30
    ESP=0x000000006cd7f6f0, EBP=0x0000000000000012, ESI=0x00000000671868c0, EDI=0x000000006cd7fab0
    EIP=0x000000006d9b91fb, EFLAGS=0x0000000000010246
    Top of Stack: (sp=0x000000006cd7f6f0)
    0x000000006cd7f6f0:   000000000110b960 000000006d9ba131
    0x000000006cd7f700:   000000006cd7f790 000000006d9ba131
    0x000000006cd7f710:   000000006cd7fab0 000000006dc56be0
    0x000000006cd7f720:   000000006cd7fab0 000000006dbb42ce
    0x000000006cd7f730:   0000000067186860 000000006cd7fab0
    0x000000006cd7f740:   000000006cd7fab0 0000000000000000
    0x000000006cd7f750:   000000006cd7fa60 000000006cd7f810
    0x000000006cd7f760:   0000000067186830 000000006d9acee3
    0x000000006cd7f770:   0000000000000880 00000000010917d0
    0x000000006cd7f780:   0000000001064020 0000000000004400
    0x000000006cd7f790:   0000000067183a00 0000000000000880
    0x000000006cd7f7a0:   000000006cd7f810 000000006d9b281d
    0x000000006cd7f7b0:   0000000067184cc0 000000006cd7f810
    0x000000006cd7f7c0:   000000006cd7fa60 0000000067184e28
    0x000000006cd7f7d0:   0000000067183a00 0000000000000880
    0x000000006cd7f7e0:   00000000000000c4 000000006d986f1e
    Instructions: (pc=0x000000006d9b91fb)
    0x000000006d9b91eb:   51 00 eb 04 48 8b 42 08 48 8d 48 10 4c 8d 43 58
    0x000000006d9b91fb:   48 8b 01 ff 90 20 02 00 00 80 bb c8 00 00 00 00
    Stack: [0x000000006cc80000,0x000000006cd80000],  sp=0x000000006cd7f6f0,  free space=3fd0000000000000000k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0x1291fb]
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x00000000727e9000 JavaThread "http-0.0.0.0-8180-9" daemon [_thread_blocked, id=6104, stack(0x00000000774b0000,0x00000000775b0000)]
      0x00000000727e8000 JavaThread "http-0.0.0.0-8180-8" daemon [_thread_in_native, id=1384, stack(0x00000000773b0000,0x00000000774b0000)]
      0x00000000727e7800 JavaThread "http-0.0.0.0-8180-7" daemon [_thread_in_native, id=3076, stack(0x00000000772b0000,0x00000000773b0000)]
      0x00000000727e6800 JavaThread "http-0.0.0.0-8180-6" daemon [_thread_in_native, id=5324, stack(0x00000000771b0000,0x00000000772b0000)]
      0x00000000727e6000 JavaThread "http-0.0.0.0-8180-5" daemon [_thread_in_native, id=6116, stack(0x00000000770b0000,0x00000000771b0000)]
      0x00000000727e5000 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=5132, stack(0x0000000076d60000,0x0000000076e60000)]
      0x00000000727e4800 JavaThread "http-0.0.0.0-8180-4" daemon [_thread_in_vm, id=4436, stack(0x00000000736f0000,0x00000000737f0000)]
      0x00000000727e3000 JavaThread "http-0.0.0.0-8180-3" daemon [_thread_in_native, id=1752, stack(0x0000000076e60000,0x0000000076f60000)]
      0x00000000727e2800 JavaThread "Thread-12" daemon [_thread_in_native, id=4160, stack(0x0000000076c60000,0x0000000076d60000)]
      0x00000000727e1800 JavaThread "http-0.0.0.0-8182-1" daemon [_thread_blocked, id=4256, stack(0x0000000076b60000,0x0000000076c60000)]
      0x000000007392b000 JavaThread "http-0.0.0.0-8183-1" daemon [_thread_blocked, id=5972, stack(0x0000000076a60000,0x0000000076b60000)]
      0x0000000073929800 JavaThread "http-0.0.0.0-8180-2" daemon [_thread_in_native, id=3724, stack(0x0000000076960000,0x0000000076a60000)]
      0x0000000073929000 JavaThread "http-0.0.0.0-8180-1" daemon [_thread_in_native, id=4712, stack(0x0000000071220000,0x0000000071320000)]
      0x000000007392a800 JavaThread "http-0.0.0.0-8183" daemon [_thread_in_native, id=6020, stack(0x0000000076860000,0x0000000076960000)]
      0x0000000070992800 JavaThread "http-0.0.0.0-8182" daemon [_thread_in_native, id=2480, stack(0x0000000076760000,0x0000000076860000)]
      0x0000000073928800 JavaThread "http-0.0.0.0-8181-1" daemon [_thread_blocked, id=5448, stack(0x0000000076660000,0x0000000076760000)]
      0x0000000070991800 JavaThread "http-0.0.0.0-8180" daemon [_thread_in_native, id=1748, stack(0x0000000076560000,0x0000000076660000)]
      0x0000000070991000 JavaThread "http-0.0.0.0-8181" daemon [_thread_in_native, id=4136, stack(0x00000000752a0000,0x00000000753a0000)]
      0x0000000070990800 JavaThread "JBossLifeThread" [_thread_blocked, id=5844, stack(0x0000000075460000,0x0000000075560000)]
      0x0000000070986000 JavaThread "SEO index monitor thread" daemon [_thread_blocked, id=1472, stack(0x00000000733f0000,0x00000000734f0000)]
      0x000000007098f800 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=4532, stack(0x00000000751a0000,0x00000000752a0000)]
      0x000000007098f000 JavaThread "derby.NetworkServerStarter" daemon [_thread_blocked, id=4352, stack(0x00000000750a0000,0x00000000751a0000)]
      0x000000007098e000 JavaThread "Timer-1" daemon [_thread_blocked, id=1484, stack(0x0000000074fa0000,0x00000000750a0000)]
      0x000000007098d800 JavaThread "derby.antiGC" daemon [_thread_blocked, id=4316, stack(0x0000000074ea0000,0x0000000074fa0000)]
      0x000000007098c800 JavaThread "Checkpoint Maintenance Service (CheckpointDirectory)" daemon [_thread_blocked, id=2496, stack(0x0000000074bc0000,0x0000000074cc0000)]
      0x000000007098c000 JavaThread "Checkpoint Maintenance Service (watchdog)-0" daemon [_thread_blocked, id=6068, stack(0x0000000074ac0000,0x0000000074bc0000)]
      0x000000007098b000 JavaThread "net.sf.ehcache.CacheManager@7889fe65" daemon [_thread_blocked, id=6040, stack(0x00000000749c0000,0x0000000074ac0000)]
      0x000000007098a800 JavaThread "Maintenance-Thread" [_thread_blocked, id=4332, stack(0x00000000748c0000,0x00000000749c0000)]
      0x0000000070989000 JavaThread "PageSavingThread-wicket.bm-translation-page" daemon [_thread_blocked, id=228, stack(0x00000000737f0000,0x00000000738f0000)]
      0x0000000070987800 JavaThread "PageSavingThread-wicket.bm" daemon [_thread_blocked, id=5996, stack(0x00000000735f0000,0x00000000736f0000)]
      0x0000000070987000 JavaThread "com.google.inject.internal.Finalizer" daemon [_thread_blocked, id=6080, stack(0x00000000734f0000,0x00000000735f0000)]
      0x0000000070985800 JavaThread "Service auto starter-0" daemon [_thread_blocked, id=5524, stack(0x000000006d280000,0x000000006d380000)]
      0x0000000070984800 JavaThread "ContainerBackgroundProcessor[StandardEngine[jboss.web]]" daemon [_thread_blocked, id=2964, stack(0x00000000732f0000,0x00000000733f0000)]
      0x0000000070984000 JavaThread "RMI TCP Accept-4444" daemon [_thread_in_native, id=5740, stack(0x0000000072220000,0x0000000072320000)]
      0x0000000070983800 JavaThread "ClassLoadingPool(2)-1" daemon [_thread_in_native, id=3928, stack(0x0000000072120000,0x0000000072220000)]
      0x00000000709c4000 JavaThread "JBoss System Threads(1)-1" daemon [_thread_in_native, id=5380, stack(0x0000000072020000,0x0000000072120000)]
      0x00000000709c3800 JavaThread "GC Daemon" daemon [_thread_blocked, id=3712, stack(0x0000000071f20000,0x0000000072020000)]
      0x00000000709c1800 JavaThread "RMI Reaper" [_thread_blocked, id=5552, stack(0x0000000071e20000,0x0000000071f20000)]
      0x00000000709c1000 JavaThread "RMI TCP Accept-1098" daemon [_thread_in_native, id=4328, stack(0x0000000071d20000,0x0000000071e20000)]
      0x00000000709d5000 JavaThread "ScannerThread" daemon [_thread_blocked, id=4952, stack(0x0000000071c20000,0x0000000071d20000)]
      0x00000000713f4800 JavaThread "Timer-0" daemon [_thread_blocked, id=6028, stack(0x0000000071b20000,0x0000000071c20000)]
      0x0000000001020000 JavaThread "DestroyJavaVM" [_thread_blocked, id=5908, stack(0x00000000012a0000,0x00000000013a0000)]
      0x000000007073e800 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=5588, stack(0x0000000070f70000,0x0000000071070000)]
      0x00000000706fc800 JavaThread "RMI TCP Accept-8190" daemon [_thread_in_native, id=5176, stack(0x0000000070d50000,0x0000000070e50000)]
      0x00000000706fc000 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=5108, stack(0x0000000070a70000,0x0000000070b70000)]
      0x000000006ce71800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1684, stack(0x0000000070570000,0x0000000070670000)]
      0x000000006ce6f800 JavaThread "CompilerThread1" daemon [_thread_in_native, id=3716, stack(0x0000000070070000,0x0000000070170000)]
      0x000000006ce60800 JavaThread "CompilerThread0" daemon [_thread_in_native, id=5816, stack(0x000000006ff70000,0x0000000070070000)]
      0x000000006ce5d800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5288, stack(0x000000006d680000,0x000000006d780000)]
      0x000000006ce58800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5756, stack(0x000000006d580000,0x000000006d680000)]
      0x000000006ce57000 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=6140, stack(0x000000006d480000,0x000000006d580000)]
      0x000000006ce05000 JavaThread "Finalizer" daemon [_thread_blocked, id=3980, stack(0x000000006d180000,0x000000006d280000)]
      0x000000006cdfa000 JavaThread "Reference Handler" daemon [_thread_blocked, id=776, stack(0x000000006d080000,0x000000006d180000)]
    Other Threads:
      0x000000006cdf3800 VMThread [stack: 0x000000006cf80000,0x000000006d080000] [id=3228]
      0x00000000706b2000 WatcherThread [stack: 0x0000000071120000,0x0000000071220000] [id=5040]
    =>0x0000000001091000 (exited) ConcurrentGCThread [stack: 0x000000006cc80000,0x000000006cd80000] [id=2912]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
    [0x000000000110d770] Heap_lock - owner thread: 0x00000000727e4800
    Heap
    par new generation   total 118016K, used 75017K [0x00000000046e0000, 0x000000000c6e0000, 0x000000000c6e0000)
      eden space 104960K,  59% used [0x00000000046e0000, 0x0000000008362778, 0x000000000ad60000)
      from space 13056K, 100% used [0x000000000ad60000, 0x000000000ba20000, 0x000000000ba20000)
      to   space 13056K,   0% used [0x000000000ba20000, 0x000000000ba20000, 0x000000000c6e0000)
    concurrent mark-sweep generation total 108264K, used 69074K [0x000000000c6e0000, 0x000000001309a000, 0x00000000622e0000)
    concurrent-mark-sweep perm gen total 120720K, used 79760K [0x00000000622e0000, 0x00000000698c4000, 0x000000006a2e0000)
    Dynamic libraries:
    0x0000000000400000 - 0x000000000042e000      C:\Program Files\Java\jdk1.6.0_21\bin\java.exe
    0x0000000077af0000 - 0x0000000077c70000      C:\Windows\system32\ntdll.dll
    0x00000000778f0000 - 0x0000000077a1c000      C:\Windows\system32\kernel32.dll
    0x000007feff820000 - 0x000007feff928000      C:\Windows\system32\ADVAPI32.dll
    0x000007fefe230000 - 0x000007fefe36f000      C:\Windows\system32\RPCRT4.dll
    0x000000006d890000 - 0x000000006df61000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\server\jvm.dll
    0x0000000077a20000 - 0x0000000077aed000      C:\Windows\system32\USER32.dll
    0x000007fefe8d0000 - 0x000007fefe933000      C:\Windows\system32\GDI32.dll
    0x000007fefc0c0000 - 0x000007fefc0f9000      C:\Windows\system32\WINMM.dll
    0x000007feffbb0000 - 0x000007feffc4c000      C:\Windows\system32\msvcrt.dll
    0x000007fefe370000 - 0x000007fefe548000      C:\Windows\system32\ole32.dll
    0x000007feff740000 - 0x000007feff813000      C:\Windows\system32\OLEAUT32.dll
    0x000007fefc070000 - 0x000007fefc0bf000      C:\Windows\system32\OLEACC.dll
    0x000007fefe570000 - 0x000007fefe59d000      C:\Windows\system32\IMM32.DLL
    0x000007fefe940000 - 0x000007fefea41000      C:\Windows\system32\MSCTF.dll
    0x000007feffc50000 - 0x000007feffc5d000      C:\Windows\system32\LPK.DLL
    0x000007feffd50000 - 0x000007feffdea000      C:\Windows\system32\USP10.dll
    0x000000006d800000 - 0x000000006d80e000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\verify.dll
    0x000000006d450000 - 0x000000006d477000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.dll
    0x000000006d3b0000 - 0x000000006d3ba000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\hpi.dll
    0x0000000077c70000 - 0x0000000077c79000      C:\Windows\system32\PSAPI.DLL
    0x000000006d850000 - 0x000000006d862000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\zip.dll
    0x000007fefea50000 - 0x000007feff6a2000      C:\Windows\system32\SHELL32.DLL
    0x000007feff6b0000 - 0x000007feff723000      C:\Windows\system32\SHLWAPI.dll
    0x000007fefc920000 - 0x000007fefcb19000      C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_152e7382f3bd50c6\comctl32.dll
    0x000007fefe6f0000 - 0x000007fefe8cb000      C:\Windows\system32\SETUPAPI.dll
    0x0000000000de0000 - 0x0000000000dea000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\management.dll
    0x000000006d380000 - 0x000000006d397000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\net.dll
    0x000007fefe5a0000 - 0x000007fefe5e4000      C:\Windows\system32\WS2_32.dll
    0x000007feff730000 - 0x000007feff737000      C:\Windows\system32\NSI.dll
    0x000007fefd590000 - 0x000007fefd5df000      C:\Windows\system32\mswsock.dll
    0x000007fefd790000 - 0x000007fefd797000      C:\Windows\System32\wship6.dll
    0x000007fefdb30000 - 0x000007fefdb69000      C:\Windows\system32\DNSAPI.dll
    0x000007fefbdc0000 - 0x000007fefbdcb000      C:\Windows\System32\winrnr.dll
    0x000007fefe5f0000 - 0x000007fefe645000      C:\Windows\system32\WLDAP32.dll
    0x000007fefd010000 - 0x000007fefd023000      C:\Windows\system32\NLAapi.dll
    0x000007fefd860000 - 0x000007fefd883000      C:\Windows\system32\IPHLPAPI.DLL
    0x000007fefd810000 - 0x000007fefd855000      C:\Windows\system32\dhcpcsvc.DLL
    0x000007fefe080000 - 0x000007fefe09c000      C:\Windows\system32\Secur32.dll
    0x000007fefd800000 - 0x000007fefd80a000      C:\Windows\system32\WINNSI.DLL
    0x000007fefd7d0000 - 0x000007fefd7fb000      C:\Windows\system32\dhcpcsvc6.DLL
    0x000007fefbc50000 - 0x000007fefbc63000      C:\Windows\system32\napinsp.dll
    0x000007fefd200000 - 0x000007fefd207000      C:\Windows\system32\wshtcpip.dll
    0x000007fefbf10000 - 0x000007fefbf18000      C:\Windows\system32\rasadhlp.dll
    0x000007fefd280000 - 0x000007fefd2c7000      C:\Windows\system32\rsaenh.dll
    0x000007fefe0a0000 - 0x000007fefe0c6000      C:\Windows\system32\USERENV.dll
    0x0000000000df0000 - 0x0000000000dfb000      C:\Program Files\Java\jdk1.6.0_21\jre\bin\nio.dll
    VM Arguments:
    jvm_args: -Dfile.encoding=UTF-8 -Djava.io.tmpdir=c:\...\tmp -Djava.library.path=c:\...\lib\win32-x86 -Djava.security.policy=c:\...\policy.all -XX:MaxPermSize=128m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -XX:+CMSParallelRemarkEnabled -XX:MaxNewSize=128m -XX:NewSize=128m -XX:+DisableExplicitGC -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -XX:+UseBiasedLocking -XX:+PrintConcurrentLocks -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Dcom.sun.management.jmxremote.port=8190 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djboss.server.blockingshutdown=true -Djboss.server.exitonshutdown=false -Djboss.server.home.dir=c:\...\jboss-server -Djboss.server.home.url=file:/c:/.../jboss-server/ -Djboss.deploy.urls=file:/c:/.../jboss-server/deploy/, -Xmx1500m -Xloggc:c:\...\gc.log -Dderby.drda.portNumber=8191 -Dderby.drda.startNetworkServer=true
    java_command: org.jboss.Main
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21
    CLASSPATH=...
    PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\RAC5;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\Windows\System32\WindowsPowerShell\v1.0\
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=AMD64 Family 15 Model 65 Stepping 3, AuthenticAMD
    ---------------  S Y S T E M  ---------------
    OS: Windows Server 2008 Build 6001 Service Pack 1
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 15 model 65 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext
    Memory: 4k page, physical 8381904k(4689996k free), swap 16819076k(12156656k free)
    vm_info: Java HotSpot(TM) 64-Bit Server VM (17.0-b17) for windows-amd64 JRE (1.6.0_21-b07), built on Jul 17 2010 01:05:36 by "java_re" with MS VC++ 8.0 (VS2005)
    time: Thu Oct 21 10:54:48 2010
    elapsed time: 4500 secondsI have tried using hs_err6.pl to get some closer information, but I don't have access to the required map files, and searching in the bugdatabase didn't come up with anything.
    As far as I know this crash happened once.
    Is this a known crash, and if so: any pointers to the bugid would be very appreciated!
    Regards,
    Andreas
    Edited by: user12281825 on Oct 21, 2010 6:10 PM (replace 'noformat' by 'code')

    Thank you.
    Going through the suggestions:
    * custom/3rd party JNI components: while the jvm args indicate a use of such components, there is actually none being used in this instance.
    * overcommit: I'm not sure whether windows has any tunables for this, but from the memory information in the hs_err file I think this is not a problem here. The JVM has Xmx1500 + Xmn128 + permsize of 128, even with generous margins this should fit well into the 4G still available physical memory on the server.
    * OS support: I'd believe that Windows 2008 SP1 is supported :)
    * OS updates: I will check with the customer whether all updates are applied, and also whether an update of the OS itself is possible.
    * hotspot/gc tuning: there are various tuning options applied, which have been determined by testing the application itself (load, functional, endurance tests), and have been found to work stable
    There is one bug we're are aware of in 6u21 which affects the application (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6938026), but without being able to decode the jvm.dll+0x1291fb address I cannot say for sure that this is the same bug.
    Andreas

  • JVM crashes with Out of SWAP space

    Hello every body,
    We have a problem in a production environnement. The JVM crashes every time with the log file below.
    The application which is running don't occupate all memory and we don't understand why an outofmemory exception is raised.
    It's not probably due to an allocation inside the application because the exception should be an outofmemory exception : Java Heap space.
    Please, somebody can help me to understant what append or to give me some advices?
    Thank you a lot for help.
    # An unexpected error has been detected by Java Runtime Environment:
    # java.lang.OutOfMemoryError: requested 41943040 bytes for GrET in C:\BUILD_AREA\jdk6_07\hotspot\src\share\vm\utilities\growableArray.cpp. Out of swap space?
    #  Internal Error (allocation.inline.hpp:42), pid=2700, tid=2112
    #  Error: GrET in C:\BUILD_AREA\jdk6_07\hotspot\src\share\vm\utilities\growableArray.cpp
    # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode windows-x86)
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    ---------------  T H R E A D  ---------------
    Current thread (0x65b97400):  VMThread [stack: 0x65bd0000,0x65c20000] [id=2112]
    Stack: [0x65bd0000,0x65c20000]
    [error occurred during error reporting (printing stack bounds), id 0x80000001]
    VM_Operation (0x66dffa14): ParallelGCSystemGC, mode: safepoint, requested by thread 0x65fb9400
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x65f3cc00 JavaThread "pool-3-thread-1" [_thread_blocked, id=2780, stack(0x67300000,0x67350000)]
      0x66547800 JavaThread "RMI RenewClean-[192.16.252.55:3916]" daemon [_thread_blocked, id=3076, stack(0x672b0000,0x67300000)]
      0x66547400 JavaThread "RMI RenewClean-[192.16.252.53:2046]" daemon [_thread_blocked, id=2292, stack(0x67260000,0x672b0000)]
      0x6650d800 JavaThread "RMI RenewClean-[192.16.254.46:3126]" daemon [_thread_blocked, id=3012, stack(0x67210000,0x67260000)]
      0x663e8400 JavaThread "RMI RenewClean-[192.16.254.45:3026]" daemon [_thread_blocked, id=2596, stack(0x671c0000,0x67210000)]
      0x65f99800 JavaThread "RMI RenewClean-[192.16.252.54:1623]" daemon [_thread_blocked, id=3128, stack(0x67170000,0x671c0000)]
      0x65f99400 JavaThread "RMI RenewClean-[192.16.254.55:1992]" daemon [_thread_blocked, id=2720, stack(0x67120000,0x67170000)]
      0x66480800 JavaThread "RMI RenewClean-[192.16.254.54:4954]" daemon [_thread_blocked, id=2920, stack(0x670d0000,0x67120000)]
      0x66480000 JavaThread "RMI RenewClean-[192.16.254.53:3093]" daemon [_thread_blocked, id=2068, stack(0x67080000,0x670d0000)]
      0x6653f800 JavaThread "RMI RenewClean-[192.16.254.52:2543]" daemon [_thread_blocked, id=2156, stack(0x67030000,0x67080000)]
      0x66411400 JavaThread "RMI RenewClean-[192.16.254.51:3893]" daemon [_thread_blocked, id=1688, stack(0x66fe0000,0x67030000)]
      0x66468800 JavaThread "RMI RenewClean-[192.16.254.50:3371]" daemon [_thread_blocked, id=2688, stack(0x66f90000,0x66fe0000)]
      0x663f8400 JavaThread "RMI RenewClean-[192.16.254.49:4374]" daemon [_thread_blocked, id=2656, stack(0x66f40000,0x66f90000)]
      0x65f27800 JavaThread "RMI RenewClean-[192.16.254.48:3311]" daemon [_thread_blocked, id=748, stack(0x66ef0000,0x66f40000)]
      0x65f27400 JavaThread "RMI RenewClean-[192.16.254.47:2571]" daemon [_thread_blocked, id=1048, stack(0x66ea0000,0x66ef0000)]
      0x65f9e400 JavaThread "RMI RenewClean-[192.16.238.145:1673]" daemon [_thread_blocked, id=2332, stack(0x66e50000,0x66ea0000)]
      0x6602e800 JavaThread "RMI RenewClean-[192.16.238.144:2332]" daemon [_thread_blocked, id=3100, stack(0x66e00000,0x66e50000)]
      0x65fb9400 JavaThread "GC Daemon" daemon [_thread_blocked, id=1608, stack(0x66db0000,0x66e00000)]
      0x6657a400 JavaThread "RMI RenewClean-[192.16.238.143:3902]" daemon [_thread_blocked, id=2668, stack(0x66d60000,0x66db0000)]
      0x65fa9c00 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=2624, stack(0x66d10000,0x66d60000)]
      0x65ff4c00 JavaThread "pool-4-thread-1" [_thread_blocked, id=2864, stack(0x66390000,0x663e0000)]
      0x65fbf400 JavaThread "pool-2-thread-1" [_thread_blocked, id=2696, stack(0x66340000,0x66390000)]
      0x65f6d400 JavaThread "Thread-0" [_thread_blocked, id=3016, stack(0x662f0000,0x66340000)]
      0x65ebf000 JavaThread "WrapperSimpleAppMain" [_thread_blocked, id=696, stack(0x662a0000,0x662f0000)]
      0x00265c00 JavaThread "DestroyJavaVM" [_thread_blocked, id=564, stack(0x00680000,0x006d0000)]
      0x65fecc00 JavaThread "Wrapper-Connection" daemon [_thread_in_native, id=1224, stack(0x66170000,0x661c0000)]
      0x65ec9c00 JavaThread "Wrapper-Control-Event-Monitor" daemon [_thread_blocked, id=2896, stack(0x660d0000,0x66120000)]
      0x65bbf800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1284, stack(0x65e00000,0x65e50000)]
      0x65bbd000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=3040, stack(0x65db0000,0x65e00000)]
      0x65bb8000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1472, stack(0x65d60000,0x65db0000)]
      0x65bb6c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2000, stack(0x65d10000,0x65d60000)]
      0x65bb6000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2732, stack(0x65cc0000,0x65d10000)]
      0x65b9ec00 JavaThread "Finalizer" daemon [_thread_blocked, id=2008, stack(0x65c70000,0x65cc0000)]
      0x65b9a800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1304, stack(0x65c20000,0x65c70000)]
    Other Threads:
    =>0x65b97400 VMThread [stack: 0x65bd0000,0x65c20000] [id=2112]
      0x65bc1000 WatcherThread [stack: 0x65e50000,0x65ea0000] [id=192]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
    [0x00265408/0x00000310] Threads_lock - owner thread: 0x65b97400
    [0x002655a8/0x000002d0] Heap_lock - owner thread: 0x65fb9400
    Heap
    PSYoungGen      total 76928K, used 344K [0x5ad20000, 0x60d40000, 0x653c0000)
      eden space 76544K, 0% used [0x5ad20000,0x5ad20000,0x5f7e0000)
      from space 384K, 89% used [0x5f7e0000,0x5f836070,0x5f840000)
      to   space 10944K, 0% used [0x60290000,0x60290000,0x60d40000)
    PSOldGen        total 1341888K, used 529414K [0x077c0000, 0x59630000, 0x5ad20000)
      object space 1341888K, 39% used [0x077c0000,0x27cc1b38,0x59630000)
    PSPermGen       total 16384K, used 10204K [0x037c0000, 0x047c0000, 0x077c0000)
      object space 16384K, 62% used [0x037c0000,0x041b73a0,0x047c0000)
    Dynamic libraries:
    0x00400000 - 0x00423000      D:\Java\jdk1.6.0_07\bin\java.exe
    0x78460000 - 0x784e2000      C:\WINNT\system32\ntdll.dll
    0x78ed0000 - 0x78f35000      C:\WINNT\system32\ADVAPI32.dll
    0x77e70000 - 0x77f2f000      C:\WINNT\system32\KERNEL32.dll
    0x770c0000 - 0x7712f000      C:\WINNT\system32\RPCRT4.dll
    0x78fb0000 - 0x78fbf000      C:\WINNT\system32\Secur32.dll
    0x7c340000 - 0x7c396000      D:\Java\jdk1.6.0_07\jre\bin\msvcr71.dll
    0x6dac0000 - 0x6de7a000      D:\Java\jdk1.6.0_07\jre\bin\server\jvm.dll
    0x77e00000 - 0x77e5f000      C:\WINNT\system32\USER32.dll
    0x77f40000 - 0x77f7c000      C:\WINNT\system32\GDI32.dll
    0x77540000 - 0x77571000      C:\WINNT\system32\WINMM.dll
    0x6d320000 - 0x6d328000      D:\Java\jdk1.6.0_07\jre\bin\hpi.dll
    0x68ea0000 - 0x68eab000      C:\WINNT\system32\PSAPI.DLL
    0x6d820000 - 0x6d82c000      D:\Java\jdk1.6.0_07\jre\bin\verify.dll
    0x6d3c0000 - 0x6d3df000      D:\Java\jdk1.6.0_07\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      D:\Java\jdk1.6.0_07\jre\bin\zip.dll
    0x660a0000 - 0x660b7000      D:\Prism8.2\lib\wrapper.dll
    0x6d620000 - 0x6d633000      D:\Java\jdk1.6.0_07\jre\bin\net.dll
    0x74fb0000 - 0x74fc4000      C:\WINNT\system32\WS2_32.dll
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.DLL
    0x74fa0000 - 0x74fa8000      C:\WINNT\system32\WS2HELP.DLL
    0x74f50000 - 0x74f6e000      C:\WINNT\system32\msafd.dll
    0x74f90000 - 0x74f97000      C:\WINNT\System32\wshtcpip.dll
    0x77830000 - 0x7783c000      C:\WINNT\System32\rnr20.dll
    0x77970000 - 0x77994000      C:\WINNT\system32\DNSAPI.DLL
    0x74fd0000 - 0x74fd9000      C:\WINNT\system32\WSOCK32.dll
    0x77310000 - 0x77323000      C:\WINNT\system32\iphlpapi.dll
    0x774f0000 - 0x774f5000      C:\WINNT\system32\ICMP.dll
    0x772f0000 - 0x77307000      C:\WINNT\system32\MPRAPI.dll
    0x750d0000 - 0x750e0000      C:\WINNT\system32\SAMLIB.DLL
    0x7ccc0000 - 0x7cd10000      C:\WINNT\system32\NETAPI32.DLL
    0x77be0000 - 0x77bf1000      C:\WINNT\system32\NTDSAPI.dll
    0x77940000 - 0x7796c000      C:\WINNT\system32\WLDAP32.DLL
    0x75140000 - 0x75146000      C:\WINNT\system32\NETRAP.dll
    0x7cd20000 - 0x7ce0f000      C:\WINNT\system32\OLE32.DLL
    0x779a0000 - 0x77a3c000      C:\WINNT\system32\OLEAUT32.DLL
    0x77380000 - 0x773b0000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77350000 - 0x77373000      C:\WINNT\system32\ADSLDPC.DLL
    0x77820000 - 0x7782e000      C:\WINNT\system32\RTUTILS.DLL
    0x783c0000 - 0x78451000      C:\WINNT\system32\SETUPAPI.DLL
    0x78d20000 - 0x78d85000      C:\WINNT\system32\USERENV.DLL
    0x774b0000 - 0x774e4000      C:\WINNT\system32\RASAPI32.dll
    0x77490000 - 0x774a1000      C:\WINNT\system32\rasman.dll
    0x77500000 - 0x77522000      C:\WINNT\system32\TAPI32.dll
    0x77b40000 - 0x77bc4000      C:\WINNT\system32\COMCTL32.DLL
    0x77c70000 - 0x77cb9000      C:\WINNT\system32\SHLWAPI.DLL
    0x77330000 - 0x77349000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777d0000 - 0x777d8000      C:\WINNT\System32\winrnr.dll
    0x777e0000 - 0x777e5000      C:\WINNT\system32\rasadhlp.dll
    0x7ca00000 - 0x7ca23000      C:\WINNT\system32\rsaenh.dll
    0x79570000 - 0x795fd000      C:\WINNT\system32\CRYPT32.dll
    0x77400000 - 0x77411000      C:\WINNT\system32\MSASN1.dll
    0x7ce30000 - 0x7d07d000      C:\WINNT\system32\shell32.dll
    0x6d7c0000 - 0x6d7c6000      D:\Java\jdk1.6.0_07\jre\bin\rmi.dll
    VM Arguments:
    jvm_args: -Djava.rmi.server.codebase=file:.\Prism.jar -Djava.security.policy=.\policy -Xms64m -Xmx1500m -Djava.library.path=.\lib;.\config -Dwrapper.key=ouZmthkGY4rb0RsE -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1388 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
    java_command: org.tanukisoftware.wrapper.WrapperSimpleApp com.socgen.prism.simulateur.client.PrismSimulatorClientOld
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=D:\Java\jdk1.6.0_07
    PATH=D:\Java\jdk1.6.0_07;D:\Java\jdk1.6.0_07\bin;C:\Program Files\nsr\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\MSDE\BINN;ITAPaging;D:\PROGRA~1\patrol\Patrol3\bin;D:\Program Files\patrol\Patrol3\bin;D:\Program Files\patrol\Patrol3\Pamo;C:\Program Files\Resource Kit\;C:\Program Files\Support Tools\;C:\Program Files\Dell\SysMgt\oma\bin;C:\Program Files\Dell\SysMgt\RAC3
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows 2000 Build 2195 Service Pack 4
    CPU:total 4 (1 cores per cpu, 2 threads per core) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 2097151k(2059808k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Server VM (10.0-b23) for windows-x86 JRE (1.6.0_07-b06), built on Jun 10 2008 01:09:43 by "java_re" with MS VC++ 7.1
    time: Sat Aug 09 17:44:47 2008
    elapsed time: 79016 seconds

    Answers are in this thread: http://forum.java.sun.com/thread.jspa?threadID=5139476
    Be sure to read the whole thing.

  • JVM Crash When Using JNI and COM

    I'm trying to call a DLL compiled from VB6 source code that I do not have access to. The VB6 code simply retrieves data from a DB2 database using ADO and my client code grabs that data and marshals it to my Java code. I'm attempting to achieve this using JNI and COM (without a third-party bridge). It works 75% of the time, but the other 25% of the time, the JVM crashes with the usual Hotspot crash log containing an access violation exception. However, I don't know what in my C++ code (VC++ 8) could be causing this except for passing a "wild" pointer to the code lying underneath the COM object interface. If that is the case, I don't know how I am doing that.
    The Java code that is calling my native method is running on Tomcat 5.5.25 and just to be safe, I am not allowing multiple threads to concurrently call the method in my JNI DLL (though I realize that this will kill performance). Once I can get past this problem, I'll do the COM interfacing on a worker thread in my native code so I don't screw up CoInitialize and CoUninitialize calls in the case the same thread is concurrently executing multiple calls to my native code.
    I've noticed that in most cases, the JVM crashes during my call to the pClsAccount->OpenConnection method. However, my DLL isn't what is listed on the top of the call stack, which is why I suspect the passing of a wild pointer, though I'm just taking a guess at that. Does anyone have an idea as to what's going on ?
    JNIEXPORT jobject JNICALL Java_CustomerInfo_nGetCustomerAccountInfo(JNIEnv *env, jobject customerInfo, jstring accountNumber, jstring iniFileName)
    jboolean isCopy;
    // Account info class and instance to be instantiated
    jclass accountInfoCls = NULL;
    jobject accountInfoObj = NULL;
    // The constructor ID of the accountInfoCls
    jmethodID ctorID = NULL;
    // Pointer to the interface for the ClsAccount COM object
    _clsAccount *pClsAccount = NULL;
    HRESULT hr;
    BSTR bstrIniFileName(L"");
    try
    const char *nativeAccountNumber = NULL;
    if (accountNumber != NULL)
    nativeAccountNumber = env->GetStringUTFChars(accountNumber, &isCopy);
    else
    jclass newExcCls;
    env->ExceptionDescribe();
    env->ExceptionClear();
    newExcCls = env->FindClass("java/lang/IllegalArgumentException");
    env->ThrowNew(newExcCls, "accountNumber passed in was null !");
    return NULL;
    // Initialization
    variantt varConnectionSucceeded = variantt(false);
    variantt varGetAccountInfoSucceeded = variantt(false);
    variantt varAccountNumber = variantt(nativeAccountNumber);
    bstrt bstrLastPaymentDate = bstrt();
    bstrt bstrLastErrorMessage = bstrt();
    bstrt bstrLastErrorNumber = bstrt();
    jlong jTotalDue = NULL;
    jlong jEstablishedDueDay = NULL;
    jlong jLastPaymentAmount = NULL;
    jstring jLastPaymentDate = NULL;
    jstring jLastErrorMessage = NULL;
    jstring jLastErrorNumber = NULL;
    jthrowable jException = NULL;
    const char *chLastPaymentDate = NULL;
    const char *chLastErrorMessage = NULL;
    const char *chLastErrorNumber = NULL;
    long long totalDue;
    long long lastPaymentAmount;
    long establishedDueDateDay;
    //Convert string from Java string to C string to VB string
    const char *nativeIniFileName = NULL;
    if (iniFileName != NULL)
    nativeIniFileName = env->GetStringUTFChars(iniFileName, &isCopy);
    else
    jclass newExcCls;
    env->ExceptionDescribe();
    env->ExceptionClear();
    newExcCls = env->FindClass("java/lang/IllegalArgumentException");
    env->ThrowNew(newExcCls, "iniFileName passed in was null");
    return NULL;
    bstrIniFileName = comutil::ConvertStringToBSTR(nativeIniFileName);
    CoInitialize(NULL);
    // Create an instance of the COClass with the interface over it
    hr = CoCreateInstance(__uuidof(clsAccount), NULL, CLSCTX_INPROC_SERVER, __uuidof(_clsAccount), (void **)&pClsAccount);
    if (hr == S_OK)
    varConnectionSucceeded.boolVal = pClsAccount->OpenConnection(&bstrIniFileName);
    &#12288;
    if (varConnectionSucceeded.boolVal == -1)
    varGetAccountInfoSucceeded.boolVal = pClsAccount->GetAccountPaymentInformation(&(varAccountNumber.GetVARIANT()));
    env->ReleaseStringUTFChars(accountNumber, nativeAccountNumber);
    // Extract all available account information from the ClsAccount object
    if (varGetAccountInfoSucceeded.boolVal == -1)
    totalDue = pClsAccount->TotalDue.int64;
    establishedDueDateDay = pClsAccount->EstablishedDueDateDay;
    lastPaymentAmount = pClsAccount->LastPaymentAmount.int64;
    bstrLastPaymentDate = pClsAccount->LastPaymentDate;
    chLastPaymentDate = comutil::ConvertBSTRToString(bstrLastPaymentDate.GetBSTR());
    jTotalDue = (jlong)totalDue;
    jEstablishedDueDay = (jlong)establishedDueDateDay;
    jLastPaymentAmount = (jlong)lastPaymentAmount;
    jLastPaymentDate = env->NewStringUTF(chLastPaymentDate);
    delete[] chLastPaymentDate;
    pClsAccount->CloseConnection();
    // Populate error fields if any errors occur
    bstrLastErrorMessage = pClsAccount->LastErrMessage;
    chLastErrorMessage = comutil::ConvertBSTRToString(bstrLastErrorMessage.GetBSTR());
    bstrLastErrorNumber = pClsAccount->LastErrNumber;
    chLastErrorNumber = comutil::ConvertBSTRToString(bstrLastErrorNumber.GetBSTR());
    jLastErrorMessage = env->NewStringUTF(chLastErrorMessage);
    jLastErrorNumber = env->NewStringUTF(chLastErrorNumber);
    delete[] chLastErrorMessage;
    delete[] chLastErrorNumber;
    const char* clsName = "com/nuance/merchantsmutual/businessentities/CustomerAccountInfo";
    // Find the Java class and the ID of its constructor
    accountInfoCls = env->FindClass(clsName);
    ctorID = env->GetMethodID(accountInfoCls, "<init>", "(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
    jException = env->ExceptionOccurred();
    if (jException != NULL)
    env->ExceptionDescribe();
    env->ExceptionClear();
    //Release all resources associated with the ClsAccount instance
    pClsAccount->Release();
    //Instantiate the class with the given parameters
    accountInfoObj = env->NewObject(accountInfoCls, ctorID, jTotalDue, jEstablishedDueDay, jLastPaymentAmount, jLastPaymentDate, jLastErrorMessage, jLastErrorNumber);
    jException = env->ExceptionOccurred();
    if (jException != NULL)
    env->ExceptionDescribe();
    env->ExceptionClear();
    else if (hr == REGDB_E_CLASSNOTREG)
    cout << "COM class not registered" << endl;
    else if ( hr == CLASS_E_NOAGGREGATION)
    cout << "COM class can't be aggregated" << endl;
    else if (hr == E_NOINTERFACE)
    cout << "No interface for COM class clsAccount" << endl;
    else if (hr == E_POINTER)
    cout << "*ppv pointer was NULL !" << endl;
    else
    cout << "Error occurred while creating COM object. HR is [" << hr << "]" << endl;
    // Free the BSTR because a new one was returned with a call to comutil::ConvertStringToBSTR
    SysFreeString(bstrIniFileName);
    // Release the string when it's no longer needed. MUST call if string won't be used
    // anymore or else a memory leak will occur
    env->ReleaseStringUTFChars(iniFileName, nativeIniFileName);
    CoUninitialize();
    &#12288;
    catch (_com_error &e)
    cout << "Encountered an exception in GetCustomerAccountInfo: Error was " << e.ErrorMessage();
    pClsAccount->Release();
    catch (...)
    pClsAccount->Release();
    return accountInfoObj;
    Edited by: Cthulhu76 on Jan 5, 2010 9:18 AM

    0x49202400 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=5340, stack(0x49bf0000,0x49c40000)]
    0x48a7e800 JavaThread "Thread-1" [_thread_in_native, id=5976, stack(0x48f00000,0x48f50000)]
    0x48a0dc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3072, stack(0x48c60000,0x48cb0000)]
    0x48a09000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4988, stack(0x48c10000,0x48c60000)]
    0x48a07c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3124, stack(0x48bc0000,0x48c10000)]
    0x48a07000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2572, stack(0x48b70000,0x48bc0000)]
    0x489f5c00 JavaThread "Finalizer" daemon [_thread_blocked, id=5752, stack(0x48b20000,0x48b70000)]
    0x489f4c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2596, stack(0x48ad0000,0x48b20000)]
    0x003c6000 JavaThread "main" [_thread_in_native, id=4252, stack(0x00820000,0x00870000)]
    Other Threads:
    0x489f0400 VMThread [stack: 0x48a80000,0x48ad0000] [id=5624]
    0x48a18800 WatcherThread [stack: 0x48cb0000,0x48d00000] [id=1192]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 36288K, used 12762K [0x02940000, 0x050a0000, 0x07800000)
    eden space 32256K, 34% used [0x02940000, 0x0343af58, 0x048c0000)
    from space 4032K, 37% used [0x04cb0000, 0x04e2ba28, 0x050a0000)
    to space 4032K, 0% used [0x048c0000, 0x048c0000, 0x04cb0000)
    tenured generation total 483968K, used 7518K [0x07800000, 0x250a0000, 0x42940000)
    the space 483968K, 1% used [0x07800000, 0x07f57958, 0x07f57a00, 0x250a0000)
    compacting perm gen total 14080K, used 14016K [0x42940000, 0x43700000, 0x46940000)
    the space 14080K, 99% used [0x42940000, 0x436f0320, 0x436f0400, 0x43700000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040f000      C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe
    0x7c800000 - 0x7c8c0000      C:\WINDOWS\system32\ntdll.dll
    0x77e40000 - 0x77f42000      C:\WINDOWS\system32\kernel32.dll
    0x77380000 - 0x77411000      C:\WINDOWS\system32\USER32.dll
    0x77c00000 - 0x77c48000      C:\WINDOWS\system32\GDI32.dll
    0x77f50000 - 0x77feb000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77c50000 - 0x77cef000      C:\WINDOWS\system32\RPCRT4.dll
    0x76f50000 - 0x76f63000      C:\WINDOWS\system32\Secur32.dll
    0x77ba0000 - 0x77bfa000      C:\WINDOWS\system32\MSVCRT.dll
    0x7c8d0000 - 0x7d0cf000      C:\WINDOWS\system32\SHELL32.dll
    0x77da0000 - 0x77df2000      C:\WINDOWS\system32\SHLWAPI.dll
    0x76290000 - 0x762ad000      C:\WINDOWS\system32\IMM32.DLL
    0x77420000 - 0x77523000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll
    0x6d7c0000 - 0x6da10000      C:\Program Files\Java\jre1.6.0_07\bin\client\jvm.dll
    0x76aa0000 - 0x76acd000      C:\WINDOWS\system32\WINMM.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x6d270000 - 0x6d278000      C:\Program Files\Java\jre1.6.0_07\bin\hpi.dll
    0x76b70000 - 0x76b7b000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d770000 - 0x6d77c000      C:\Program Files\Java\jre1.6.0_07\bin\verify.dll
    0x6d310000 - 0x6d32f000      C:\Program Files\Java\jre1.6.0_07\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      C:\Program Files\Java\jre1.6.0_07\bin\zip.dll
    0x6d570000 - 0x6d583000      C:\Program Files\Java\jre1.6.0_07\bin\net.dll
    0x71c00000 - 0x71c17000      C:\WINDOWS\system32\WS2_32.dll
    0x71bf0000 - 0x71bf8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71b20000 - 0x71b61000      C:\WINDOWS\system32\mswsock.dll
    0x5f270000 - 0x5f2ca000      C:\WINDOWS\system32\hnetcfg.dll
    0x71ae0000 - 0x71ae8000      C:\WINDOWS\System32\wshtcpip.dll
    0x76ed0000 - 0x76efa000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f70000 - 0x76f77000      C:\WINDOWS\System32\winrnr.dll
    0x76f10000 - 0x76f3e000      C:\WINDOWS\system32\WLDAP32.dll
    0x76f80000 - 0x76f85000      C:\WINDOWS\system32\rasadhlp.dll
    0x4a6a0000 - 0x4a6ac000      C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MMI\WEB-INF\lib\CustomerInfoProxy.dll
    0x77670000 - 0x777a9000      C:\WINDOWS\system32\ole32.dll
    0x77d00000 - 0x77d8b000      C:\WINDOWS\system32\OLEAUT32.dll
    0x7c420000 - 0x7c4a7000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_E6967989\MSVCP80.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_E6967989\MSVCR80.dll
    0x777b0000 - 0x77833000      C:\WINDOWS\system32\CLBCatQ.DLL
    0x77010000 - 0x770d6000      C:\WINDOWS\system32\COMRes.dll
    0x77b90000 - 0x77b98000      C:\WINDOWS\system32\VERSION.dll
    0x75da0000 - 0x75e5d000      C:\WINDOWS\system32\SXS.DLL
    0x75e60000 - 0x75e87000      C:\WINDOWS\system32\apphelp.dll
    0x4dc30000 - 0x4dc5e000      C:\WINDOWS\system32\msctfime.ime
    0x4b0d0000 - 0x4b395000      C:\WINDOWS\system32\xpsp2res.dll
    0x71bb0000 - 0x71bb9000      C:\WINDOWS\system32\WSOCK32.dll
    0x4bbe0000 - 0x4bbea000      C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MMI\WEB-INF\lib\ClearTranProxy.dll
    0x745e0000 - 0x7489e000      C:\WINDOWS\system32\msi.dll
    0x71c40000 - 0x71c97000      C:\WINDOWS\system32\NETAPI32.dll
    0x4bc50000 - 0x4bc6c000      C:\WINDOWS\system32\DBNETLIB.DLL
    0x71f60000 - 0x71f64000      C:\WINDOWS\system32\security.dll
    0x76c90000 - 0x76cb7000      C:\WINDOWS\system32\msv1_0.dll
    0x76cf0000 - 0x76d0a000      C:\WINDOWS\system32\iphlpapi.dll
    0x761b0000 - 0x76243000      C:\WINDOWS\system32\crypt32.dll
    0x76190000 - 0x761a2000      C:\WINDOWS\system32\MSASN1.dll
    0x4bcf0000 - 0x4bcff000      C:\Program Files\Common Files\System\Ole DB\SQLOLEDB.RLL
    0x4a8a0000 - 0x4a8aa000      C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MMI\WEB-INF\lib\MIGI.DLL
    0x73570000 - 0x736c2000      C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MMI\WEB-INF\lib\MSVBVM60.DLL
    0x4a950000 - 0x4a9e2000      C:\Program Files\Common Files\System\ado\msado15.dll
    0x74a50000 - 0x74a6a000      C:\WINDOWS\system32\MSDART.DLL
    0x4c850000 - 0x4c8c9000      C:\Program Files\Common Files\System\Ole DB\oledb32.dll
    0x4dbb0000 - 0x4dbc1000      C:\Program Files\Common Files\System\Ole DB\OLEDB32R.DLL
    VM Arguments:
    jvm_args: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\endorsed -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\logging.properties -Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\MMI\WEB-INF\lib vfprintf -Xms512m -Xmx1024m
    java_command: <unknown>
    Launcher Type: generic
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07
    [error occurred during error reporting (printing environment variables), id 0xc0000005]
    --------------- S Y S T E M ---------------
    OS: Windows Server 2003 family Build 3790 Service Pack 2
    CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
    Memory: 4k page, physical 2097151k(2097151k free), swap 4194303k(4194303k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b23) for windows-x86 JRE (1.6.0_07-b06), built on Jun 10 2008 01:14:11 by "java_re" with MS VC++ 7.1
    time: Mon Dec 28 15:24:00 2009
    elapsed time: 600 seconds

Maybe you are looking for

  • IDVD is not working in IMOVIE

    Hi, Couple of months ago I had to reinstall my Imac OS X 10.5 since then my iMovie's IDVD option is not working. I thought if I upgrade the OS and iLife it would solve the problem. Recently I upgrade my OS to 10.6.3 and Ilife to iLife 11. Even after

  • Mini ipod - Can't see the screen

    I can hear the music but can't see anything on my Mini ipod screen. Tried troubleshooting, screen light appears but can't see the apple logo.

  • Help with physical download of my library from cloud to new PC

    Hello! I have my entire itunes library saved in the itunes cloud, over 12,000 songs.  I would like to physically download all of them to a new PC and deactivate my old PC.  Is there a way to do this as a full group or is the only way to select the so

  • U410 Windows 8 how do you split the screen in two?

    I have an IdeaPad U410 with Windows 8 as an Operating system. I would like to know how do you split the screen in two. Also I would like to know if I can put my screen as a touch? Moderator Note; subject edited for relevancy

  • Switch logfile hangs

    Hi When we repeatedly give switch logfile command, DB is hanging after some 7 or 8 successful switches. But if we give manual checkpoint, log is switching. Then again it is hanging after some 5 or 6 successful runs. Database version 9.2.0.5 Solaris l