发生崩溃时查看堆栈

发布于 2024-08-06 12:18:06 字数 198 浏览 3 评论 0原文

我正在使用 AIX 操作系统。这里我面临一个问题,每当进程崩溃时,日志中都不会写入堆栈。它只给出发生了 signal11/10/4 的信息。 但没有显示堆栈。 由于代码是优化代码,我什至无法使用 dbx.gdb 进行调试。 您能建议如何在程序崩溃时查看堆栈跟踪吗? 可能使用任何其他工具或者是否可以遵循任何 cheet 方法来查看实际的堆栈跟踪?

预先感谢您的帮助。

i am using AIX OS.here i am facing a problem that when ever the process crashes there is no stack written in the log.it just gives an information of signal11/10/4 has occured.
but no stack is shown.
since the code is an optimized code i am even not able to debud using dbx.gdb is not installed.
could you please suggest how to see the stack trace whenever the program crashes.
might be with any other tool or incase any cheet method to follow to view the actual stack trace?

advance thanks for the help.

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

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

发布评论

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

评论(1

你爱我像她 2024-08-13 12:18:06

这适用于 AIX 5.1:

在启动二进制文件之前,使用 ulimit 命令设置核心转储的限制(该限制可能设置为 0,这意味着您根本没有获得任何核心转储)。您需要在与您运行的进程相同的 shell 中执行此操作。然后你可以使用调试器来查看核心中的堆栈。不过,您需要在二进制文件中包含调试符号才能充分理解它。检查“man ulimit”以了解 ulimit 的工作原理。祝你好运!

This works on AIX 5.1:

Use the ulimit command to set the limit for core dumps, before you start the binary (the limit is likely set to 0, which means you're not getting any core dump at all). You will need to do this in the same shell as the process you run. Then you can use the debugger to see the stack in the core. You will need to have debugging symbols in the binary to make much sense out of it, though. Check 'man ulimit' to see how ulimit works. Good luck!

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