[PING][PATCH] Segfault while unwinding an invalid function pointer

Andrew Haley aph-gcc@littlepinkcloud.COM
Sat Oct 27 13:23:00 GMT 2007


Pete Eberlein writes:
 > This patch, which fixes a segfault problem when generating a backtrace 
 > from signal handler called as a result of a invalid function pointer 
 > call, has not yet been reviewed:
 > 
 > http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00594.html

I suspect the reason for this is that everybody hates it but nobody
can think of a better way to do the same thing.  The idea of trapping
in the kernel via a write(2) call is clever, but it's also very
heavyweight.  I also agree with all of Pinski's objections.

Andrew.



More information about the Gcc-patches mailing list