Backtracing

No, I’m not talking about blog’s trackbacks but about the stack traces that are so much useful when trying to debug crashes and aborts in complex programs.

Lately it happened quite often to me to ask people to get backtraces when reporting crashes, as they makes my work way less difficult, as I don’t have to try two hunderd of thousand combinations while trying to reproduce a crash that happens only on the user’s system and with a given file. The reason I’m asking this now and I wasn’t before is that using Portage’s splitdebug feature makes quite cheap to ask users to enable debug information, they just have to rebuild the packages once, and then get rid of the whole /usr/lib/debug directory.

This helped me not only to fix the mad problem with xine-lib, but also alsaplayer’s crash and other things.
But repeating every time the whole stuff again (disable -O3, add -ggdb, bla bla bla). So I thought already in the last days to simply write a guide to tell the users how to do that, and then just point them to the page without having to repeat the whole thing. Today I asked solar if there was already a similar guide, and it seemed it wasn’t the case, so I’ve started drafting something up, and thanks (many many thanks) to Kevin Quinn I’ve been able to come up with a backtraces guide that should explain most of the tips and tricks needed to get backtraces.

Okay so today I spent it mostly on this and for my job, tonight I’ll try to fix a bug or two before going to sleep, but I’m quite tired already 😐 this job, and waiting for news of the new job, is stressing me.

Exit mobile version