Re: backtrace from a SIGSEGV handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arne Steinarson wrote:
> Hello,
> 
> [gcc/g++ 4.3 on i386, linux]
> 
> In our SIGSEGV handler we want to make a backtrace to get some context
> in a generated bug report.
> 
> This works fine in most cases. However, when doing a virtual function call on
> an non initialized C++ object this can lead to calling an arbitrary address.
> And in the backtrace call, GCC generates a new SIGSEGV when attempting
> to trace around that address. GCC then shuts down the app.

There's a patch for this here:

http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00909.html

Try it and see.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux