Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23219

Locals view goes berserk on QThread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.10.2, Qt Creator 4.11.0-rc1, Qt Creator 15.0.0-rc1
    • Debugger
    • Ubuntu 16.04 LTS 64 bit
      gcc 7.4.0
      gdb 8.1.0
      project built on Qt 5.13.2
    • a9e8b106a (15.0)

    Description

      1. Open simple.pro from Creator's repository.
        It's in tests/manual/debugger/simple/simple.pro
      2. Uncomment the call to qthread::testQThread();
        It currently is in line 7307 of main.cpp
      3. Place a breakpoint in qthread::Thread::run.
        I had it in line 4308 of main.cpp:
        if (m_id == 2) {
        
      4. Debug the application.
        It will hit the breakpoint. Everything looks fine so far.
      5. In Locals view, expand "this".
        The displayed values will quickly change continuously. It looks like the debugger is rushing through all started threads.

      The Locals view should only display the values of the one thread where the debugger stopped.

      Attachments

        1. left.log
          43 kB
        2. right.log
          562 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes