Is it possible to debug core dumps when using Java JNI?

后端 未结 2 1484
心在旅途
心在旅途 2021-02-04 15:13

My application is mostly Java but, for certain calculations, uses a C++ library. Our environment is Java 1.6 running on RedHat 3 (soon to be RedHat 5).

My problem is tha

2条回答
  •  [愿得一人]
    2021-02-04 15:57

    Yes, there is. Everytime JVM crashes because of a SIGSEGV in the JNI part, you'll get a file with core dump in $JAVA_HOME/bin directory. It usually name hs_err_PID.log.

    You can get more info here, and here. Here is a somewhat related stackoverflow question.

提交回复
热议问题