CDB Debugger generates exception in RtlpWaitFroCriticalSection before entering Main{}



  • Trying to use the CDB debugger for the 1st time with following code and a breakpoint on the integer declaration. I may have somethig setup incorrectly in the toolchain , IDE, etc... Not sure what I should I look into next. The source code below runs fine in either the Release or Debug configurations. I just can't use the debugger.

    @int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);
    int i = 99;
    printf("Hello %d\n", i);
    return a.exec();
    }@

    Application Output follows::

    Debugging starts
    Exception at 0x7c919af2, code: 0xc0000005: write access violation at: 0x10, flags=0x0
    Debugging has finished
    <<<

    Development Environment::
    QT Creator 2.1.0
    Qt 4.7.1 (32 bit) Feb-14-2011; rev 8ef69343b8
    Windows XP Professional Ver 2002 SP3
    Compiler: MSVC C++ 9.0 (x86)
    Debugging Tools: C:\Program Files\Debugging Tools For Windows (x86) [Version 6.12.2.633]
    Debugger CDB Symbol Path:
    "symsrvsymsrv.dllC:\DOCUME~1\JOE~1.ELV\LOCALS~1\Temp\symbolcache*http://msdl.microsoft.com/download/symbols"

    QT4 Options::
    !C:\Documents and Settings\joe.elvin\Desktop\QT4_Options.JPG(QT4 Options image...)!






  • Moderators

    Please "file a bug report":http://bugreports.qt.nokia.com/ and attach the debugger log (top right area in the debug mode).



  • My account does not allow to log into the bug report area. Below is the Debug logger produced using QT Creator 2.1.0 -->

    Starting debugger 'CdbEngine' for tool chain 'Microsoft Visual C++'...
    dDebugger settings:
    dUseAlternatingRowColours: false (default: false)
    dUseMessageBoxForSignals: true (default: true)
    dAutoQuit: false (default: false)
    dLogTimeStamps: false (default: false)
    dVerboseLog: false (default: false)
    dCloseBuffersOnExit: false (default: false)
    dSwitchModeOnExit: false (default: false)
    dUseDebuggingHelper: true (default: true)
    dUseCustomDebuggingHelperLocation: false (default: false)
    dCustomDebuggingHelperLocation: (default: )
    dDebugDebuggingHelpers: false (default: false)
    dUseCodeModel: true (default: true)
    dUseToolTips: false (default: false)
    dUseToolTipsInLocalsView: false (default: false)
    dUseToolTipsInBreakpointsView: false (default: false)
    dUseAddressInBreakpointsView: false (default: false)
    dUseAddressInStackView: false (default: false)
    dRegisterForPostMortem: false (default: false)
    dEnvironment: (default: )
    dScriptFile: (default: )
    dWatchdogTimeout: 20 (default: 20)
    dMaximalStackDepth: 20 (default: 20)
    dShowStandardNamespace: true (default: true)
    dShowQtNamespace: true (default: true)
    dSortStructMembers: true (default: true)
    dAutoDerefPointers: true (default: true)
    dListSourceFiles: false (default: false)
    dSkipKnownFrames: false (default: false)
    dEnableReverseDebugging: false (default: false)
    dAllPluginBreakpoints: true (default: true)
    dSelectedPluginBreakpoints: false (default: false)
    dAdjustBreakpointLocations: true (default: true)
    dNoPluginBreakpoints: false (default: false)
    dSelectedPluginBreakpointsPattern: .* (default: .*)
    dBreakOnThrow: false (default: false)
    dBreakOnCatch: false (default: false)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
    dVersion: 6.12
    dNOTE: ENGINE SETUP OK
    dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
    dQUEUE: SETUP INFERIOR
    dCALL: SETUP INFERIOR
    dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
    dNOTE: INFERIOR SETUP OK
    dState changed from InferiorSetupRequested(4) to EngineRunRequested(6).
    dQUEUE: RUN ENGINE
    dCALL: RUN ENGINE

    Microsoft (R) Windows Debugger Version 6.12.0002.633 X86
    Copyright (c) Microsoft Corporation. All rights reserved.

    CommandLine: "C:\Documents and Settings\joe.elvin\My Documents\Qt Projects\untitled\debug\untitled.exe"

    Starting directory: C:\Documents and Settings\joe.elvin\My Documents\Qt Projects\untitled

    dNOTE: ENGINE RUN AND INFERIOR STOP OK
    dState changed from EngineRunRequested(6) to InferiorStopRequested(12).
    dNOTE: INFERIOR STOP OK
    dState changed from InferiorStopRequested(12) to InferiorStopOk(13).
    dNOTE: INFERIOR RUN REQUESTED
    dState changed from InferiorStopOk(13) to InferiorRunRequested(9).
    dNOTE: INFERIOR RUN OK
    dState changed from InferiorRunRequested(9) to InferiorRunOk(10).
    Symbol search path is:
    symsrvsymsrv.dllC:\DOCUME~1\JOE~1.ELV\LOCALS~1\Temp\symbolcache*http://msdl.microsoft.com/download/symbols

    Executable search path is: C:\Documents and Settings\joe.elvin\My Documents\Qt Projects\untitled\debug

    ModLoad: 00400000 0040a000 untitled.exe
    ModLoad: 7c900000 7c9b2000 ntdll.dll
    ModLoad: 7c800000 7c8f6000 C:\WINDOWS\system32\kernel32.dll
    sLoading the custom dumper library 'C:\Qt\4.7.2\qtc-debugging-helper\debug\gdbmacros.dll' (injection) ...
    ModLoad: 67000000 673f4000 C:\Qt\4.7.2\bin\QtCored4.dll
    ModLoad: 7e410000 7e4a1000 C:\WINDOWS\system32\USER32.dll
    ModLoad: 77f10000 77f59000 C:\WINDOWS\system32\GDI32.dll
    ModLoad: 774e0000 7761e000 C:\WINDOWS\system32\ole32.dll
    ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
    ModLoad: 77e70000 77f03000 C:\WINDOWS\system32\RPCRT4.dll
    ModLoad: 77fe0000 77ff1000 C:\WINDOWS\system32\Secur32.dll
    ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
    ModLoad: 71ab0000 71ac7000 C:\WINDOWS\system32\WS2_32.dll
    ModLoad: 71aa0000 71aa8000 C:\WINDOWS\system32\WS2HELP.dll
    ModLoad: 10480000 10557000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\MSVCP90D.dll

    ModLoad: 10200000 10324000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\MSVCR90D.dll
    ModLoad: 76390000 763ad000 C:\WINDOWS\system32\IMM32.DLL

    w*** WARNING: Unable to verify checksum for
    wC:\WINDOWS\system32\wxvault.dll
    w
    w
    ModLoad: 10000000 10063000 C:\WINDOWS\system32\wxvault.dll
    ModLoad: 76bf0000 76bfb000 C:\WINDOWS\system32\PSAPI.DLL
    ModLoad: 71b20000 71b32000 C:\WINDOWS\system32\MPR.dll
    ModLoad: 77c00000 77c08000 C:\WINDOWS\system32\VERSION.dll
    ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll

    Exception at 0x7c919af2, code: 0xc0000005: write access violation at: 0x10, flags=0x0
    Exception at 0x7c919af2, code: 0xc0000005: write access violation at: 0x10, flags=0x0
    dDisabling dumpers due to debuggee crash...

    dNOTE: INFERIOR SPONTANEOUES STOP
    dState changed from InferiorRunOk(10) to InferiorStopOk(13).
    dStopped, current thread: 0
    sStopped at 2089917170 (RtlpWaitForCriticalSection) in thread 0 (missing debug information).
    sException at 0x7c919af2, code: 0xc0000005: write access violation at: 0x10, flags=0x0
    s
    s
    w*** WARNING: Unable to verify checksum for
    wC:\WINDOWS\system32\detoured.dll
    w
    w
    ModLoad: 00380000 00385000 C:\WINDOWS\system32\detoured.dll
    ModLoad: 7c9c0000 7d1d7000 C:\WINDOWS\system32\SHELL32.dll
    (10f8.148c): Access violation

    • code c0000005 (first chance)

    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.