Solaris 核心转储分析 [英] Solaris Core dump analysis

查看:35
本文介绍了Solaris 核心转储分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Solaris 中使用 pstack 分析核心转储文件

I use pstack to analyze core dump files in Solaris

我还能如何分析来自 solaris 的核心转储?

How else can I analyze the core dump from solaris?

可以使用哪些命令来做到这一点?

What commands can be used to do this?

从转储中可以获得哪些其他信息?

What other information will be available from the dump?

推荐答案

您可以使用 Solaris 模块化调试器、mdb 或 dbx.mdb 附带 SUNWmdb(或 SUNWmdb x,对于 64 位版本)软件包.

You can use Solaris modular debugger,mdb, or dbx. mdb comes with SUNWmdb (or SUNWmdb x for the 64 bits version) package.

核心文件是您正在运行的进程在崩溃时的映像.

A core file is the image of your running process at the time it crashed.

根据您的应用程序是否使用调试标志编译,您将能够查看堆栈图像,从而了解哪个函数导致核心,获取传递给该函数的参数值,变量的值,分配的内存区域...

Depending on whether your application was compiled with debug flags or not,you will be able to view an image of the stack, hence to know which function caused the core, to get the value of the parameters that were passed to that function, the value of the variables, the allocated memory zones ...

在最近的 solaris 版本中,您可以使用 coreadm 命令配置核心文件将包含的内容;例如,您可以将进程附加到映射的内存段.

On recent solaris versions, you can configure what the core file will contain with the coreadm command ; for instance, you can have the mapped memory segments the process were attached to.

请参阅 MDB 文档dbx 文档.GDB 快速参考 卡片在您了解GDB.

Refer to MDB documentation and dbx documentation. The GDB quick reference card is also helpful once you know the basics of GDB.

这篇关于Solaris 核心转储分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆