pyjnius
pyjnius copied to clipboard
JVM crash couldn't analyze
HI, I use pyjnius in my project.
when I run my function , I get a JVM crash randomly with below message.
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007f1dad332b3f, pid=21666, tid=0x00007f105e7fc700
JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode linux-amd64 ) Problematic frame: V [libjvm.so+0x6d5b3f] jni_invoke_nonstatic(JNIEnv_, JavaValue, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x1af
problematic frame is in libjvm.so, how to know what is the problem ? Also observed that pyjnius cannot give me the whole exception callstack, it just returns me the error message. is there a way to get full callstack ?
please find the update. I was able to generate the core dump .
below is the core dump call stack.
can you tell me the problem from below stack ? It's a random jvm crash I am getting
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/python3.6 /home/root1/Documents/ab/workspace/historm/historm/examples/'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f94335fe700 (LWP 2896))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007f9480000f5d in _GI_abort () at abort.c:90
#2 0x00007f945a2db3c5 in os::abort(bool) () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#3 0x00007f945a47f5b3 in VMError::report_and_die() () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#4 0x00007f945a2e170f in JVM_handle_linux_signal () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#5 0x00007f945a2d7653 in signalHandler(int, siginfo*, void*) () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#6
please find the update. I was able to generate the core dump .
below is the core dump call stack.
can you tell me the problem from below stack ? It's a random jvm crash I am getting
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/python3.6 /home/root1/Documents/ab/workspace/historm/historm/examples/'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f94335fe700 (LWP 2896))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007f9480000f5d in _GI_abort () at abort.c:90
#2 0x00007f945a2db3c5 in os::abort(bool) () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#3 0x00007f945a47f5b3 in VMError::report_and_die() () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#4 0x00007f945a2e170f in JVM_handle_linux_signal () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#5 0x00007f945a2d7653 in signalHandler(int, siginfo*, void*) () from /usr/lib/jvm/jdk1.8.0_181/jre/lib/amd64/server/libjvm.so
#6
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.