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

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

问题描述

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



我还可以如何分析solaris的核心转储?



可以使用哪些命令执行此操作?

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

解决方案

您可以使用Solaris模块化调试器,mdb或dbx。 mdb随附SUNWmdb(或64位版本的SUNWmdb x)软件包。

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

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

在最近的solaris版本中,您可以配置核心文件将包含coreadm命令;例如,您可以拥有该进程所连接的映射内存段。

请参阅 MDB文档 dbx文档。一旦你了解了基础知识, GDB快速参考卡也很有帮助GDB。


I use pstack to analyze core dump files in 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?

解决方案

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 ...

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.

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天全站免登陆