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

Debugger works correctly once per project. Future runs step into ntdll disassembly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 3.0.0-beta
    • Qt Creator 2.8.1
    • Debugger
    • None
    • Windows 7 SP1, using Qt 5.1.1 for Windows 32-bit (MinGW 4.8) installer.

      GDB successfully steps through a C++ program one time. After that, attempting to step through program drops me to assembly view of ntdll when I hit cout or other library call.

      Steps:

      1. Make a new Plain C++ Project
      2. Add code:
        #include <iostream>
        
        using namespace std;
        
        int main()
        {
            int x = 5;
            cout << x;
        
            return 0;
        }
        

        #Put break point on first line of main.
        #Build/Start debugger. Hit step over twice. Works as expected, produces output in goodRun.txt attached.
        #Restart debugger. Hit step once, fine. Hit again on cout line (or other library call), and get dumped into ntdll dissassembly - no way to continue tracing code in original project. Debugger output in badRun.txt attached.

      Any run after the first produces the drop to assembly. After making a new project, it will run debug correctly once as well, then get weird.

      Tried clean builds, manually deleting everything but .cpp and .pro files, restarting QTCreator, doesn't matter. Once I run a project one time it will not debug correctly on future runs.

      I have observed this behavior on multiple machines.

        1. badRun.txt
          33 kB
        2. badRunHome.txt
          27 kB
        3. goodRun.txt
          27 kB
        4. goodRunHome.txt
          26 kB
        5. standaloneQTCreatorHome.txt
          26 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            ascholer Andrew Scholer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes