can't backtrace stack overflow recursive virtual function
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
Dev-C++ 4.9.9.2, GDB 6.3
I am having a difficult time figuring out how to
troubleshoot a stack overflow with dev-c++ when a virtual
function is invloved. Once it occurs, the backtrace
provides no information, and sending, say, a "backtrace
5" command pretty much wacks out dev-c++ (dev-c++
goes 100% cpu, no gdb response).
With plain gdb, once the sigsegv occurs "backtrace n"
displays the last n frames.
Thanks!
Trivial example:
class recursive
{
public:
virtual void recurse();
};
void recursive::recurse()
{
this->recurse();
}
int main()
{
recursive recursor;
recursor.recurse();
}