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

Programs using JNI_CreateJavaVM crash after 2.12-1.209.el6_9.2 update

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

      ALSO, latest 1.7 and 1.9 -same issue

      FULL OS VERSION :
      Linux xonaint16 2.6.32-696.3.2.el6.x86_64 #1 SMP Tue Jun 20 01:26:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
      CentOS release 6.9 (Final)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      glibc 2.12-1.209.el6_9.2, kernel 2.6.32-696.3.2.el6
      Security notice from red hat, update breaks java!
      https://access.redhat.com/security/vulnerabilities/stackguard?sc_cid=70160000000gzltAAA&

      A DESCRIPTION OF THE PROBLEM :
      After installing the latest updates to CentOS 6.9 update per the security notice, https://access.redhat.com/security/vulnerabilities/stackguard?sc_cid=70160000000gzltAAA&

      Programs that start a VM programmatically stop working. It's unclear if this is a java problem OR a libc issue that manifests in the VM.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Install CentOS 6.8
      2. Update to current patches (yum update)
      3. reboot
      4. Compile code below that is fairly equivalent to the JNI doc example
      5. Execute code with proper LD_LIBRARY_PATH
      6.. All JVMs 1.7, 1.8, 1.9 immediately fail with a hs_err file.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expect the VM to load; instead it generates a hs_error file and/or dumps core.
      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGBUS (0x7) at pc=0x00007fa17cc99c4d, pid=40482, tid=40482
      #
      # JRE version: (9.0+175) (build )
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (9+175, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # j java.lang.Object.<clinit>()V+0 java.base
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/core.40482)
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line:

      Host: Intel(R) Xeon(R) CPU X5675 @ 3.07GHz, 4 cores, 1G, CentOS release 6.9 (Final)
      Time: Thu Jun 22 13:32:46 2017 PDT elapsed time: 0 seconds (0d 0h 0m 0s)

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

      Current thread (0x00000000011da000): JavaThread "Unknown thread" [_thread_in_Java, id=40482, stack(0x00007ffda262a000,0x00007ffda272a000)]

      Stack: [0x00007ffda262a000,0x00007ffda272a000], sp=0x00007ffda2727a98, free space=1014k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      j java.lang.Object.<clinit>()V+0 java.base
      v ~StubRoutines::call_stub
      V [libjvm.so+0x83b21a] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x47a
      V [libjvm.so+0x8134f0] InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0x1d0
      V [libjvm.so+0x8142a7] InstanceKlass::initialize(Thread*)+0x487
      V [libjvm.so+0x813fd5] InstanceKlass::initialize(Thread*)+0x1b5
      V [libjvm.so+0xce83ff] Threads::initialize_java_lang_classes(JavaThread*, Thread*)+0xaf
      V [libjvm.so+0xcea81a] Threads::create_vm(JavaVMInitArgs*, bool*)+0x4aa
      V [libjvm.so+0x8ab85c] JNI_CreateJavaVM+0x5c
      C [a.out+0x80c]
      C [libc.so.6+0x1ed1d] __libc_start_main+0xfd


      siginfo: si_signo: 7 (SIGBUS), si_code: 2 (BUS_ADRERR), si_addr: 0x00007ffda2723a98

      Register to memory mapping:

      RAX=0x00007fa14f90aa90 is pointing into metadata
      RBX={method} {0x00007fa14f800ee0} '<clinit>' '()V' in 'java/lang/Object'
      RCX=0x0000000000000008 is an unknown value
      RDX=0x00007fa198c72498: <offset 0x0000000001333498> in ./jre/lib/server/libjvm.so at 0x00007fa19793f000
      RSP=0x00007ffda2727a98 is pointing into the stack for thread: 0x00000000011da000
      RBP=0x00007ffda2727ae0 is pointing into the stack for thread: 0x00000000011da000
      RSI=0x00000000011da760 is an unknown value
      RDI=0x0000000000000002 is an unknown value
      R8 ={method} {0x00007fa14f800ee0} '<clinit>' '()V' in 'java/lang/Object'
      R9 =0x0000000000000008 is an unknown value
      R10=0x0000000000000000 is an unknown value
      R11=0x000000325f883ae6: <offset 0x0000000000083ae6> in /lib64/libc.so.6 at 0x000000325f800000
      R12=0x0000000000000000 is an unknown value
      R13=0x00007fa14f800ed0 is pointing into metadata
      R14=0x00007ffda2727ae8 is pointing into the stack for thread: 0x00000000011da000
      R15=0x00000000011da000 is a thread


      Registers:
      RAX=0x00007fa14f90aa90, RBX=0x00007fa14f800ee0, RCX=0x0000000000000008, RDX=0x00007fa198c72498
      RSP=0x00007ffda2727a98, RBP=0x00007ffda2727ae0, RSI=0x00000000011da760, RDI=0x0000000000000002
      R8 =0x00007fa14f800ee0, R9 =0x0000000000000008, R10=0x0000000000000000, R11=0x000000325f883ae6
      R12=0x0000000000000000, R13=0x00007fa14f800ed0, R14=0x00007ffda2727ae8, R15=0x00000000011da000
      RIP=0x00007fa17cc99c4d, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000006
        TRAPNO=0x000000000000000e

      Top of Stack: (sp=0x00007ffda2727a98)
      0x00007ffda2727a98: 00007ffda2727a98 00007fa14f800ed0
      0x00007ffda2727aa8: 00007ffda2727ae8 00007fa14f9034b0
      0x00007ffda2727ab8: 0000000000000000 00000000e4b00780
      0x00007ffda2727ac8: 00007fa14f800ee0 0000000000000000

      Instructions: (pc=0x00007fa17cc99c4d)
      0x00007fa17cc99c2d: 48 18 23 48 30 0f 84 cd 01 00 00 89 84 24 00 f0
      0x00007fa17cc99c3d: ff ff 89 84 24 00 e0 ff ff 89 84 24 00 d0 ff ff
      0x00007fa17cc99c4d: 89 84 24 00 c0 ff ff 89 84 24 00 b0 ff ff 89 84
      0x00007fa17cc99c5d: 24 00 a0 ff ff 89 84 24 00 90 ff ff 89 84 24 00

      method entry point (kind = zerolocals) [0x00007fa17cc99a00, 0x00007fa17cc99ec0] 1216 bytes

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

      Java Threads: ( => current thread )
      =>0x00000000011da000 JavaThread "Unknown thread" [_thread_in_Java, id=40482, stack(0x00007ffda262a000,0x00007ffda272a000)]

      Other Threads:
        0x000000000129f800 VMThread "VM Thread" [stack: 0x00007fa16434d000,0x00007fa16444d000] [id=40494]
        0x00000000011f1800 GCTaskThread "GC Thread#0" [stack: 0x00007fa17c9ac000,0x00007fa17caac000] [id=40483]
        0x00000000011f3000 GCTaskThread "GC Thread#1" [stack: 0x00007fa17c8ab000,0x00007fa17c9ab000] [id=40484]
        0x00000000011f5000 GCTaskThread "GC Thread#2" [stack: 0x00007fa17c7aa000,0x00007fa17c8aa000] [id=40485]
        0x00000000011f7000 GCTaskThread "GC Thread#3" [stack: 0x00007fa17c6a9000,0x00007fa17c7a9000] [id=40486]
        0x000000000121c800 ConcurrentGCThread "G1 Main Marker" [stack: 0x00007fa1669c9000,0x00007fa166ac9000] [id=40492]
        0x000000000121e800 ConcurrentGCThread "G1 Marker#0" [stack: 0x00007fa1668c8000,0x00007fa1669c8000] [id=40493]
        0x00000000011fe800 ConcurrentGCThread "G1 Refine#0" [stack: 0x00007fa167dff000,0x00007fa167eff000] [id=40490]
        0x00000000011fc800 ConcurrentGCThread "G1 Refine#1" [stack: 0x00007fa167f00000,0x00007fa168000000] [id=40489]
        0x00000000011fa800 ConcurrentGCThread "G1 Refine#2" [stack: 0x00007fa17c0a3000,0x00007fa17c1a3000] [id=40488]
        0x00000000011f9000 ConcurrentGCThread "G1 Refine#3" [stack: 0x00007fa17c1a4000,0x00007fa17c2a4000] [id=40487]
        0x0000000001200000 ConcurrentGCThread "G1 Young RemSet Sampling" [stack: 0x00007fa167cfe000,0x00007fa167dfe000] [id=40491]

      Threads with active compile tasks:

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap address: 0x00000000e2e00000, size: 466 MB, Compressed Oops mode: 32-bit
      Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
      Compressed class space size: 1073741824 Address: 0x0000000100000000
      Heap:
       garbage-first heap total 30720K, used 0K [0x00000000e2e00000, 0x00000000e2f000f0, 0x0000000100000000)
        region size 1024K, 1 young (1024K), 0 survivors (0K)
       Metaspace used 1149K, capacity 4480K, committed 4480K, reserved 1056768K
        class space used 82K, capacity 384K, committed 384K, reserved 1048576K
      Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, A=archive, TS=gc time stamp, AC=allocation context, TAMS=top-at-mark-start (previous, next)
      | 0|0x00000000e2e00000, 0x00000000e2e00000, 0x00000000e2f00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e2e00000, 0x00000000e2e00000|
      | 1|0x00000000e2f00000, 0x00000000e2f00000, 0x00000000e3000000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e2f00000, 0x00000000e2f00000|
      | 2|0x00000000e3000000, 0x00000000e3000000, 0x00000000e3100000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3000000, 0x00000000e3000000|
      | 3|0x00000000e3100000, 0x00000000e3100000, 0x00000000e3200000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3100000, 0x00000000e3100000|
      | 4|0x00000000e3200000, 0x00000000e3200000, 0x00000000e3300000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3200000, 0x00000000e3200000|
      | 5|0x00000000e3300000, 0x00000000e3300000, 0x00000000e3400000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3300000, 0x00000000e3300000|
      | 6|0x00000000e3400000, 0x00000000e3400000, 0x00000000e3500000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3400000, 0x00000000e3400000|
      | 7|0x00000000e3500000, 0x00000000e3500000, 0x00000000e3600000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3500000, 0x00000000e3500000|
      | 8|0x00000000e3600000, 0x00000000e3600000, 0x00000000e3700000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3600000, 0x00000000e3600000|
      | 9|0x00000000e3700000, 0x00000000e3700000, 0x00000000e3800000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3700000, 0x00000000e3700000|
      | 10|0x00000000e3800000, 0x00000000e3800000, 0x00000000e3900000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3800000, 0x00000000e3800000|
      | 11|0x00000000e3900000, 0x00000000e3900000, 0x00000000e3a00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3900000, 0x00000000e3900000|
      | 12|0x00000000e3a00000, 0x00000000e3a00000, 0x00000000e3b00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3a00000, 0x00000000e3a00000|
      | 13|0x00000000e3b00000, 0x00000000e3b00000, 0x00000000e3c00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3b00000, 0x00000000e3b00000|
      | 14|0x00000000e3c00000, 0x00000000e3c00000, 0x00000000e3d00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3c00000, 0x00000000e3c00000|
      | 15|0x00000000e3d00000, 0x00000000e3d00000, 0x00000000e3e00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3d00000, 0x00000000e3d00000|
      | 16|0x00000000e3e00000, 0x00000000e3e00000, 0x00000000e3f00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3e00000, 0x00000000e3e00000|
      | 17|0x00000000e3f00000, 0x00000000e3f00000, 0x00000000e4000000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e3f00000, 0x00000000e3f00000|
      | 18|0x00000000e4000000, 0x00000000e4000000, 0x00000000e4100000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4000000, 0x00000000e4000000|
      | 19|0x00000000e4100000, 0x00000000e4100000, 0x00000000e4200000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4100000, 0x00000000e4100000|
      | 20|0x00000000e4200000, 0x00000000e4200000, 0x00000000e4300000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4200000, 0x00000000e4200000|
      | 21|0x00000000e4300000, 0x00000000e4300000, 0x00000000e4400000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4300000, 0x00000000e4300000|
      | 22|0x00000000e4400000, 0x00000000e4400000, 0x00000000e4500000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4400000, 0x00000000e4400000|
      | 23|0x00000000e4500000, 0x00000000e4500000, 0x00000000e4600000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4500000, 0x00000000e4500000|
      | 24|0x00000000e4600000, 0x00000000e4600000, 0x00000000e4700000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4600000, 0x00000000e4600000|
      | 25|0x00000000e4700000, 0x00000000e4700000, 0x00000000e4800000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4700000, 0x00000000e4700000|
      | 26|0x00000000e4800000, 0x00000000e4800000, 0x00000000e4900000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4800000, 0x00000000e4800000|
      | 27|0x00000000e4900000, 0x00000000e4900000, 0x00000000e4a00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4900000, 0x00000000e4900000|
      | 28|0x00000000e4a00000, 0x00000000e4a00000, 0x00000000e4b00000| 0%| F| |TS 0|AC 0|TAMS 0x00000000e4a00000, 0x00000000e4a00000|
      | 29|0x00000000e4b00000, 0x00000000e4b47af0, 0x00000000e4c00000| 28%| E| |TS 0|AC 0|TAMS 0x00000000e4b00000, 0x00000000e4b00000|

      Card table byte_map: [0x00007fa167a42000,0x00007fa167b2b000] byte_map_base: 0x00007fa16732b000

      Marking Bits (Prev, Next): (CMBitMap*) 0x000000000121bc40, (CMBitMap*) 0x000000000121bc78
       Prev Bits: [0x00007fa167211000, 0x00007fa167959000)
       Next Bits: [0x00007fa166ac9000, 0x00007fa167211000)

      Polling page: 0x00007fa19772f000

      CodeHeap 'non-profiled nmethods': size=120032Kb used=0Kb max_used=0Kb free=120032Kb
       bounds [0x00007fa18474a000, 0x00007fa1849ba000, 0x00007fa18bc82000]
      CodeHeap 'profiled nmethods': size=120032Kb used=0Kb max_used=0Kb free=120032Kb
       bounds [0x00007fa17d212000, 0x00007fa17d482000, 0x00007fa18474a000]
      CodeHeap 'non-nmethods': size=5696Kb used=440Kb max_used=440Kb free=5255Kb
       bounds [0x00007fa17cc82000, 0x00007fa17cef2000, 0x00007fa17d212000]
       total_blobs=96 nmethods=0 adapters=57
       compilation: enabled
      Compilation events (0 events):
      No events

      GC Heap History (0 events):
      No events

      Deoptimization events (0 events):
      No events

      Classes redefined (0 events):
      No events

      Internal exceptions (0 events):
      No events

      Events (10 events):
      Event: 0.036 loading class java/lang/Integer done
      Event: 0.036 loading class java/lang/Long
      Event: 0.036 loading class java/lang/Long done
      Event: 0.036 loading class jdk/internal/loader/ClassLoaders
      Event: 0.037 loading class jdk/internal/loader/ClassLoaders done
      Event: 0.037 loading class java/lang/NullPointerException
      Event: 0.037 loading class java/lang/NullPointerException done
      Event: 0.037 loading class java/lang/ArithmeticException
      Event: 0.037 loading class java/lang/ArithmeticException done
      Event: 0.039 Thread 0x00000000011da000 Thread added: 0x00000000011da000


      Dynamic libraries:
      00400000-00401000 r-xp 00000000 00:15 147849220 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/a.out
      00600000-00601000 rw-p 00000000 00:15 147849220 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/a.out
      011c8000-012b1000 rw-p 00000000 00:00 0 [heap]
      e2e00000-e4c00000 rw-p 00000000 00:00 0
      e4c00000-100000000 ---p 00000000 00:00 0
      100000000-100060000 rw-p 00000000 00:00 0
      100060000-140000000 ---p 00000000 00:00 0
      325f000000-325f020000 r-xp 00000000 08:03 3932176 /lib64/ld-2.12.so
      325f220000-325f221000 r--p 00020000 08:03 3932176 /lib64/ld-2.12.so
      325f221000-325f222000 rw-p 00021000 08:03 3932176 /lib64/ld-2.12.so
      325f222000-325f223000 rw-p 00000000 00:00 0
      325f400000-325f402000 r-xp 00000000 08:03 3932202 /lib64/libdl-2.12.so
      325f402000-325f602000 ---p 00002000 08:03 3932202 /lib64/libdl-2.12.so
      325f602000-325f603000 r--p 00002000 08:03 3932202 /lib64/libdl-2.12.so
      325f603000-325f604000 rw-p 00003000 08:03 3932202 /lib64/libdl-2.12.so
      325f800000-325f98a000 r-xp 00000000 08:03 3932184 /lib64/libc-2.12.so
      325f98a000-325fb8a000 ---p 0018a000 08:03 3932184 /lib64/libc-2.12.so
      325fb8a000-325fb8e000 r--p 0018a000 08:03 3932184 /lib64/libc-2.12.so
      325fb8e000-325fb90000 rw-p 0018e000 08:03 3932184 /lib64/libc-2.12.so
      325fb90000-325fb94000 rw-p 00000000 00:00 0
      325fc00000-325fc17000 r-xp 00000000 08:03 3932190 /lib64/libpthread-2.12.so
      325fc17000-325fe17000 ---p 00017000 08:03 3932190 /lib64/libpthread-2.12.so
      325fe17000-325fe18000 r--p 00017000 08:03 3932190 /lib64/libpthread-2.12.so
      325fe18000-325fe19000 rw-p 00018000 08:03 3932190 /lib64/libpthread-2.12.so
      325fe17000-325fe18000 r--p 00017000 08:03 3932190 /lib64/libpthread-2.12.so
      325fe18000-325fe19000 rw-p 00018000 08:03 3932190 /lib64/libpthread-2.12.so
      325fe19000-325fe1d000 rw-p 00000000 00:00 0
      3260000000-3260007000 r-xp 00000000 08:03 3932192 /lib64/librt-2.12.so
      3260007000-3260206000 ---p 00007000 08:03 3932192 /lib64/librt-2.12.so
      3260206000-3260207000 r--p 00006000 08:03 3932192 /lib64/librt-2.12.so
      3260207000-3260208000 rw-p 00007000 08:03 3932192 /lib64/librt-2.12.so
      3260400000-3260483000 r-xp 00000000 08:03 3932553 /lib64/libm-2.12.so
      3260483000-3260682000 ---p 00083000 08:03 3932553 /lib64/libm-2.12.so
      3260682000-3260683000 r--p 00082000 08:03 3932553 /lib64/libm-2.12.so
      3260683000-3260684000 rw-p 00083000 08:03 3932553 /lib64/libm-2.12.so
      3260800000-3260815000 r-xp 00000000 08:03 3932208 /lib64/libz.so.1.2.3
      3260815000-3260a14000 ---p 00015000 08:03 3932208 /lib64/libz.so.1.2.3
      3260a14000-3260a15000 r--p 00014000 08:03 3932208 /lib64/libz.so.1.2.3
      3260a15000-3260a16000 rw-p 00015000 08:03 3932208 /lib64/libz.so.1.2.3
      326a800000-326a816000 r-xp 00000000 08:03 3932875 /lib64/libgcc_s-4.4.7-20120601.so.1
      326a816000-326aa15000 ---p 00016000 08:03 3932875 /lib64/libgcc_s-4.4.7-20120601.so.1
      326aa15000-326aa16000 rw-p 00015000 08:03 3932875 /lib64/libgcc_s-4.4.7-20120601.so.1
      326ac00000-326ace8000 r-xp 00000000 08:03 543957 /usr/lib64/libstdc++.so.6.0.13
      326ace8000-326aee8000 ---p 000e8000 08:03 543957 /usr/lib64/libstdc++.so.6.0.13
      326aee8000-326aeef000 r--p 000e8000 08:03 543957 /usr/lib64/libstdc++.so.6.0.13
      326aeef000-326aef1000 rw-p 000ef000 08:03 543957 /usr/lib64/libstdc++.so.6.0.13
      326aef1000-326af06000 rw-p 00000000 00:00 0
      7fa144000000-7fa144021000 rw-p 00000000 00:00 0
      7fa144021000-7fa148000000 ---p 00000000 00:00 0
      7fa148000000-7fa148021000 rw-p 00000000 00:00 0
      7fa148021000-7fa14c000000 ---p 00000000 00:00 0
      7fa14f501000-7fa14fc00000 rw-p 00000000 00:00 0
      7fa14fc00000-7fa150000000 ---p 00000000 00:00 0
      7fa150000000-7fa150021000 rw-p 00000000 00:00 0
      7fa150021000-7fa154000000 ---p 00000000 00:00 0
      7fa154000000-7fa154021000 rw-p 00000000 00:00 0
      7fa154021000-7fa158000000 ---p 00000000 00:00 0
      7fa158000000-7fa158021000 rw-p 00000000 00:00 0
      7fa158021000-7fa15c000000 ---p 00000000 00:00 0
      7fa15c000000-7fa15c021000 rw-p 00000000 00:00 0
      7fa15c021000-7fa160000000 ---p 00000000 00:00 0
      7fa160000000-7fa160021000 rw-p 00000000 00:00 0
      7fa160021000-7fa164000000 ---p 00000000 00:00 0
      7fa16411e000-7fa16434c000 rw-p 00000000 00:00 0
      7fa16434c000-7fa16434d000 ---p 00000000 00:00 0
      7fa16434d000-7fa1648c7000 rw-p 00000000 00:00 0
      7fa1648c7000-7fa1668c7000 rwxp 00000000 00:00 0
      7fa1668c7000-7fa1668c8000 ---p 00000000 00:00 0
      7fa1668c8000-7fa1669c8000 rw-p 00000000 00:00 0
      7fa1669c8000-7fa1669c9000 ---p 00000000 00:00 0
      7fa1669c9000-7fa166b41000 rw-p 00000000 00:00 0
      7fa166b41000-7fa167211000 ---p 00000000 00:00 0
      7fa167211000-7fa167289000 rw-p 00000000 00:00 0
      7fa167289000-7fa167959000 ---p 00000000 00:00 0
      7fa167959000-7fa167968000 rw-p 00000000 00:00 0
      7fa167968000-7fa167a42000 ---p 00000000 00:00 0
      7fa167a42000-7fa167a51000 rw-p 00000000 00:00 0
      7fa167a51000-7fa167c14000 ---p 00000000 00:00 0
      7fa167c14000-7fa167c23000 rw-p 00000000 00:00 0
      7fa167c23000-7fa167cfd000 ---p 00000000 00:00 0
      7fa167cfd000-7fa167cfe000 ---p 00000000 00:00 0
      7fa167cfe000-7fa167dfe000 rw-p 00000000 00:00 0
      7fa167dfe000-7fa167dff000 ---p 00000000 00:00 0
      7fa167dff000-7fa167eff000 rw-p 00000000 00:00 0
      7fa167eff000-7fa167f00000 ---p 00000000 00:00 0
      7fa167f00000-7fa168000000 rw-p 00000000 00:00 0
      7fa168000000-7fa168021000 rw-p 00000000 00:00 0
      7fa168021000-7fa16c000000 ---p 00000000 00:00 0
      7fa16c000000-7fa16c021000 rw-p 00000000 00:00 0
      7fa16c021000-7fa170000000 ---p 00000000 00:00 0
      7fa170000000-7fa170021000 rw-p 00000000 00:00 0
      7fa170021000-7fa174000000 ---p 00000000 00:00 0
      7fa174000000-7fa174021000 rw-p 00000000 00:00 0
      7fa174021000-7fa178000000 ---p 00000000 00:00 0
      7fa178000000-7fa178021000 rw-p 00000000 00:00 0
      7fa178021000-7fa17c000000 ---p 00000000 00:00 0
      7fa17c001000-7fa17c0a2000 rw-p 00000000 00:00 0
      7fa17c0a2000-7fa17c0a3000 ---p 00000000 00:00 0
      7fa17c0a3000-7fa17c1a3000 rw-p 00000000 00:00 0
      7fa17c1a3000-7fa17c1a4000 ---p 00000000 00:00 0
      7fa17c1a4000-7fa17c6a8000 rw-p 00000000 00:00 0
      7fa17c6a8000-7fa17c6a9000 ---p 00000000 00:00 0
      7fa17c6a9000-7fa17c7a9000 rw-p 00000000 00:00 0
      7fa17c7a9000-7fa17c7aa000 ---p 00000000 00:00 0
      7fa17c7aa000-7fa17c8aa000 rw-p 00000000 00:00 0
      7fa17c8aa000-7fa17c8ab000 ---p 00000000 00:00 0
      7fa17c8ab000-7fa17c9ab000 rw-p 00000000 00:00 0
      7fa17c9ab000-7fa17c9ac000 ---p 00000000 00:00 0
      7fa17c9ac000-7fa17cab1000 rw-p 00000000 00:00 0
      7fa17cab1000-7fa17cb97000 ---p 00000000 00:00 0
      7fa17cb97000-7fa17cb9c000 rw-p 00000000 00:00 0
      7fa17cb9c000-7fa17cc82000 ---p 00000000 00:00 0
      7fa17cc82000-7fa17cef2000 rwxp 00000000 00:00 0
      7fa17cef2000-7fa17d212000 ---p 00000000 00:00 0
      7fa17d212000-7fa17d482000 rwxp 00000000 00:00 0
      7fa17d482000-7fa18474a000 ---p 00000000 00:00 0
      7fa18474a000-7fa1849ba000 rwxp 00000000 00:00 0
      7fa1849ba000-7fa18bc82000 ---p 00000000 00:00 0
      7fa18bc82000-7fa1970cf000 r--s 00000000 00:15 148245212 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/modules
      7fa1970cf000-7fa1970e9000 r-xp 00000000 00:15 148245318 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjimage.so
      7fa1970e9000-7fa1972e8000 ---p 0001a000 00:15 148245318 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjimage.so
      7fa1972e8000-7fa1972ea000 rw-p 00019000 00:15 148245318 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjimage.so
      7fa1972ea000-7fa1972fc000 rw-p 00000000 00:00 0
      7fa1972fc000-7fa197303000 r-xp 00000000 00:15 148245319 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libzip.so
      7fa197303000-7fa197502000 ---p 00007000 00:15 148245319 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libzip.so
      7fa197502000-7fa197503000 rw-p 00006000 00:15 148245319 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libzip.so
      7fa197503000-7fa197510000 r-xp 00000000 08:03 3932191 /lib64/libnss_files-2.12.so
      7fa197510000-7fa19770f000 ---p 0000d000 08:03 3932191 /lib64/libnss_files-2.12.so
      7fa19770f000-7fa197710000 r--p 0000c000 08:03 3932191 /lib64/libnss_files-2.12.so
      7fa197710000-7fa197711000 rw-p 0000d000 08:03 3932191 /lib64/libnss_files-2.12.so
      7fa197712000-7fa197717000 rw-p 00000000 00:00 0
      7fa197717000-7fa19771e000 ---p 00000000 00:00 0
      7fa19771e000-7fa197724000 rw-p 00000000 00:00 0
      7fa197725000-7fa197726000 rw-p 00000000 00:00 0
      7fa197726000-7fa19772e000 rw-s 00000000 08:03 2497013 /tmp/hsperfdata_root/40482
      7fa19772e000-7fa19772f000 rw-p 00000000 00:00 0
      7fa19772f000-7fa197730000 r--p 00000000 00:00 0
      7fa197730000-7fa197731000 rw-p 00000000 00:00 0
      7fa197731000-7fa19773e000 r-xp 00000000 00:15 148245214 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libverify.so
      7fa19773e000-7fa19793d000 ---p 0000d000 00:15 148245214 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libverify.so
      7fa19793d000-7fa19793f000 rw-p 0000c000 00:15 148245214 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libverify.so
      7fa19793f000-7fa19893e000 r-xp 00000000 00:15 148245429 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/server/libjvm.so
      7fa19893e000-7fa198b3e000 ---p 00fff000 00:15 148245429 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/server/libjvm.so
      7fa198b3e000-7fa198c0e000 r--p 00fff000 00:15 148245429 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/server/libjvm.so
      7fa198c0e000-7fa198c45000 rw-p 010cf000 00:15 148245429 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/server/libjvm.so
      7fa198c45000-7fa198caf000 rw-p 00000000 00:00 0
      7fa198caf000-7fa198cda000 r-xp 00000000 00:15 148245447 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjava.so
      7fa198cda000-7fa198ed9000 ---p 0002b000 00:15 148245447 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjava.so
      7fa198ed9000-7fa198edb000 rw-p 0002a000 00:15 148245447 /home/xbuilder/workspace/situate-1.8.4/projects/agent/situated/src/cpp/jdk-9/lib/libjava.so
      7fa198edb000-7fa198edc000 rw-p 00000000 00:00 0
      7ffda2615000-7ffda262a000 rw-p 00000000 00:00 0
      7ffda262a000-7ffda262e000 ---p 00000000 00:00 0
      7ffda272e000-7ffda272a000 rw-p 00000000 00:00 0 [stack]
      7ffda27a1000-7ffda27a2000 r-xp 00000000 00:00 0 [vdso]
      ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
      VM Arguments:
      java_command: <unknown>
      java_class_path (initial): <not set>
      Launcher Type: generic

      Logging:
      Log output configuration:
      #0: stdout all=warning uptime,level,tags
      #1: stderr all=off uptime,level,tags

      Environment Variables:
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
      LD_LIBRARY_PATH=.:./jre/lib/:./jre/lib/server
      SHELL=/bin/bash

      Signal Handlers:
      SIGSEGV: [libjvm.so+0xd49ae0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGBUS: [libjvm.so+0xd49ae0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGFPE: [libjvm.so+0xd49ae0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGPIPE: [libjvm.so+0xb611c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGXFSZ: [libjvm.so+0xb611c0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGILL: [libjvm.so+0xd49ae0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
      SIGUSR2: [libjvm.so+0xb61080], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
      SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
      SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
      SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
      SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none


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

      OS:CentOS release 6.9 (Final)
      uname:Linux 2.6.32-696.3.2.el6.x86_64 #1 SMP Tue Jun 20 01:26:55 UTC 2017 x86_64
      libc:glibc 2.12 NPTL 2.12
      rlimit: STACK 10240k, CORE 0k, NPROC 7334, NOFILE 4096, AS infinity
      load average:0.08 0.08 0.02

      /proc/meminfo:
      MemTotal: 1906256 kB
      MemFree: 114452 kB
      Buffers: 53840 kB
      Cached: 1457244 kB
      SwapCached: 0 kB
      Active: 799924 kB
      Inactive: 800332 kB
      Active(anon): 17716 kB
      Inactive(anon): 72880 kB
      Active(file): 782208 kB
      Inactive(file): 727452 kB
      Unevictable: 0 kB
      Mlocked: 0 kB
      SwapTotal: 4095996 kB
      SwapFree: 4095996 kB
      Dirty: 288 kB
      Writeback: 0 kB
      AnonPages: 85144 kB
      Mapped: 34864 kB
      Shmem: 1424 kB
      Slab: 111976 kB
      SReclaimable: 80220 kB
      SUnreclaim: 31756 kB
      KernelStack: 4400 kB
      PageTables: 8808 kB
      NFS_Unstable: 0 kB
      Bounce: 0 kB
      WritebackTmp: 0 kB
      CommitLimit: 5049124 kB
      VmallocTotal: 34359738367 kB
      VmallocUsed: 180500 kB
      VmallocChunk: 34359547064 kB
      HardwareCorrupted: 0 kB
      AnonHugePages: 14336 kB
      HugePages_Total: 0
      HugePages_Free: 0
      HugePages_Rsvd: 0
      HugePages_Surp: 0
      Hugepagesize: 2048 kB
      DirectMap4k: 8192 kB
      DirectMap2M: 2088960 kB


      CPU:total 4 (initial active 4) (4 cores per cpu, 1 threads per core) family 6 model 44 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, clmul, tsc, tscinvbit, tscinv
      CPU Model and flags from /proc/cpuinfo:
      model name : Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm ida arat epb dtherm

      Memory: 4k page, physical 1906256k(114452k free), swap 4095996k(4095996k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (9+175) for linux-amd64 JRE (9+175), built on Jun 22 2017 02:05:35 by "javare" with gcc 4.9.2

      END.



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      #include <jni.h>
      #include <stdlib.h>

      int main(int argc, char *argv[])
      {
          JavaVMInitArgs vmArgs = { 0 };

          vmArgs.version = JNI_VERSION_1_8;
          vmArgs.nOptions = 0;
          vmArgs.ignoreUnrecognized = false;

          JNIEnv *env = NULL;
          JavaVM *jvm = NULL;

          jint ret = JNI_CreateJavaVM(&jvm, (void **) &env, &vmArgs);
          if (ret < 0 || jvm == NULL)
          {
          printf("failed\n");
              //log(0, "Unable to create a Java Virtual Machine");
              return -1;
          }
          printf("VM = %p\n", jvm);

      }

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

        Attachments

          Activity

            People

            • Assignee:
              fmatte Fairoz Matte
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: