How to debug a native Java crash on Linux?

后端 未结 3 608
猫巷女王i
猫巷女王i 2021-02-13 05:49

I\'ve seen this question and this article on how to debug a native Java crash. The article is with respect to Windows. What are the equivalent debugging aids on Linux?

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-13 06:27

    I was expecting a JNI call in the crash dump, but it does not appear to be the cause, but instead a bug in the pthreads library.

    I cannot remember offhand if the pthreads library must be provided by the underlying platform or it is baked into the JRE, but I would suggest that you ensure that you are running on one of the officially supported Linux platforms and if not, then strongly consider switching.

提交回复
热议问题