
1 Sep
2013
1 Sep
'13
1:28 a.m.
I have a program that keeps crashing. gdb is next to useless as it gives a "generic error" enumerating threads most of the time, and even when it doesn't none of the backtraces make any sense (mostly 0's and random values). It's a heisenbug so the fault cannot be reproduced under valgrind. Is there any way I can do a reasonableness test on the stack from C/C++? At a minimum I think all I would need to do is get the return address and check that is within a certain range and not null's etc. Thanks James