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

Debugger misses some breakpoints hits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 16.0.0-beta1
    • Debugger
    • Windows
    • 7e8322030 (16.0)

    Description

      Debugger seemingly randomly misses hits of a breakpoint set at the beginning of a function.

      Steps to reproduce:

      • Open tests/manual/debugger/simple/simple.pro from the Qt Creator repo
      • In simple_test_app.cpp:
        • Uncomment line 7214 containing qthread::testQThread();
        • Place a breakpoint at the very beginning of qthread::Thread::run() (line 4209)
      • Start debugging; pay attention to the ID (or the name) of the thread when breakpoint is hit. Hits for some threads will not arrive.

      Below are the results from a couple of my runs (x denotes a hit for the thread with the given ID):

      ID    0  1  2  3  4  5  6  7  8  9 10 11 12 13
      Run 1 x  x  x  x  x     x        x  x  x  x  x
      Run 2 x     x  x     x  x     x  x     x  x  x
      Run 3 x  x  x  x  x  x  x     x  x  x     x  x
      Run 4 x  x     x  x  x  x        x  x  x  x  x
      Run 5 x  x     x  x  x  x     x     x  x  x  x
      Run 6 x  x        x  x  x           x  x  x  x
      

      Interestingly enough, when placed further down the code of the function, breakpoints trigger for all threads as expected.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-32424
        # Subject Branch Project Status CR V

        Activity

          People

            hjk hjk
            ansemkiv Andrii Semkiv
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes