0 Replies Latest reply on Mar 13, 2017 5:27 AM by 3413518

    JVM Crash on SafepointSynchronize::begin




      Our application process invokes JVM to perform some JNI calls. Intermittently JVM is crashing by sending abort signal to the application causing even the application to crash.

      Call Stack

      Thread 1 (Thread 0x7f92444f6700 (LWP 32570)):
      #0 0x000000341fc325e5 in raise () from /lib64/libc.so.6
      #1 0x000000341fc33dc5 in abort () from /lib64/libc.so.6
      #2 0x00007f925a9389d5 in os::abort(bool) () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #3 0x00007f925aadb033 in VMError::report_and_die() () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #4 0x00007f925a510c92 in report_vm_error(char const*, int, char const*, char const*) ()
      from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #5 0x00007f925a9d1814 in SafepointSynchronize::begin() () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #6 0x00007f925aae2b6d in VMThread::loop() () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #7 0x00007f925aae2cf0 in VMThread::run() () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #8 0x00007f925a939ea8 in java_start(Thread*) () from /opt/CA/smuser/jdk1.8/jdk1.8.0_111/jre/lib/amd64/server/libjvm.so
      #9 0x0000003420007aa1 in start_thread () from /lib64/libpthread.so.0
      #10 0x000000341fce8aad in clone () from /lib64/libc.so.6


      It looks like the JVM is entering into safepoint and suspending all the threads(Native and Java threads) and finally getting into crashed state.

      Could you please answer the following queries?
       At what situations, JVM tend to enter into safepoint stage?
       Is there any fix/workaround available to avoid this safepoint crash?
       Attached the java process crash log. Analyze and let us know the probable insights of the crash.