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

Breakpoint in QThread hit too often

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 4.12.0-beta1
    • Debugger
    • Windows 10 1909
      MSVC2017 64 bit
      cdb 10.0.18362.1
      Qt 5.14.1
    • Windows

      1. Open project simple.pro.
        It's in tests\manual\debugger\simple\simple.pro of Creator's repository.
      2. Uncomment the call to qthread::testQThread()
      3. Place a breakpoint in qthread::Thread::run()
        I have it in line 4303:
        int j = 2;
        
      4. Start debugging.
      5. When the breakpoint was hit for the first time, expand "this" in the Locals view.
      6. Continue.
      7. Each time the breakpoint is hit, let the debugger continue and count how often you do so.
        I usually have to continue 15 or 16 times, although only 14 threads are run. In the Locals view I can see that the breakpoint is hit twice in some threads.

      The debugger should hit the breakpoint exactly once for each of the threads.

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

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes