避免jvm捕获SEGV和hs_err_pid生成

发布于 2024-08-20 05:26:47 字数 192 浏览 2 评论 0原文

我有一个 jni 库在某个点崩溃。我得到的是一个 hs_err_pid 文件,其中包含

[错误报告期间发生错误(打印本机堆栈),id 0xb]

内容和此错误创建的核心文件。 因此,我想阻止 jvm 捕获这些信号,而让进程正常转储核心。 平台 Debian/Linux、Java(TM) SE 运行时环境(版本 1.6.0_16-b01)。

I have a jni lib that crashes on a certain point. What I get is a hs_err_pid file with

[error occurred during error reporting (printing native stack), id 0xb]

content and a core file of this error creation.
Therefore I would like to stop jvm from capturing these signals and just let the process dump core normally instead.
Platform Debian/Linux, Java(TM) SE Runtime Environment (build 1.6.0_16-b01).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小傻瓜 2024-08-27 05:26:47

您可以在 gdb 下运行程序,或者在进程崩溃之前将 gdb 附加到该进程。然后,当 SIGSEGV 发生时,gdb 将停止程序并允许您在信号处理程序执行之前检查它。

You can run the program under gdb, or attach gdb to the process before it crashes. Then when the SIGSEGV occurs, gdb will stop the program and allow you to inspect it before the signal handler executes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文