LWN.net Logo

KS2012: Improving tracing and debugging

KS2012: Improving tracing and debugging

Posted Oct 5, 2012 12:05 UTC (Fri) by oak (subscriber, #2786)
Parent article: KS2012: Improving tracing and debugging

Neither larger distros and Mozilla do this for user-space crashes. The line information is added to the crash data of the stripped code afterwards, by using a non-stripped version of the binary.

This is done either locally or in crash upload service. Here's a description of the Ubuntu service:
https://wiki.ubuntu.com/Apport

I.e. when you strip the kernel, you keep the non-stripped version also around and add CRC for the full one to the stripped kernel you install & boot with, so that the crash "retrace" tool can verify that they match. Debian's dh_strip has script that does this the stripping & CRC adding with objdump.

Distro tools use Gdb for adding the line information, but kernel may need its own tool which developer can user on his own kernel builds.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds