Thread local variable causes JVM crash through JNI

Hi All,
My team developed a JDBC driver which uses some native C codes. (Compiler: cl.exe, O/S: Windows XP)
I found that JVM crashes at specific point. So I used debugger(Visual Studio 2005) to find the position.
==================File1.c=====================
JNIEXPORT jbyteArray JNICALL
Java_com_lone_wolf_MyClass_myFunc(
JNIEnv *env, jclass cls,
jint msgtype, jbyteArray recvarr)
jbyteArray outarr;
int x = 3;
outarr = my_initializer (int &x);
return outarr;
==================File2.c=====================
__declspec(thread) int thread_id;
static jbyteArray my_initializer (int *a)
thread_id = *a; // HERE JVM CRASHES
When my_initializer() tries to put *a into thread_id, JVM crashed with the following error message.
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4931c6bf, pid=3560, tid=848
# Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode)
# Problematic frame:
# C [hello.dll+0xc6bf]
--------------- T H R E A D ---------------
Current thread (0x00037168): JavaThread "main" [_thread_in_native, id=848]
Stack: [0x00040000,0x00080000), sp=0x0007f494, free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [hello.dll+0xc6bf]
C [hello.dll+0xbebb]
C [hello.dll+0x3c30]
C [hello.dll+0x18e6]
C [hello.dll+0x11b8]
j com.lone.wolf.MyClass.myFunc(I[B)[B+0
v ~StubRoutines::call_stub
V [jvm.dll+0x8176e]
V [jvm.dll+0xd481d]
V [jvm.dll+0x8163f]
V [jvm.dll+0x885cd]
C [java.exe+0x14c0]
C [java.exe+0x64cd]
C [kernel32.dll+0x16ff7]
VM Arguments:
jvm_args: -Xms128m -Xmx1024m
java_command: sampler.Sampler
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2, ht
Memory: 4k page, physical 2062180k(1378880k free), swap 4003992k(3252828k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_01-b08) for windows-x86, built on Dec 6 2004 19:51:00 by "java_re" with MS VC++ 6.0
Any idea how to solve this issue will be greatly appreciated.
Thank you.

This deffinition ( __declspec(thread) ) of the thread local veriable does not works in some cases (see articles in MSDN how to define thread local variables in C++ code). JVM loads your native module (DLL) with LoadLibrary function. This is one of the cases when __declspec(thread) is wrong in C++ code.

Similar Messages

  • IMSL C library causes JVM crash through JNI in GC with JDK 1.6

    Hi Java friends,
    We use the IMSL C library (made by Visual Numerics) via JNI which picks up a C++ so on Linux. Under JDK 1.5 it works fine. Under 1.6 it crashes in the GC. I put together a very simple testcase that just calls the IMSL error options function (which sets up the library) and it causes the JVM to crash somewhere in the GC. The reason I know it's in the GC is that the crash is not immediate, it's only when the GC is active, so we wrote some test code to push the GC like this:
    log("Looping");
    long block = 10000000;
    int numBlocks = 10;
    long loops = block * numBlocks;
    for (long i = 0; i < loops; i++) {
    // Create some objects that need disposal
    String.valueOf(i);
    if (i % block == 0) {
    log("Reached " + i);
    System.gc();
    Anyone got any idea why? Crash dump follows.
    Many thanks,
    David.
    # An unexpected error has been detected by Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x00000000, pid=23854, tid=4143893424
    # Java VM: Java HotSpot(TM) Server VM (1.6.0_03-b05 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 (0x08058c00): JavaThread "main" [_thread_in_Java, id=23855]
    siginfo:
    [error occurred during error reporting, step 90, id 0xb]
    Stack: [0xf6f9c000,0xf6fed000), sp=0xf6feb55c, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x53b9a7]
    V [libjvm.so+0x53c5b4]
    C [libpthread.so.0+0xb890]
    V [libjvm.so+0x53b3f5]
    V [libjvm.so+0x53b9a7]
    V [libjvm.so+0x4541d0]
    V [libjvm.so+0x451a68]
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x08157c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=23866]
    0x08155c00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=23865]
    0x08154800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=23864]
    0x08153400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=23863]
    0x08140400 JavaThread "Finalizer" daemon [_thread_blocked, id=23862]
    0x0813f800 JavaThread "Reference Handler" daemon [_thread_blocked, id=23861]
    =>0x08058c00 JavaThread "main" [_thread_in_Java, id=23855]
    Other Threads:
    0x0813d000 VMThread [id=23860]
    0x08159400 WatcherThread [id=23867]
    VM state:synchronizing (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x08056d60/0x08056d88] Safepoint_lock - owner thread: 0x0813d000
    [0x08056de0/0x08056e08] Threads_lock - owner thread: 0x0813d000
    Heap
    PSYoungGen total 87040K, used 8962K [0xecca0000, 0xf21e0000, 0xf3e60000)
    eden space 86784K, 10% used [0xecca0000,0xed528b98,0xf2160000)
    from space 256K, 87% used [0xf21a0000,0xf21d8040,0xf21e0000)
    to space 256K, 0% used [0xf2160000,0xf2160000,0xf21a0000)
    PSOldGen total 230976K, used 0K [0xb3e60000, 0xc1ff0000, 0xecca0000)
    object space 230976K, 0% used [0xb3e60000,0xb3e60000,0xc1ff0000)
    PSPermGen total 16384K, used 2540K [0xafe60000, 0xb0e60000, 0xb3e60000)
    object space 16384K, 15% used [0xafe60000,0xb00db1d8,0xb0e60000)
    Dynamic libraries:
    0085a000-0086f000 r-xp 00000000 68:06 213117 /lib/ld-2.3.4.so
    0086f000-00870000 r-xp 00015000 68:06 213117 /lib/ld-2.3.4.so
    00870000-00871000 rwxp 00016000 68:06 213117 /lib/ld-2.3.4.so
    00873000-00875000 r-xp 00000000 68:06 213179 /lib/libdl-2.3.4.so
    00875000-00877000 rwxp 00001000 68:06 213179 /lib/libdl-2.3.4.so
    0089b000-009c0000 r-xp 00000000 68:06 213118 /lib/tls/libc-2.3.4.so
    009c0000-009c1000 r-xp 00124000 68:06 213118 /lib/tls/libc-2.3.4.so
    009c1000-009c4000 rwxp 00125000 68:06 213118 /lib/tls/libc-2.3.4.so
    009c4000-009c6000 rwxp 009c4000 00:00 0
    009c8000-009e9000 r-xp 00000000 68:06 213200 /lib/tls/libm-2.3.4.so
    009e9000-009eb000 rwxp 00020000 68:06 213200 /lib/tls/libm-2.3.4.so
    009ed000-009fb000 r-xp 00000000 68:06 213087 /lib/tls/libpthread-2.3.4.so
    009fb000-009fd000 rwxp 0000d000 68:06 213087 /lib/tls/libpthread-2.3.4.so
    009fd000-009ff000 rwxp 009fd000 00:00 0
    00a01000-00a09000 r-xp 00000000 68:06 213205 /lib/tls/librt-2.3.4.so
    00a09000-00a0b000 rwxp 00007000 68:06 213205 /lib/tls/librt-2.3.4.so
    00a0b000-00a15000 rwxp 00a0b000 00:00 0
    00a31000-00a43000 r-xp 00000000 68:06 213202 /lib/libnsl-2.3.4.so
    00a43000-00a45000 rwxp 00011000 68:06 213202 /lib/libnsl-2.3.4.so
    00a45000-00a47000 rwxp 00a45000 00:00 0
    06000000-065a0000 r-xp 00000000 00:1c 172281 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/server/libjvm.so
    065a0000-065db000 rwxp 005a0000 00:1c 172281 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/server/libjvm.so
    065db000-069fc000 rwxp 065db000 00:00 0
    08048000-08052000 r-xp 00000000 00:1c 287782 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/bin/java
    08052000-08053000 rwxp 00009000 00:1c 287782 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/bin/java
    08053000-08545000 rwxp 08053000 00:00 0
    a7210000-a7211000 ---p a7210000 00:00 0
    a7211000-a7c11000 rwxp a7211000 00:00 0
    a7c11000-a7cd7000 r-xp 00000000 00:1c 498129 /home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/lib/libstdc++.so.6.0.3
    a7cd7000-a7cdc000 rwxp 000c6000 00:1c 498129 /home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/lib/libstdc++.so.6.0.3
    a7cdc000-a7ce1000 rwxp a7cdc000 00:00 0
    a7ce1000-a7dc6000 r-xp 00000000 00:1f 2900632 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libstlport-mcg-5.1.so
    a7dc6000-a7de2000 rwxp 000e4000 00:1f 2900632 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libstlport-mcg-5.1.so
    a7de2000-a7de6000 rwxp a7de2000 00:00 0
    a7de6000-a7f5c000 r-xp 00000000 00:1f 2900652 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_vml_def.so
    a7f5c000-a7f6b000 rwxp 00175000 00:1f 2900652 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_vml_def.so
    a7f6b000-a8434000 r-xp 00000000 00:1f 2900523 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_lapack.so
    a8434000-a8436000 rwxp 004c9000 00:1f 2900523 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_lapack.so
    a8436000-a8492000 r-xp 00000000 00:1f 2900484 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_core.so
    a8492000-a8496000 rwxp 0005b000 00:1f 2900484 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_core.so
    a8496000-a84a4000 rwxp a8496000 00:00 0
    a84a4000-a8652000 r-xp 00000000 00:1f 2900521 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_intel_thread.so
    a8652000-a869f000 rwxp 001ae000 00:1f 2900521 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_intel_thread.so
    a869f000-a86a0000 rwxp a869f000 00:00 0
    a86a0000-a87d9000 r-xp 00000000 00:1f 2900517 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_intel.so
    a87d9000-a87dc000 rwxp 00139000 00:1f 2900517 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libmkl_intel.so
    a87dc000-a87e2000 rwxp a87dc000 00:00 0
    a87e2000-a87e9000 r-xp 00000000 00:1f 570263 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcstat_iblas.so
    a87e9000-a87ea000 rwxp 00006000 00:1f 570263 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcstat_iblas.so
    a87ea000-a8b08000 r-xp 00000000 00:1f 570239 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcstat.so
    a8b08000-a8b45000 rwxp 0031d000 00:1f 570239 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcstat.so
    a8b45000-a8b5e000 r-xp 00000000 00:1f 570822 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath_iblas.so
    a8b5e000-a8b5f000 rwxp 00019000 00:1f 570822 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath_iblas.so
    a8b5f000-a8c18000 r-xp 00000000 00:1f 570832 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath_scalar.so
    a8c18000-a8c19000 rwxp 000b8000 00:1f 570832 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath_scalar.so
    a8c19000-a8ee7000 r-xp 00000000 00:1f 570819 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath.so
    a8ee7000-a8ef6000 rwxp 002ce000 00:1f 570819 /home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib/libimslcmath.so
    a8ef6000-a8ef7000 rwxp a8ef6000 00:00 0
    a8ef7000-a8f19000 r-xp 00000000 00:1f 2900421 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libboost_thread-mcg-1.34-stlport-5.1.so
    a8f19000-a8f1d000 rwxp 00022000 00:1f 2900421 /home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib/libboost_thread-mcg-1.34-stlport-5.1.so
    a8f1d000-aa180000 r-xp 00000000 00:1f 761178 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2mlclib.so
    aa180000-aa430000 rwxp 01263000 00:1f 761178 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2mlclib.so
    aa430000-aa53a000 rwxp aa430000 00:00 0
    aa53a000-ad779000 r-xp 00000000 00:1f 699688 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2ocean.so
    ad779000-ae56b000 rwxp 0323f000 00:1f 699688 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2ocean.so
    ae56b000-ae7a8000 rwxp ae56b000 00:00 0
    ae7a8000-ae886000 r-xp 00000000 00:1f 699721 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2generic.so
    ae886000-ae8a6000 rwxp 000de000 00:1f 699721 /home/cartedav/workspaces/dev/mlclib/build/i686-rhel4.0-gcc3.4/checked-stlport-fine-full-multi-dynamic/libgda2generic.so
    ae8a6000-ae8ac000 rwxp ae8a6000 00:00 0
    ae8ac000-ae904000 r-xp 00000000 00:1c 206109 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libguide.so
    ae904000-ae909000 rwxp 00058000 00:1c 206109 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libguide.so
    ae909000-ae90e000 rwxp ae909000 00:00 0
    ae90e000-aef20000 r-xp 00000000 00:1c 52046 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libgda2rt.so
    aef20000-af01d000 rwxp 00612000 00:1c 52046 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libgda2rt.so
    af01d000-af028000 rwxp af01d000 00:00 0
    af028000-af030000 r-xp 00000000 00:1c 497827 /home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/lib/libgcc_s.so.1
    af030000-af031000 rwxp 00007000 00:1c 497827 /home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/lib/libgcc_s.so.1
    af031000-af136000 r-xp 00000000 00:1c 205704 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libgda2jni.so
    af136000-af158000 rwxp 00105000 00:1c 205704 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/libgda2jni.so
    af158000-af15d000 rwxp af158000 00:00 0
    af15d000-af15f000 r-xs 00009000 00:1c 205693 /home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/gda2.jar
    af15f000-af160000 ---p af15f000 00:00 0
    af160000-af1e0000 rwxp af160000 00:00 0
    af1e0000-af1e3000 ---p af1e0000 00:00 0
    af1e3000-af231000 rwxp af1e3000 00:00 0
    af231000-af234000 ---p af231000 00:00 0
    af234000-af2b2000 rwxp af234000 00:00 0
    af2b2000-af2b5000 ---p af2b2000 00:00 0
    af2b5000-af333000 rwxp af2b5000 00:00 0
    af333000-af336000 ---p af333000 00:00 0
    af336000-af384000 rwxp af336000 00:00 0
    af384000-af584000 r-xp 00000000 68:06 101636 /usr/lib/locale/locale-archive
    af584000-af587000 ---p af584000 00:00 0
    af587000-af5d5000 rwxp af587000 00:00 0
    af5d5000-af5d8000 ---p af5d5000 00:00 0
    af5d8000-af626000 rwxp af5d8000 00:00 0
    af626000-af627000 ---p af626000 00:00 0
    af627000-af6d7000 rwxp af627000 00:00 0
    af6d7000-af853000 r-xs 02c8f000 00:1c 925583 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/rt.jar
    af853000-af854000 ---p af853000 00:00 0
    af854000-af8d4000 rwxp af854000 00:00 0
    af8d4000-af8d5000 ---p af8d4000 00:00 0
    af8d5000-af955000 rwxp af8d5000 00:00 0
    af955000-af956000 ---p af955000 00:00 0
    af956000-af9d6000 rwxp af956000 00:00 0
    af9d6000-af9d7000 ---p af9d6000 00:00 0
    af9d7000-afa5f000 rwxp af9d7000 00:00 0
    afa5f000-afa77000 rwxp afa5f000 00:00 0
    afa77000-afae8000 rwxp afa77000 00:00 0
    afae8000-afc3f000 rwxp afae8000 00:00 0
    afc3f000-afc47000 rwxp afc3f000 00:00 0
    afc47000-afc5f000 rwxp afc47000 00:00 0
    afc5f000-afcd0000 rwxp afc5f000 00:00 0
    afcd0000-afe26000 rwxp afcd0000 00:00 0
    afe26000-afe51000 rwxp afe26000 00:00 0
    afe51000-afe5f000 rwxp afe51000 00:00 0
    afe5f000-b0e60000 rwxp afe5f000 00:00 0
    b0e60000-b3e60000 rwxp b0e60000 00:00 0
    b3e60000-c1ff0000 rwxp b3e60000 00:00 0
    c1ff0000-ecca0000 rwxp c1ff0000 00:00 0
    ecca0000-f21e0000 rwxp ecca0000 00:00 0
    f21e0000-f3e60000 rwxp f21e0000 00:00 0
    f3e6d000-f3e76000 rwxp f3e6d000 00:00 0
    f3e76000-f3f2d000 rwxp f3e76000 00:00 0
    f3f2d000-f416d000 rwxp f3f2d000 00:00 0
    f416d000-f6f2d000 rwxp f416d000 00:00 0
    f6f2d000-f6f3c000 r-xp 00000000 00:1c 172554 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libzip.so
    f6f3c000-f6f3e000 rwxp 0000e000 00:1c 172554 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libzip.so
    f6f3e000-f6f61000 r-xp 00000000 00:1c 172497 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libjava.so
    f6f61000-f6f63000 rwxp 00023000 00:1c 172497 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libjava.so
    f6f63000-f6f6e000 r-xp 00000000 00:1c 172493 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libverify.so
    f6f6e000-f6f6f000 rwxp 0000b000 00:1c 172493 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/libverify.so
    f6f6f000-f6f77000 rwxs 00000000 68:06 247809 /tmp/hsperfdata_cartedav/23854
    f6f77000-f6f7f000 r-xp 00000000 68:06 213047 /lib/libnss_nis-2.3.4.so
    f6f7f000-f6f81000 rwxp 00007000 68:06 213047 /lib/libnss_nis-2.3.4.so
    f6f81000-f6f8a000 r-xp 00000000 68:06 213042 /lib/libnss_files-2.3.4.so
    f6f8a000-f6f8c000 rwxp 00008000 68:06 213042 /lib/libnss_files-2.3.4.so
    f6f93000-f6f99000 r-xp 00000000 00:1c 172254 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/native_threads/libhpi.so
    f6f99000-f6f9a000 rwxp 00006000 00:1c 172254 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/native_threads/libhpi.so
    f6f9a000-f6f9b000 rwxp f6f9a000 00:00 0
    f6f9b000-f6f9c000 ---p f6f9b000 00:00 0
    f6f9c000-f6f9f000 ---p f6f9c000 00:00 0
    f6f9f000-f6fef000 rwxp f6f9f000 00:00 0
    f6fef000-f6ff6000 r-xp 00000000 00:1c 172514 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/jli/libjli.so
    f6ff6000-f6ff8000 rwxp 00006000 00:1c 172514 /home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/jli/libjli.so
    f6fff000-f7000000 rwxp f6fff000 00:00 0
    feff9000-ff000000 rwxp feff9000 00:00 0
    ffffe000-fffff000 ---p 00000000 00:00 0
    VM Arguments:
    java_command: TestCrash AGRCRV.ODR.CC.xdr
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03
    PATH=/home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/bin:/home/cartedav/bin:/home/gdadev/tools/i686/rhel4.0/j2sdk/bin:/home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/bin:/home/gdadev/tools/i686/rhel4.0/bin:/home/cartedav/workspaces/dev/images/i686-rhel4.0-gcc3.4/bin:/home/gdadev/tools/i686/rhel4.0/j2sdk/bin:/home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/bin:/home/gdadev/tools/i686/rhel4.0/j2sdk/bin:/apps/linuxdev/bin:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/quest/bin:/usr/X11R6/bin:
    LD_LIBRARY_PATH=/home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386/server:/home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/lib/i386:/home/gdadev/tools/i686/rhel4.0/jdk1.6.0_03/jre/../lib/i386:/home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib:/home/gdadev/builds/nightly/i686-rhel4.0-gcc3.4/:/home/cartedav/workspaces/dev/mlclib/vendors-gda2/i686-rhel4.0-gcc3.4/lib:/home/gdadev/tools/i686/rhel4.0/j2sdk/lib:/home/gdadev/tools/i686/rhel4.0/gcc-3.4.6/lib:/home/gdadev/tools/i686/rhel4.0/lib:/home/cartedav/workspaces/dev/images/i686-rhel4.0-gcc3.4/lib:/home/cartedav/workspaces/dev/vendor/i686-rhel4.0-gcc3.4/lib:/home/gdadev/tools/i686/rhel4.0/j2sdk/lib:/apps/linuxdev/lib::
    SHELL=/bin/csh
    DISPLAY=169.243.119.66:0.0
    HOSTTYPE=i386-linux
    OSTYPE=linux
    MACHTYPE=i386
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x53c560], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x53c560], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x451a50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x451a50], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x451a50], sa_mask[0]=0x00000000, sa_flags=0xe0000000, flags was changed from 0x10000004, consider using jsig library
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x453a80], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x4534a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x4534a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x4534a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x4534a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR2: [libjvm.so+0x453a80], sa_mask[0]=0x00000000, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
    uname:Linux 2.6.9-42.0.2.ELhugemem #1 SMP Thu Aug 17 18:22:52 EDT 2006 i686
    libc:glibc 2.3.4 NPTL 2.3.4
    rlimit: STACK 10240k, CORE 0k, NPROC 274431, NOFILE 1024, AS infinity
    load average:0.28 0.17 0.16
    CPU:total 4 (2 cores per cpu, 1 threads per core) family 15 model 65 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext
    Memory: 4k page, physical 16629672k(722080k free), swap 16779884k(16779740k free)
    vm_info: Java HotSpot(TM) Server VM (1.6.0_03-b05) for linux-x86, built on Sep 24 2007 22:32:39 by "java_re" with gcc 3.2.1-7a (J2SE release)

    Thanks very much for your advice. Unfortunately, stepping through the code doesn't help at all. The error occurs much later after the C code has been executed, whilst running the java code (which is just creating string objects to invoke the GC). The C code that we are executing is extremely simple - it consists of Sun's JNI example coupled with a sinlge call to the IMSL error options function:
    JNIEXPORT jbyteArray JNICALL Java_ReadFile_loadFile
    (JNIEnv * env, jobject jobj, jstring name) {
    printf("%s", "Setting imsl_error_options()...\n");
    imsl_error_options( IMSL_SET_SIGNAL_TRAPPING, 0, // Disable IMSL signal trapping - necessary for MT code.
    IMSL_SET_STOP, IMSL_FATAL, 0, // Disable stopping on FATAL errors
    IMSL_SET_STOP, IMSL_FATAL_IMMEDIATE, 0, // Disable stopping on FATAL_IMMEDIATE errors
    IMSL_SET_STOP, IMSL_TERMINAL, 0, // Disable stopping on TERMINAL errors
    IMSL_SET_PRINT, IMSL_FATAL, 1, // Enable printing on FATAL errors
    IMSL_SET_PRINT, IMSL_FATAL_IMMEDIATE, 1, // Enable printing on FATAL_IMMEDIATE errors
    IMSL_SET_PRINT, IMSL_TERMINAL, 1, // Enable printing on TERMINAL errors
    IMSL_SET_PRINT, IMSL_WARNING, 1, // Enable printing on WARNING errors
    IMSL_SET_PRINT, IMSL_WARNING_IMMEDIATE, 1, // Enable printing on WARNING_IMMEDIATE errors
    IMSL_SET_PRINT, IMSL_ALERT, 1, // Enable printing on TERMINAL errors
    IMSL_SET_PRINT, IMSL_NOTE, 1, // Enable printing on TERMINAL errors
    0 );
    caddr_t m;
    jbyteArray jb;
    jboolean iscopy;
    struct stat finfo;
    const char mfile = (env)->GetStringUTFChars(
    env, name, &iscopy);
    int fd = open(mfile, O_RDONLY);
    if (fd == -1) {
    printf("Could not open %s\n", mfile);
    lstat(mfile, &finfo);
    m = mmap((caddr_t) 0, finfo.st_size,
    PROT_READ, MAP_PRIVATE, fd, 0);
    if (m == (caddr_t)-1) {
    printf("Could not mmap %s\n", mfile);
    return(0);
    jb=(*env)->NewByteArray(env, finfo.st_size);
    (*env)->SetByteArrayRegion(env, jb, 0,
    finfo.st_size, (jbyte *)m);
    close(fd);
    (*env)->ReleaseStringUTFChars(env, name, mfile);
    return (jb);
    If I remove the call to imsl_error_options then there is no adverse behaviour - the Java loop completes ok (creating 1 trillion strings in the process) and the manual call the GC works fine. With the call to imsl, the execution gets to the string creation loop (in Java, after the C has been executed) and then it dies pretty quickly (presumably after the GC kicks in to clean up some of the strings).
    Here is the java code:
    import java.util.*;
    class ReadFile {
    //Native method declaration
    native byte[] loadFile(String name);
    //Load the library
    static {
    System.loadLibrary("nativelib");
    public static void main(String args[]) {
    byte buf[];
    //Create class instance
    ReadFile mappedFile=new ReadFile();
    //Call native method to load ReadFile.java
    buf=mappedFile.loadFile("ReadFile.java");
    //Print contents of ReadFile.java
    for(int i=0;i<buf.length;i++) {
    System.out.print((char)buf);
    System.out.print("Now running the string creation loop...\n");
    long block = 100000000;
    int numBlocks = 10;
    long loops = block * numBlocks;
    for (long i = 0; i < loops; i++) {
    // Create some objects that need disposal
    String.valueOf(i);
    if (i % block == 0) {
    System.out.print("Reached " + i + "\n");
    System.out.print("Now running the GC...\n");
    System.gc();

  • 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

  • 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

  • Labview 8.0 PDA local & global variable cause a crash

    I've attached a pic of the portion of the VI that causes the PDA
    application to crash. What is happening is that I write the initial
    resistance0 to a (global or local) of a chip by using a case
    structure  that sets the value when the while loop first executes,
    afterwards, every other iteration, it sets the resitance to a (local or
    global variable) called resistance then it plots it.. unfortunately,
    accessing the variable
    this way causes it to crash .. Any help would be greatly appreciated.
    Message Edited by GHernandez on 02-09-2006 06:25 PM
    Attachments:
    Problems.jpg ‏162 KB

    I've re-written this application , where i have not included global
    variables for resistance, or resistance0 or the counter. The VI
    executes for maybe a  min or 2 then crashes giving me the
    following error:
    App failed. Error code 560331006. Bad input argument to function.
    unfortunately, this error code does not tell me anything.
    Message Edited by GHernandez on 02-10-2006 04:51 PM
    Message Edited by GHernandez on 02-10-2006 04:52 PM
    Attachments:
    problema.jpg ‏158 KB

  • OCI causing JVM crash

    # A fatal error has been detected by the Java Runtime Environment:
    # java.lang.OutOfMemoryError: requested 746 bytes for jbyte in /BUILD_AREA/jdk6_21/hotspot/src/share/vm/prims/jni.cpp. Out of swap space?
    # Internal Error (allocation.inline.hpp:39), pid=21129, tid=667401120
    # Error: jbyte in /BUILD_AREA/jdk6_21/hotspot/src/share/vm/prims/jni.cpp
    # JRE version: 6.0_21-b06
    # Java VM: Java HotSpot(TM) Server VM (17.0-b16 mixed mode linux-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 (0x2f929000): JavaThread "DRIVER:mm7adapter:12:7" [_thread_in_vm, id=21834, stack(0x27c5b000,0x27c7c000)]
    Stack: [0x27c5b000,0x27c7c000], sp=0x27c7a874, free space=7e27c7c000k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x6a9262]
    V [libjvm.so+0x2b277f]
    V [libjvm.so+0x3c0b0f]
    C [libocijdbc10.so+0x108ff]
    C [libocijdbc10.so+0x11788] Java_oracle_jdbc_driver_T2CConnection_lobGetLength+0x30
    J oracle.jdbc.driver.T2CConnection.lobGetLength(J[BI)J
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J oracle.jdbc.driver.T2CConnection.lobGetLength(J[BI)J
    J oracle.jdbc.driver.T2CConnection.length(Loracle/sql/BLOB;)J
    J com.firsthop.common.database.ReadConnectionImpl.getByteArray(Ljava/lang/String;Ljava/sql/ResultSet;I)[B
    J com.firsthop.common.database.ReadConnectionWrapper.getByteArray(Ljava/lang/String;Ljava/sql/ResultSet;I)[B
    J com.firsthop.mr.storage.MultiJDBCStorage.fillInitiator(Lcom/firsthop/common/database/ReadConnection;Ljava/lang/String;Ljava/sql/ResultSet;Lcom/firsthop/mr/router/TransactionResponder;)Lcom/firsthop/mr/router/TransactionInitiator;
    J com.firsthop.mr.storage.MultiJDBCStorage.addInitiators(Lcom/firsthop/mr/router/TransactionResponder;Ljava/util/Collection;)V
    J com.firsthop.mr.storage.CacheStorage.getResponderByTransactionID(Ljava/lang/String;)Lcom/firsthop/mr/router/TransactionResponder;
    j com.firsthop.mr.router.RoutingEngine.getResponderByTransactionID(Ljava/lang/String;)Lcom/firsthop/mr/router/TransactionResponder;+5
    j com.firsthop.mr.router.RoutingEngine.scheduleStatusResend(Ljava/lang/String;)Z+53
    j com.firsthop.mr.router.RoutingEngine.scheduleResend(Lcom/firsthop/mr/message/Message;I)Z+68
    j com.firsthop.mr.drivers.Driver.getMessage(Ljava/lang/Object;)Lcom/firsthop/mr/message/Message;+260
    J com.firsthop.mr.drivers.Driver$QueueWorker.run()V
    j com.firsthop.common.threadpool.ThreadControl.run()V+47
    j com.firsthop.common.threadpool.ThreadPool$PoolThread.run()V+467
    v ~StubRoutines::call_stub
    VM Arguments:
    jvm_args: -Xms1024M -Xmx2048M -Dcom.firsthop.common.database.tracefile=log/%m-db.trace -Dcom.firsthop.common.database.debug=true -Dcom.firsthop.common.database.trace=log/%m-db.trace -enableassertions -Dnetworkaddress.cache.ttl=3600 -Dnetworkaddress.cache.negative.ttl=1800 -Djava.security.auth.login.config=conf/jaas.conf -Dorg.apache.commons.logging.Log=com.firsthop.common.log.JakartaInfoDLogBridge -Djava.net.preferIPv4Stack=true -Dhttp.maxConnections=50 -Dsun.net.client.defaultReadTimeout=30000 -Dsun.net.client.defaultConnectTimeout=10000 -Djava.awt.headless=true -Dsun.net.http.retryPost=false -Dcom.firsthop.mr.common.plugin.usageLogDir=/apps/gateway/current/cdr/.usagelog/ -verbose:gc -XX:+HeapDumpOnOutOfMemoryError -Xss128k -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintCommandLineFlags -XX:+HeapDumpOnOutOfMemoryError -Dmodule.name=mmsrouter -Dmodule.home=/apps/gateway/current -Dhost.name=mmsgwy3 -Dmodule.config_file=conf/mmsrouter.conf -Dmodule.xml_config_file=conf/mmsrouter.xml -Dmodule.pid_file=var/mmsrouter.pid -Dmodule.log_file=log/mmsrouter.log -Dmodule.output_prefix=log/mmsrouter
    java_command: com.firsthop.common.platform.ModuleStarter mmsrouter conf/mmsrouter.xml log/mmsrouter.log
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/apps/jdk
    PATH=/apps/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/bin:/sbin:/home/ins/bin:/apps/oracle/10.2.0.3/client/bin:/usr/sbin
    LD_LIBRARY_PATH=/apps/jdk1.6.0_21/jre/lib/i386/server:/apps/jdk1.6.0_21/jre/lib/i386:/apps/jdk1.6.0_21/jre/../lib/i386:/apps/oracle/10.2.0.3/client/lib32
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x6a9eb0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x6a9eb0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x578180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: SIG_IGN, sa_mask[0]=0x3e7bf217, sa_flags=0x10000004
    SIGXFSZ: [libjvm.so+0x578180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x578180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x57adc0], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x57aaf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGTERM: [libjvm.so+0x57aaf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x57aaf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
    uname:Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686
    libc:glibc 2.3.4 NPTL 2.3.4
    rlimit: STACK 10240k, CORE infinity, NPROC 274431, NOFILE 4096, AS infinity
    load average:2.62 2.52 2.43
    CPU:total 4 (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 16631944k(153644k free), swap 18940592k(18821620k free)
    vm_info: Java HotSpot(TM) Server VM (17.0-b16) for linux-x86 JRE (1.6.0_21-b06), built on Jun 22 2010 01:04:46 by "java_re" with gcc 3.2.1-7a (J2SE release)
    time: Fri Sep 30 17:09:15 2011
    elapsed time: 712510 seconds

    Technically, the crash appears to happen in Java_oracle_jdbc_driver_T2CConnection_lobGetLength, i.e. the JNI native impl behind the Java method native, and not in OCI itself. I'm sure that method makes OCI calls (like OCILobGetLength2), but not in this particular stack trace. So this is a bug in the native part of OCI-based Java driver for Oracle, supplied by Oracle, which you should report to Oracle. There's nothing anyone can do I'm afraid in this forum. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Java print caused JVM crash on Vista platform with JDK 1.5.0_14

    Platform: JDK 1.5.0_14 + Vista
    The issue didn't exit in windows XP or 2003. It's only Vista specific.
    I found the bugs (6358747/6574633 and 6395356) in SUN’s official site. SUN developer only fixed the bug 6358747/6574633 for XP (fixed in JDK 1.5.0_11 and 1.6) and marked the bug 6395356 for Vista as duplicate, that is, the bug for Vista was not fixed at that time. In the meanwhile I ran the code posted in the bug report (6358747/6574633) with JDK 1.5.0_14 on vista. The issue still occurred. That means, 6395356 was not actually a duplicate of 6358747/6574633.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6358747 or http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6574633 - For XP
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6395356 - For Vista
    Currently I knew the bug for vista has been fixed in higher JDK version (1.5.0_18 or above). But our application is based on 1.5.0_14 and we didn't solve the issue by upgrading the JDK version because some other reasons. So I would like to know if there is a workaround?
    In addition, the bug for XP has a workaround posted in the bug report link. But I didn't find the similar settings for Vista. Anyone could help me?
    *[Workaround for XP]*
    Control Panel->Regional and Language Options->Lanuages Tab-> Pressed "Details..."
    to bring up the "Text Services and Input Languages" dialog and there select
    the "Advanced" tab and CLEAR the option to
    "Extend support of advanced text services to all programs".
    Edited by: 815150 on 2010-11-23 下午11:34

    The only solution for a bug is to install a version in which it is fixed. In this case I would highly recommend making the effort to upgrade to Java 6, as Java 5 is end of life already and with good reason: its ancient technology. What are you going to do otherwise? Keep using Java 5 until you phase out your software? The problems are only going to grow as time passes and will ultimately cost you a lot more money than it will do right now to make the upgrade efforts.

  • 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]

  • Using Intel's MKL C++ Library in JNI causes JVM to Crash at GC

    We're using JDK 1.6.0_07 on RedHat 4 (32-bit) and RedHat 5 (32-bit JVM on 64-bit processor). Our app uses JNI to access Intel's Math Kernel Library (MKL) for optimized algorithms; however, it crashes in libjvm.so/libpthread.so in the GC thread once the garbage collector runs (usually pretty quick).
    The MKL library uses it's own threading model built on pthreads. So, the basic flow goes like this:
    A Java GUI spawns a separate thread to:
    1) Call native method to initialize settings and allocate buffers
    2) Call native method to load data (using mapped buffers)
    3) Call native method to process data
    4) Call native method to unload data back into mapped buffers
    It seems like the MKL threading model (parallel processing) is causing issues with the JVM. Is there a safe way to call a MT native method? BTW, the native code never calls back into Java.

    Crashes normally indicate
    1. A problem with pointers in your code
    2. Incorrect usage of the library that you are calling (which cause a problem with pointers.)
    3. Incorrect usage of JNI.
    C/C++ pointer problem can cause failure much latter than the actual point where the error occurred. Much later in this case would be the garbage collector.
    Might or might not help....as far as I can recall, a recent thread had a gc problem because the JNI code was constructing java objects incorrectly.

  • 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

  • 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 dies when JNI native code causes a SIGABRT from assertions

    Hi,
    I am wondering whether there is a way to prevent the JVM from dying when the JNI native code hits an assertion.
    #include "NativeTest.h"
    #include <assert.h>
    JNIEXPORT jstring JNICALL Java_NativeTest_sayHello (JNIEnv *env, jobject thisobject, jstring js)
    assert(0);
    return js;
    Calling this code from Java through JNI causes a SIGABRT when assert(0) is hit. This causes the java program to terminate. Is there a way for the JVM to recover from the SIGABRT from the native code?

    929919 wrote:
    I am wondering whether there is a way to prevent the JVM from dying when the JNI native code hits an assertion.There is no way to prevent the VM from exiting if native code does anything that causes an exit.
    An assertion is only one way that can happen.
    So to prevent the VM from exiting - don't run native code. The safe way to execute OS native library is to do the following.
    1. Wrap the library in an executable.
    2. Create a communications API for the executable.
    3. Manage the executable via Java Runtime.exec/ProcessBuilder.
    4. Talk to the executable using the communications API from 2 in the java code.
    The above is safe because if the library exits it exits the executable, not the VM.

  • Does a large amount of "local variable" within a vi cause problems?

    Hello -- I am using Labview 7.0 and have a vi where I am going to end up using about 100 "local variables" for indicators that are displaying data. Since I have a lot of true / false case structures I decided to use these local variables instead of having a mess of wiring all over the vi block diagram. It is intimidating though and I was wondering if it causes slowness in vi's?

    I actually only have about 8 indicators -- but I am in the process of creating control algorithms so I have to use many case structures if I want to keep the code all within Labview (simplicity). I am simply referencing the 8 or so indicator values many many times (100 X) I am attaching a copy of the vi like you asked but just take a look at the right hand side of the while loop on the right -- it shows an example of an algorithm I created today that has to reference the data from sensors. I would love to know what a better way to do this. Thanks!
    Attachments:
    ucb drill control daq 1_7.vi ‏666 KB

  • Thread Identification from Field/Local Variable

    Hello,
    If i have a code that executes multiple threads , can i identify which thread is operating on a certain field ?
    Thanx

    Watchpoint events contain the thread that accessed the field.
    See
    [http://java.sun.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/request/EventRequestManager.html#createAccessWatchpointRequest(com.sun.jdi.Field)]
    [http://java.sun.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/event/AccessWatchpointEvent.html]
    However, JDI does not support watchpoints on local variables.

  • Local variable's VariableElement not accessible through treepath

    Hi,
    I'm extending TreePathScanner visitor to localize and handle certain annotations associated with variables of any kind (field, parameters and local variables).
    To do so I overrode the visitVariable method that, as far I understand, should be able to obtain the corresponding javax.lang.model's VariableElement for any variable (whatever its kind) based on the current three path, see code bellow.
    It does work well with fields and parameter, however with local variables Trees.getElement simply returns a null. All the information is in fact in the code tree VariableTree node and I could retrieve what I needed from it but rather refrain from using com.sun. ... API if not really necessary and of course implement the processing twice.
    Perhaps the javax.lang.model.... object tree is not built for elements within a method body? or is this a bug? com.sun.source.util.Trees#getElement javadoc only says that a null is returned if the element is not "available".
    Thanks in advance.
    import javax.lang.model.element.VariableElement;
    import com.sun.source.util.TreePathScanner;
    import com.sun.source.util.Trees;
    import com.sun.source.tree.VariableTree;
    import com.sun.source.util.TreePath;
    public class MyVisitor extends TreePathScanner<Object,Trees> {
         @Override
         public Object visitVariable(VariableTree node, Trees trees) {
              TreePath path = getCurrentPath();
              VariableElement ve = (VariableElement) trees.getElement(path);
              if (ve != null) {
                            // The case for parameters and fields.
                            process(ve);
              else {  // Funnily getElement return null for local variables
                            process(node);
              return super.visitVariable(node, trees);
    }

    I had a similar problem where trees.getElement(TreePath) was returning null. In my case it had to do with the fact that symbol resolution wasn't done yet. I was trying to invoke my TreePathScanner after calling javacTask.parse() but I had to switch to after calling javacTask.analyze() otherwise trees.getElement(TreePath) always returned null. My issues was with a TreePath for a method though.

Maybe you are looking for

  • When i click on something it won't open or pop up another page it just says done

    example i am trying to do some required training for my job. i can get into the site but when i click on the required training it just says done in the lower left hand corner of the browser. when i was on the sprint page trying to find out if minot n

  • Windows does weird stuff under Boot Camp

    I know this sounds like a Boot Camp question, but I'm pretty sure I'm better off here. Allow me to explain: I use Mac and Windows equally on my MacBook Pro, but on occasion, I will load up Windows through Boot Camp and everything will start going cra

  • In Message Monitoring Message showing Error:Message

    Hi Can anyone solve this problem.Its urgent for me. My scenario is IDoc->XI->FILE The file i am trying to generate is an xml file which i am dropping in XI application server using File system. The problem is when i am going to see the message using

  • Sorting emails by columns and moving to specific letter finds letter in different column

    I am running Mail (v 4.5) on a MacBook Pro 2.8 GHz Core 2 Duo with Snow Leopard 10.6.7. Issue: In Mail, if I sort the list of emails in the Inbox by Date it goes correctly from Most Recent to oldest. If I press a number to get to the month, the list

  • Reader X (10.1.4) Print Issues

    I am having trouble printing any .pdf files. I am currently running Reader X (10.1.4). I have uninstalled, reinstalled, rebooted, etc. The .pdf opens, I click Print, and nothing happens. No pop up message or anything. I even tried the "quick fix" of