0 Replies Latest reply: Dec 26, 2012 8:19 AM by 981716 RSS

    JVM crashes - ParkEvent::Release

    981716
      Hi,
      I'm linking a static library to shared library and calling c function using JNI calls.
      While running from JRE version: 6.0_38-b05, it's getting crashed, If i run same program from JRE Version 7.0 it's working fine
      Is this limitation with JRE version 6, I hope this crash may be due to thread and i tried adding jsig option while linking which also got crashed
      Can anyone explain about this crash and how to debug

      Crash log as below
      ===================================
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0xb7a05dcc, pid=22263, tid=3033545616
      #
      # JRE version: 6.0_38-b05
      # Java VM: Java HotSpot(TM) Client VM (20.13-b02 mixed mode, sharing linux-x86 )
      # Problematic frame:
      # V [libjvm.so+0x39cdcc] ParkEvent::Release(ParkEvent*)+0x1c
      #
      # 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 is native thread

      siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000071

      Registers:
      EAX=0x00000011, EBX=0xb7b6d750, ECX=0x00000000, EDX=0x00000001
      ESP=0xb4d03360, EBP=0xb4d03378, ESI=0x00000011, EDI=0x093144d8
      EIP=0xb7a05dcc, EFLAGS=0x00210206, CR2=0x00000071

      Top of Stack: (sp=0xb4d03360)
      0xb4d03360: 00000000 00000000 00000000 b7b6d750
      0xb4d03370: 00000000 093144d8 b4d033a8 b7a9e4e4
      0xb4d03380: 00000011 00000000 00000000 00000000
      0xb4d03390: 00000000 00000000 b7a9e47b b4da3dbc
      0xb4d033a0: 00000000 b4d03b90 b4d033c8 b4d51c98
      0xb4d033b0: 093144d8 00000000 00000000 00000000
      0xb4d033c0: 093144d8 00578ff4 b4d034b8 0056a5ab
      0xb4d033d0: 093144d8 b4d03480 b4d03480 b4d03480

      Instructions: (pc=0xb7a05dcc)
      0xb7a05dac: 8d 74 26 00 55 89 e5 57 56 53 83 ec 0c 8b 75 08
      0xb7a05dbc: e8 00 00 00 00 5b 81 c3 8f 79 16 00 85 f6 74 3f
      0xb7a05dcc: 8b 46 60 85 c0 75 40 c7 46 64 00 00 00 00 8b 8b
      0xb7a05ddc: 98 0f 00 00 8b 11 8b 83 b0 09 00 00 89 56 60 83

      Register to memory mapping:

      EAX=0x00000011 is an unknown value
      EBX=0xb7b6d750: <offset 0x504750> in /usr/java/jdk1.6.0_38/jre/lib/i386/client/libjvm.so at 0xb7669000
      ECX=0x00000000 is an unknown value
      EDX=0x00000001 is an unknown value
      ESP=0xb4d03360 is an unknown value
      EBP=0xb4d03378 is an unknown value
      ESI=0x00000011 is an unknown value
      EDI=0x093144d8 is an unknown value


      Stack: [0xb4303000,0xb4d04000], sp=0xb4d03360, free space=10240k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x39cdcc] ParkEvent::Release(ParkEvent*)+0x1c
      V [libjvm.so+0x4354e4] Thread::~Thread()+0x74
      C [libSample1.so+0x43c98] OSThread::threadFunc(void*)+0x30
      C [libpthread.so.0+0x55ab] signed char+0x55ab


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

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
      def new generation total 4224K, used 250K [0x81980000, 0x81e10000, 0x86380000)
      eden space 3776K, 6% used [0x81980000, 0x819bebe0, 0x81d30000)
      from space 448K, 0% used [0x81d30000, 0x81d30000, 0x81da0000)
      to space 448K, 0% used [0x81da0000, 0x81da0000, 0x81e10000)
      tenured generation total 9472K, used 0K [0x86380000, 0x86cc0000, 0x8f780000)
      the space 9472K, 0% used [0x86380000, 0x86380000, 0x86380200, 0x86cc0000)
      compacting perm gen total 12288K, used 35K [0x8f780000, 0x90380000, 0x93780000)
      the space 12288K, 0% used [0x8f780000, 0x8f788df0, 0x8f788e00, 0x90380000)
      ro space 10240K, 61% used [0x93780000, 0x93daafa0, 0x93dab000, 0x94180000)
      rw space 12288K, 60% used [0x94180000, 0x948ba788, 0x948ba800, 0x94d80000)

      Code Cache [0xb55c6000, 0xb5636000, 0xb75c6000)
      total_blobs=125 nmethods=3 adapters=59 free_code_cache=33096320 largest_free_block=64

      Dynamic libraries:
      0025f000-0026a000 r-xp 00000000 03:45 11273541 /lib/libgcc_s-4.1.2-20080825.so.1
      0026a000-0026b000 rwxp 0000a000 03:45 11273541 /lib/libgcc_s-4.1.2-20080825.so.1
      0026d000-002b0000 r-xp 00000000 03:45 11273559 /lib/libssl.so.0.9.8e
      002b0000-002b4000 rwxp 00042000 03:45 11273559 /lib/libssl.so.0.9.8e
      003d0000-003ea000 r-xp 00000000 03:45 11273537 /lib/ld-2.5.so
      003ea000-003eb000 r-xp 00019000 03:45 11273537 /lib/ld-2.5.so
      003eb000-003ec000 rwxp 0001a000 03:45 11273537 /lib/ld-2.5.so
      003ee000-0052d000 r-xp 00000000 03:45 11273538 /lib/libc-2.5.so
      0052d000-0052e000 --xp 0013f000 03:45 11273538   /lib/libc-2.5.so
      0052e000-00530000 r-xp 0013f000 03:45 11273538 /lib/libc-2.5.so
      00530000-00531000 rwxp 00141000 03:45 11273538 /lib/libc-2.5.so
      00531000-00534000 rwxp 00531000 00:00 0
      00536000-0055b000 r-xp 00000000 03:45 11273539 /lib/libm-2.5.so
      0055b000-0055c000 r-xp 00024000 03:45 11273539 /lib/libm-2.5.so
      0055c000-0055d000 rwxp 00025000 03:45 11273539 /lib/libm-2.5.so
      0055f000-00561000 r-xp 00000000 03:45 11273542 /lib/libdl-2.5.so
      00561000-00562000 r-xp 00001000 03:45 11273542 /lib/libdl-2.5.so
      00562000-00563000 rwxp 00002000 03:45 11273542 /lib/libdl-2.5.so
      00565000-00578000 r-xp 00000000 03:45 11273544 /lib/libpthread-2.5.so
      00578000-00579000 r-xp 00013000 03:45 11273544 /lib/libpthread-2.5.so
      00579000-0057a000 rwxp 00014000 03:45 11273544 /lib/libpthread-2.5.so
      0057a000-0057c000 rwxp 0057a000 00:00 0
      0057e000-00585000 r-xp 00000000 03:45 11273545 /lib/librt-2.5.so
      00585000-00586000 r-xp 00006000 03:45 11273545 /lib/librt-2.5.so
      00586000-00587000 rwxp 00007000 03:45 11273545 /lib/librt-2.5.so
      00589000-0059b000 r-xp 00000000 03:45 3303642 /usr/lib/libz.so.1.2.3
      0059b000-0059c000 rwxp 00011000 03:45 3303642 /usr/lib/libz.so.1.2.3
      0059e000-005d9000 r-xp 00000000 03:45 11273555 /lib/libsepol.so.1
      005d9000-005da000 rwxp 0003b000 03:45 11273555 /lib/libsepol.so.1
      005da000-005e4000 rwxp 005da000 00:00 0
      005e6000-005fc000 r-xp 00000000 03:45 11273556 /lib/libselinux.so.1
      005fc000-005fe000 rwxp 00015000 03:45 11273556 /lib/libselinux.so.1
      007f3000-00806000 r-xp 00000000 03:45 11273552 /lib/libnsl-2.5.so
      00806000-00807000 r-xp 00012000 03:45 11273552 /lib/libnsl-2.5.so
      00807000-00808000 rwxp 00013000 03:45 11273552 /lib/libnsl-2.5.so
      00808000-0080a000 rwxp 00808000 00:00 0
      0094a000-0094c000 r-xp 00000000 03:45 11273557 /lib/libcom_err.so.2.1
      0094c000-0094d000 rwxp 00001000 03:45 11273557 /lib/libcom_err.so.2.1
      00977000-00aa1000 r-xp 00000000 03:45 11273558 /lib/libcrypto.so.0.9.8e
      00aa1000-00ab4000 rwxp 00129000 03:45 11273558 /lib/libcrypto.so.0.9.8e
      00ab4000-00ab8000 rwxp 00ab4000 00:00 0
      00bee000-00bfd000 r-xp 00000000 03:45 11273554 /lib/libresolv-2.5.so
      00bfd000-00bfe000 r-xp 0000e000 03:45 11273554 /lib/libresolv-2.5.so
      00bfe000-00bff000 rwxp 0000f000 03:45 11273554 /lib/libresolv-2.5.so
      00bff000-00c01000 rwxp 00bff000 00:00 0
      00c2e000-00c5b000 r-xp 00000000 03:45 3303661 /usr/lib/libgssapi_krb5.so.2.2
      00c5b000-00c5c000 rwxp 0002d000 03:45 3303661 /usr/lib/libgssapi_krb5.so.2.2
      00c5e000-00cf1000 r-xp 00000000 03:45 3303660 /usr/lib/libkrb5.so.3.3
      00cf1000-00cf4000 rwxp 00092000 03:45 3303660 /usr/lib/libkrb5.so.3.3
      00cf6000-00cf8000 r-xp 00000000 03:45 11273553 /lib/libkeyutils-1.2.so
      00cf8000-00cf9000 rwxp 00001000 03:45 11273553 /lib/libkeyutils-1.2.so
      00d2b000-00d50000 r-xp 00000000 03:45 3303659 /usr/lib/libk5crypto.so.3.1
      00d50000-00d51000 rwxp 00025000 03:45 3303659 /usr/lib/libk5crypto.so.3.1
      00dad000-00db5000 r-xp 00000000 03:45 3303658 /usr/lib/libkrb5support.so.0.1
      00db5000-00db6000 rwxp 00007000 03:45 3303658 /usr/lib/libkrb5support.so.0.1
      04d33000-04e13000 r-xp 00000000 03:45 3284698 /usr/lib/libstdc++.so.6.0.8
      04e13000-04e17000 r-xp 000df000 03:45 3284698 /usr/lib/libstdc++.so.6.0.8
      04e17000-04e18000 rwxp 000e3000 03:45 3284698 /usr/lib/libstdc++.so.6.0.8
      04e18000-04e1e000 rwxp 04e18000 00:00 0
      08048000-08052000 r-xp 00000000 03:45 3672825 /usr/java/jdk1.6.0_38/bin/java
      08052000-08053000 rwxp 00009000 03:45 3672825 /usr/java/jdk1.6.0_38/bin/java
      0925e000-0933b000 rwxp 0925e000 00:00 0 [heap]
      81980000-81e10000 rwxp 81980000 00:00 0
      81e10000-86380000 rwxp 81e10000 00:00 0
      86380000-86cc0000 rwxp 86380000 00:00 0
      86cc0000-8f780000 rwxp 86cc0000 00:00 0
      8f780000-90380000 rwxp 8f780000 00:00 0
      90380000-93780000 rwxp 90380000 00:00 0
      93780000-93dab000 r-xs 00001000 03:45 3672990 /usr/java/jdk1.6.0_38/jre/lib/i386/client/classes.jsa
      93dab000-94180000 rwxp 93dab000 00:00 0
      94180000-948bb000 rwxp 0062c000 03:45 3672990 /usr/java/jdk1.6.0_38/jre/lib/i386/client/classes.jsa
      948bb000-94d80000 rwxp 948bb000 00:00 0
      94d80000-94e62000 rwxp 00d67000 03:45 3672990 /usr/java/jdk1.6.0_38/jre/lib/i386/client/classes.jsa
      94e62000-95180000 rwxp 94e62000 00:00 0
      95180000-95188000 r-xs 00e49000 03:45 3672990 /usr/java/jdk1.6.0_38/jre/lib/i386/client/classes.jsa
      95188000-95580000 rwxp 95188000 00:00 0
      b4303000-b4304000 --xp b4303000 00:00 0
      b4304000-b4d04000 rwxp b4304000 00:00 0
      b4d04000-b4d0b000 r-xs 00000000 03:45 3409582 /usr/lib/gconv/gconv-modules.cache
      b4d0b000-b4d0c000 r-xp 00000000 03:45 3673164 /usr/java/jdk1.6.0_38/jre/lib/i386/libjsig.so
      b4d0c000-b4d0d000 rwxp 00001000 03:45 3673164 /usr/java/jdk1.6.0_38/jre/lib/i386/libjsig.so
      b4d0d000-b4d0e000 rwxp b4d0d000 00:00 0
      b4d0e000-b4da3000 r-xp 00000000 03:45 14909442 /home/xxx/jni/Centos/Linux/libSample1.so
      b4da3000-b4da5000 rwxp 00095000 03:45 14909442 /home/xxx/jni/Centos/Linux/libSample1.so
      b4da5000-b4da6000 --xp b4da5000 00:00 0
      b4da6000-b4e26000 rwxp b4da6000 00:00 0
      b4e26000-b4e29000 --xp b4e26000 00:00 0
      b4e29000-b4e77000 rwxp b4e29000 00:00 0
      b4e77000-b4e7a000 --xp b4e77000 00:00 0
      b4e7a000-b4ef8000 rwxp b4e7a000 00:00 0
      b4ef8000-b4efb000 --xp b4ef8000 00:00 0
      b4efb000-b4f49000 rwxp b4efb000 00:00 0
      b4f49000-b5149000 r-xp 00000000 03:45 3281028 /usr/lib/locale/locale-archive
      b5149000-b514c000 --xp b5149000 00:00 0
      b514c000-b519a000 rwxp b514c000 00:00 0
      b519a000-b519d000 --xp b519a000 00:00 0
      b519d000-b521f000 rwxp b519d000 00:00 0
      b521f000-b53b7000 r-xs 03083000 03:45 3674353 /usr/java/jdk1.6.0_38/jre/lib/rt.jar
      b53b7000-b53b8000 --xp b53b7000 00:00 0
      b53b8000-b5446000 rwxp b53b8000 00:00 0
      b5446000-b5460000 rwxp b5446000 00:00 0
      b5460000-b5465000 rwxp b5460000 00:00 0
      b5465000-b54ab000 rwxp b5465000 00:00 0
      b54ab000-b54ae000 rwxp b54ab000 00:00 0
      b54ae000-b54d0000 rwxp b54ae000 00:00 0
      b54d0000-b54d5000 rwxp b54d0000 00:00 0
      b54d5000-b551a000 rwxp b54d5000 00:00 0
      b551a000-b5520000 rwxp b551a000 00:00 0
      b5520000-b553a000 rwxp b5520000 00:00 0
      b553a000-b5548000 rwxp b553a000 00:00 0
      b5548000-b55c6000 rwxp b5548000 00:00 0
      b55c6000-b5636000 rwxp b55c6000 00:00 0
      b5636000-b75c6000 rwxp b5636000 00:00 0
      b75c6000-b75d5000 r-xp 00000000 03:45 3673180 /usr/java/jdk1.6.0_38/jre/lib/i386/libzip.so
      b75d5000-b75d7000 rwxp 0000e000 03:45 3673180 /usr/java/jdk1.6.0_38/jre/lib/i386/libzip.so
      b75d7000-b75e0000 r-xp 00000000 03:45 11272232 /lib/libnss_files-2.5.so
      b75e0000-b75e1000 r-xp 00008000 03:45 11272232 /lib/libnss_files-2.5.so
      b75e1000-b75e2000 rwxp 00009000 03:45 11272232 /lib/libnss_files-2.5.so
      b75e2000-b75e8000 rwxp b75e2000 00:00 0
      b75e8000-b75f0000 rwxs 00000000 03:45 655372 /tmp/hsperfdata_root/22263
      b75f0000-b75f1000 rwxp b75f0000 00:00 0
      b75f1000-b75f2000 r-xp b75f1000 00:00 0
      b75f2000-b7616000 r-xp 00000000 03:45 3673156 /usr/java/jdk1.6.0_38/jre/lib/i386/libjava.so
      b7616000-b7618000 rwxp 00023000 03:45 3673156 /usr/java/jdk1.6.0_38/jre/lib/i386/libjava.so
      b7618000-b761b000 --xp b7618000 00:00 0
      b761b000-b7669000 rwxp b761b000 00:00 0
      b7669000-b7b4d000 r-xp 00000000 03:45 3673135 /usr/java/jdk1.6.0_38/jre/lib/i386/client/libjvm.so
      b7b4d000-b7b70000 rwxp 004e3000 03:45 3673135 /usr/java/jdk1.6.0_38/jre/lib/i386/client/libjvm.so
      b7b70000-b7f8e000 rwxp b7b70000 00:00 0
      b7f8e000-b7f95000 r-xp 00000000 03:45 3673139 /usr/java/jdk1.6.0_38/jre/lib/i386/jli/libjli.so
      b7f95000-b7f97000 rwxp 00006000 03:45 3673139 /usr/java/jdk1.6.0_38/jre/lib/i386/jli/libjli.so
      b7f98000-b7f99000 rwxp b7f98000 00:00 0
      b7f99000-b7fa4000 r-xp 00000000 03:45 3673179 /usr/java/jdk1.6.0_38/jre/lib/i386/libverify.so
      b7fa4000-b7fa5000 rwxp 0000b000 03:45 3673179 /usr/java/jdk1.6.0_38/jre/lib/i386/libverify.so
      b7fa5000-b7fa6000 rwxp b7fa5000 00:00 0
      b7fa6000-b7fa7000 r-xp b7fa6000 00:00 0 [vdso]
      bf9e9000-bf9fe000 rwxp bffea000 00:00 0 [stack]

      VM Arguments:
      jvm_args: -Djava.library.path=.
      java_command: Sample1
      Launcher Type: SUN_STANDARD

      Environment Variables:
      PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
      LD_LIBRARY_PATH=/usr/java/jdk1.6.0_38/jre/lib/i386/client:/usr/java/jdk1.6.0_38/jre/lib/i386:/usr/java/jdk1.6.0_38/jre/../lib/i386
      SHELL=/bin/bash

      Signal Handlers:
      SIGSEGV: [libjvm.so+0x46bc30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGBUS: [libjvm.so+0x46bc30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGFPE: [libjvm.so+0x38ccf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGPIPE: [libjvm.so+0x38ccf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGXFSZ: [libjvm.so+0x38ccf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGILL: [libjvm.so+0x38ccf0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGUSR2: [libjvm.so+0x38ff50], sa_mask[0]=0x00000000, sa_flags=0x10000004
      SIGHUP: [libjvm.so+0x38fb30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGINT: [libjvm.so+0x38fb30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGTERM: [libjvm.so+0x38fb30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
      SIGQUIT: [libjvm.so+0x38fb30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


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

      OS:Red Hat Enterprise Linux Server release 5.4 (Tikanga)

      uname:Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686
      libc:glibc 2.5 NPTL 2.5
      rlimit: STACK 10240k, CORE 0k, NPROC 14309, NOFILE 1024, AS infinity
      load average:0.00 0.00 0.12

      /proc/meminfo:
      MemTotal: 903404 kB
      MemFree: 15172 kB
      Buffers: 298272 kB
      Cached: 360392 kB
      SwapCached: 108 kB
      Active: 387500 kB
      Inactive: 360412 kB
      HighTotal: 0 kB
      HighFree: 0 kB
      LowTotal: 903404 kB
      LowFree: 15172 kB
      SwapTotal: 2048276 kB
      SwapFree: 2048168 kB
      Dirty: 52 kB
      Writeback: 0 kB
      AnonPages: 89180 kB
      Mapped: 42512 kB
      Slab: 129684 kB
      PageTables: 3200 kB
      NFS_Unstable: 0 kB
      Bounce: 0 kB
      CommitLimit: 2499976 kB
      Committed_AS: 416664 kB
      VmallocTotal: 114680 kB
      VmallocUsed: 4604 kB
      VmallocChunk: 109908 kB
      HugePages_Total: 0
      HugePages_Free: 0
      HugePages_Rsvd: 0
      Hugepagesize: 4096 kB


      CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 4 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3

      /proc/cpuinfo:
      processor     : 0
      vendor_id     : GenuineIntel
      cpu family     : 15
      model          : 4
      model name     : Intel(R) Pentium(R) 4 CPU 2.80GHz
      stepping     : 9
      cpu MHz          : 2800.585
      cache size     : 1024 KB
      fdiv_bug     : no
      hlt_bug          : no
      f00f_bug     : no
      coma_bug     : no
      fpu          : yes
      fpu_exception     : yes
      cpuid level     : 5
      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 nx lm constant_tsc up

      pni monitor ds_cpl tm2 cid cx16 xtpr lahf_lm
      bogomips     : 5601.17



      Memory: 4k page, physical 903404k(15172k free), swap 2048276k(2048168k free)

      vm_info: Java HotSpot(TM) Client VM (20.13-b02) for linux-x86 JRE (1.6.0_38-b05), built on Nov 14 2012 02:13:49 by "java_re" with gcc 3.2.1-7a (J2SE release)

      time: Wed Dec 26 19:03:37 2012
      elapsed time: 0 seconds
      ============================

      Thanks,
      Mani