openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to analyze core dump data
@ 2021-04-23  7:58 George Liu
  2021-04-23 11:26 ` Lei Yu
  0 siblings, 1 reply; 2+ messages in thread
From: George Liu @ 2021-04-23  7:58 UTC (permalink / raw)
  To: OpenBMC Maillist

Hey guys:
I have a question:

When I test and monitor the `bmcweb` daemon, sometimes I encountered a
`core dump` due to the code error. I want to extract the core dump
data and analyze it to quickly locate the number of lines of code, but
I do not know how to analyze core dump data.

I tried to use `gdb` to operate(gdb <binary file> <coredumpfile>), but
I did not get the desired result. So I want to know if there are other
ways to analyze core dump data? Or where there are references, please
let me know, Thank you.

George Liu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to analyze core dump data
  2021-04-23  7:58 How to analyze core dump data George Liu
@ 2021-04-23 11:26 ` Lei Yu
  0 siblings, 0 replies; 2+ messages in thread
From: Lei Yu @ 2021-04-23 11:26 UTC (permalink / raw)
  To: George Liu; +Cc: OpenBMC Maillist

On Fri, Apr 23, 2021 at 3:59 PM George Liu <liuxiwei1013@gmail.com> wrote:
>
> Hey guys:
> I have a question:
>
> When I test and monitor the `bmcweb` daemon, sometimes I encountered a
> `core dump` due to the code error. I want to extract the core dump
> data and analyze it to quickly locate the number of lines of code, but
> I do not know how to analyze core dump data.
>
> I tried to use `gdb` to operate(gdb <binary file> <coredumpfile>), but
> I did not get the desired result. So I want to know if there are other
> ways to analyze core dump data? Or where there are references, please
> let me know, Thank you.
>

Check https://github.com/openbmc/docs/blob/master/cheatsheet.md#gdb

-- 
BRs,
Lei YU

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-23 11:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23  7:58 How to analyze core dump data George Liu
2021-04-23 11:26 ` Lei Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).