Skip to contentSkip to conversation

Dump Management

DISCUSSION Marco Stornelli 2 participants 3 messages Jul 1, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

what's the standard way to manage the core dump and therefore the post-mortem debug? For my experience it could be useful to have a mechanism to have little dump image (only some information) to store it in flash and maybe to have an hook (or something like this) for each application to customize the dump information. What do you think about it?

Regards,

Signature · 7 lines
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it

[email protected]
+39 06 72582838
#1 lore raw

hI,

Quoted 1 line · Marco Stornelli

what's the standard way to manage the core dump and therefore the post-mortem debug?

For most embedded systems I know, core dumps are useful on the developer desk and in the testing lab. For analyzing field post-mortem (where it is feasible), use a custom fault signal hander in your app to catch the relevant information and save it.

If you're interested in a tutorial in doing this, I'm giving one at this year OLS. Or you can just check out the slides and example code here:

http://tuxology.net/lectures/crash-and-burn-writing-linux-application-fault-handlers/

Quoted 2 lines

For my experience it could be useful to have a mechanism to have little dump image (only some information) to store it in flash and maybe to have an hook (or something like this) for each application to customize the dump information. What do you think about it?

That's exactly what a custom fault signal handler does :-)

Cheers,
Gilad

Signature · 13 lines
Gilad Ben-Yossef Chief Coffee Drinker

Codefidence Ltd.
The code is free, your time isn't.(TM)

Web:    http://codefidence.com
Email:  [email protected]
Office: +972-8-9316883 ext. 201
Fax:    +972-8-9316885
Mobile: +972-52-8260388

	Q: How many NSA agents does it take to replace a lightbulb?
	A: dSva7DrYiY24yeTItKyyogFXD5gRuoRqPNQ9v6WCLLywZPINlu!
#2 lore raw

Gilad Ben-Yossef ha scritto:

Quoted 10 lines

hI,

Quoted 1 line · Marco Stornelli

what's the standard way to manage the core dump and therefore the post-mortem debug?

For most embedded systems I know, core dumps are useful on the developer desk and in the testing lab. For analyzing field post-mortem (where it is feasible), use a custom fault signal hander in your app to catch the relevant information and save it.

If you're interested in a tutorial in doing this, I'm giving one at this year OLS. Or you can just check out the slides and example code here:

Quoted 9 lines

http://tuxology.net/lectures/crash-and-burn-writing-linux-application-fault-handlers/

Quoted 2 lines

For my experience it could be useful to have a mechanism to have little dump image (only some information) to store it in flash and maybe to have an hook (or something like this) for each application to customize the dump information. What do you think about it?

That's exactly what a custom fault signal handler does :-)

Cheers,
Gilad

Very interesting....Thanks.

Signature · 7 lines
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it

[email protected]
+39 06 72582838