Solaris Core dump analysis

前端 未结 8 1536
感动是毒
感动是毒 2020-12-23 17:45

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 othe

相关标签:
8条回答
  • 2020-12-23 18:29

    I would suggest trying gdb first as it's easier to learn basic tasks than the native Solaris debuggers in my opinion.

    0 讨论(0)
  • 2020-12-23 18:30

    Attach to the process image using the dbx debugger:

    dbx [executable_file_name] [coredump_file_name]

    It is important that there were no changes to the executable since the core was dumped (i.e. it wasn't rebuilt).

    You can see the stack trace to see where the program crashed with dbx command "where".

    You can move up and down the stack with command "up" and "down", or jump to the exact stack frame with "frame [number]", with the numbers seen in the output of "where".

    You can print the value of variables or expressions with "print [expr]" command.

    Have fun.

    0 讨论(0)
提交回复
热议问题