libSegFault and just in time debugging

Jim Ingham jingham@apple.com
Fri Jun 29 20:12:00 GMT 2007


We did this with Mac OS X for a while (the way Mach Exceptions work  
it's a little easier to implement, you don't need a special library or  
anything like that).  It's pretty neat.  We were doing it  
automatically with all processes on the system, which is even handier,  
but you do have to be careful - if you are attaching with gdb rather  
than dumping core
On Jun 29, 2007, at 1:00 PM, Daniel Jacobowitz wrote:

> On Fri, Jun 29, 2007 at 12:52:42PM -0700, Michael Snyder wrote:
>> Yes, apport is slick, but it relies on kernel mods.
>> This doesn't.  In fact, it isn't even peculiar to Linux, it would
>> work on any glibc system, and in principle even on systems
>> that don't use glibc.  Probably any unix, and even cygwin.
>
> FYI, cygwin already does this, too; it can invoke dumper (to  
> generate core
> dumps) or GDB.  I imagine you could invoke apport from a preloaded
> library easily; after all, you can hook into it from Python  
> exceptions.
>
> -- 
> Daniel Jacobowitz
> CodeSourcery



More information about the Gdb mailing list