Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. gdb hangs
Forum Updated to NodeBB v4.3 + New Features

gdb hangs

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 909 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paulf
    wrote on last edited by paulf
    #1

    I've seen this and the solution does not work for me. When I try to debug from within Creator I just get

    {symbol loading messages}

    {breakpoint messages}

    NON-CRITICAL TIMEOUT
    COMMANDS STILL IN PROGRESS

    in the debugger log, and then an indefinite hang.

    (it might help if the above message included the commands being waited on).

    This is with Qt Creator 4.15.1 on RHEL 7.6 with gdb 8.3.1

    If I run pstack on the running gdb process, it is waiting in poll(). If both Creator and gdb are waiting for something then that seems like a deadlock.

    1 Reply Last reply
    1
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      dead lock or infinite loop. Try valgrind or strace and you may find some clue.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paulf
        wrote on last edited by
        #3

        This is at gdb startup. The deadlock is between Creator and gdb. My app doesn't even get to main().

        I'm not going to try to run Creator under Valgrind. I could try strace, but I was hoping that there might be a better way.

        1 Reply Last reply
        0
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          https://doc.qt.io/qtcreator/creator-troubleshooting-debugging.html
          https://forum.qt.io/topic/98386/qt-debugger-hangs-when-starting-debugging-process/7

          P 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

            https://doc.qt.io/qtcreator/creator-troubleshooting-debugging.html
            https://forum.qt.io/topic/98386/qt-debugger-hangs-when-starting-debugging-process/7

            P Offline
            P Offline
            paulf
            wrote on last edited by
            #5

            This is gdb on Linux, so the Visual Studio debugger on Windows is not relevant.

            I checked the other link and https://doc.qt.io/qtcreator/creator-debugger-engines.html. gdb does have python and is more than the minimum version required. I can't see anything else there of use.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved