Menu

#549 can't backtrace stack overflow recursive virtual function

open
nobody
None
5
2012-09-26
2005-04-26
Dave Fox
No

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();
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.