After upgrading from Qt 4.7 to Qt 4.8 with a clean Qt SDK installation on Windows 7 64-bit with MinGW, GDB debugger crashes on QApplication.

Here's what my Qt SDK installation looks like: http://i.imgur.com/8Cu5F.png

Debugging the default generated Qt GUI Project and setting break points on every line in the main function, which compiles and runs just fine:

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. MainWindow w;
  5. w.show();
  6.  
  7. return a.exec();
  8. }
To copy to clipboard, switch view to plain text mode 

The debuggers all behave differently:

C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe

Start debugging
Stops on breakpoint set on the line QApplication a(argc, argv);
When I click Continue to the next line MainWindow w:



C:\QtSDK\mingw\bin\gdb.exe

gdb.exe crashes before debugging starts:



C:\MinGW\bin\gdb.exe

Same as C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe

C:\MinGW\bin\gdb-python27.exe

Same as C:\QtSDK\mingw\bin\gdb.exe

I also tried an installation with Qt 4.8 MSVC 2010 checked and MinGW unchecked, but that one resulted in all the same.

I also tried to separately install Qt libraries 4.8.0 for Windows (minGW 4.4, 354 MB) and Qt Creator 2.4.1 for Windows (53 MB), also crashed the same.

What next?