On Fri, Sep 21, Richard W.M. Jones wrote:
 On Fri, Sep 21, 2012 at 03:40:35PM +0200, Olaf Hering wrote:
 > gdb is certainly more advanced, something like 'var="gdb --readnow -ex r
 > -ex bt -ex quit' ; $var guestfsd' would be good enough, or gdb
 > --command=FILE.
 > As you say, without adding debuginfo into guest the backtrace would be
 > not that useful. But its better than nothing.
 
 glibc -- on Fedora -- prints a stack trace on exit, so we've not had a
 need to get one out using gdb.  A core dump would be the really useful
 thing for us. 
How does it do that, via a segfault handler? I mean, is that a private
patch or something in upstream glibc?
Olaf