[Bug c++/23639] QtCreator stall and timeout after 40 seconds due to GDB

mgarvin at panix dot com sourceware-bugzilla@sourceware.org
Wed Sep 12 21:19:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23639

--- Comment #2 from Mark Garvin <mgarvin at panix dot com> ---
Hi Simon,

I'd love to have found some way to reproduce odd behavior, but unfortunately it
remains elusive.  In fact, I thought that converting code from GCC to Clang++
had fixed it, and even posted on the Qt forum site to that effect. Then had to
take that back, as it popped up elsewhere.

The only way to describe this is that setting a breakpoint within a certain
stretch of source code would break correctly, but then continuing execution
afterward will stall forever.  QtCreator has a watchdog that pops up after 40
seconds of no response.  If told to continue, GDB goes away, never to return.

The exact placement of that break statement does not seem to matter, as long as
it is within a certain range of source statements.  And the location of that
range seems to shift.  At least it did after the conversion to Clang++. That is
why I initially thought it was fixed.

When the same code is executed without setting breakpoints, it runs without a
glitch, exactly as expected.  The places where this occurs is relatively
generic OpenCV C++ code.  Pretty much textbook stuff.

If there was some way to break out of GDB's infinite loop (or whatever), I
might be able to gain more perspective.

Please let me know if you can think of any way to gather additional info.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list