Unexpected GDB exit , how do i know why the GDB crashed?



  • hello all
    i downloaded the QT Creator 2.5 , using mingw that i downloaded from Qt site called : MinGW-gcc440_1
    set up the paths in the QT Creator 2.5 and in windows global PATH .
    im in debug mode when i compile , but when i try to debug with GDB
    im getting this error in error msg windows : Unexpected GDB exit in title , the gdb process crashed .
    im using windows 7 , 64bit , but the g++ is compiling in 32bit ,
    i tried to search for some log in QT Creator 2.5 with no luck..
    ok i have log of the debugger but i have hard time to find the problem :

    first part:
    @sStarting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
    dStart parameters: 'LiveU_windows' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dLanguages: c++
    dExecutable: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows\debug\LiveU_windows.exe
    dDirectory: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows
    dProject: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows (built: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows)
    dQt: C:\Qt\4.8.2_mingw
    dQML server: 127.0.0.1:3768
    dSysroot:
    dDebug Source Location:
    dSymbol file:
    dDumper libraries: C:\Qt\4.8.2_mingw\qtc-debugging-helper\ D:\Qt\qtcreator-2.5.0\qtc-debugging-helper\188129479\ C:\Users\meirmaya\AppData\Local\Nokia\QtCreator\qtc-debugging-helper\188129479
    d
    dDebugger settings:
    dUseAlternatingRowColours: false (default: false)
    dFontSizeFollowsEditor: 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)
    dUseCodeModel: true (default: true)
    dShowThreadNames: true (default: false) ***
    dUseToolTips: false (default: false)
    dUseToolTipsInLocalsView: false (default: false)
    dUseToolTipsInBreakpointsView: false (default: false)
    dUseAddressInBreakpointsView: false (default: false)
    @

    Thanks for helping



  • second part :

    @UseAddressInStackView: false (default: false)
    dRegisterForPostMortem: false (default: false)
    dLoadGdbInit: true (default: true)
    dGdbStartupCommands: (default: )
    dWatchdogTimeout: 20 (default: 20)
    dAutoEnrichParameters: false (default: false)
    dUseDynamicType: true (default: true)
    dTargetAsync: false (default: false)
    dMaximalStackDepth: 20 (default: 20)
    dAlwaysAdjustStackColumnWidths: false (default: false)
    dShowStandardNamespace: true (default: true)
    dShowQtNamespace: true (default: true)
    dSortStructMembers: true (default: true)
    dAutoDerefPointers: true (default: true)
    dAlwaysAdjustLocalsColumnWidths: false (default: false)
    dListSourceFiles: false (default: false)
    dSkipKnownFrames: false (default: false)
    dEnableReverseDebugging: false (default: false)
    dAllPluginBreakpoints: true (default: true)
    dSelectedPluginBreakpoints: false (default: false)
    dAdjustBreakpointLocations: true (default: true)
    dAlwaysAdjustBreakpointsColumnWidths: false (default: false)
    dNoPluginBreakpoints: false (default: false)
    dSelectedPluginBreakpointsPattern: .* (default: .*)
    dBreakOnThrow: false (default: false)
    dBreakOnCatch: false (default: false)
    dBreakOnWarning: false (default: false)
    dBreakOnFatal: false (default: false)
    dBreakOnRaise: false (default: false)
    dAlwaysAdjustRegistersColumnWidths: false (default: false)
    dAlwaysAdjustSnapshotsColumnWidths: false (default: false)
    dAlwaysAdjustThreadsColumnWidths: false (default: false)
    dAlwaysAdjustModulesColumnWidths: false (default: false)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
    dQUEUE: SETUP ENGINE
    dCALL: SETUP ENGINE
    dTRYING TO START ADAPTER
    dENABLING TEST CASE: 0
    dSTARTING D:/Qt/MinGW-gcc440_1/mingw/bin/gdb.exe -i mi --tty=\.\pipe\creator-2548-6359
    dGDB STARTED, INITIALIZING IT
    <235show version
    <236-list-features
    <237set print object on
    <238set breakpoint pending on
    <239set print elements 10000
    <240set overload-resolution off
    <241handle SIGSEGV nopass stop print
    <242set unwindonsignal on
    <243pwd
    <244set width 0
    <245set height 0
    <246-interpreter-exec console "set breakpoint always-inserted on"
    <247-interpreter-exec console "set trust-readonly-sections on"
    <248-interpreter-exec console "set auto-solib-add on"
    <249-interpreter-exec console "set remotecache on"
    <250-interpreter-exec console "maintenance set internal-warning quit no"
    <251-interpreter-exec console "maintenance set internal-error quit no"
    <252-interpreter-exec console "disassemble 0 0"
    <253-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/bridge.py')"
    <254-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/dumper.py')"
    <255-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/qttypes.py')"
    <256-interpreter-exec console "bbsetup"
    dADAPTER SUCCESSFULLY STARTED
    dNOTE: ENGINE SETUP OK
    dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
    dQUEUE: SETUP INFERIOR
    dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
    dQUEUE: SETUP INFERIOR

    ~"GNU gdb 6.8\n"
    ~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\n"
    ~"This is free software: you are free to change and redistribute it.\n"
    ~"There is NO WARRANTY, to the extent permitted by law. Type "show copying"\n"
    ~"and "show warranty" for details.\n"
    ~"This GDB was configured as "i686-pc-mingw32".\n"
    dCALL: SETUP INFERIOR
    sSetting up inferior...@



  • last part :

    257set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.2_mingw
    <258set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Qt/4.8.2_mingw
    <259set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt C:/Qt/4.8.2_mingw
    <260-file-exec-and-symbols "D:/dev/cpp/Qt/Qt_mingw/LiveU_windows/LiveU_windows/debug/LiveU_windows.exe"

    &"show version\n"
    ~"GNU gdb 6.8\n"
    ~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
    ~"License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html\n"
    ~"This is free software: you are free to change and redistribute it.\n"
    ~"There is NO WARRANTY, to the extent permitted by law. Type "show copying"\n"
    ~"and "show warranty" for details.\n"
    ~"This GDB was configured as "i686-pc-mingw32".\n"
    235^done
    dPARSING VERSION: 235^done
    d
    dUNSUPPORTED GDB VERSION GNU gdb 6.8
    dCopyright (C) 2008 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-pc-mingw32".
    dGNU gdb 6.8
    dCopyright (C) 2008 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-pc-mingw32".
    d
    dUSING GDB VERSION: 60800, BUILD: 2008
    <261-interpreter-exec console "set target-async off"
    236^done,features=["frozen-varobjs","pending-breakpoints"]
    dFEATURES: 236^done,data={features=["frozen-varobjs","pending-breakpoints"]}
    d
    &"set print object on\n"
    237^done
    &"set breakpoint pending on\n"
    238^done
    &"set print elements 10000\n"
    239^done
    &"set overload-resolution off\n"
    240^done
    &"handle SIGSEGV nopass stop print\n"
    ~"Signal Stop\tPrint\tPass to program\tDescription\n"
    ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
    241^done
    &"set unwindonsignal on\n"
    242^done
    &"pwd\n"
    ~"Working directory D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows.\n"
    243^done
    &"set width 0\n"
    244^done
    &"set height 0\n"
    245^done
    &"Undefined set breakpoint command: "always-inserted on". Try "help set breakpoint".\n"
    246^error,msg="Undefined set breakpoint command: \"always-inserted on". Try "help set breakpoint"."
    247^done
    248^done
    249^done
    &"Undefined maintenance set command: "internal-warning quit no". Try "help maintenance set".\n"
    250^error,msg="Undefined maintenance set command: \"internal-warning quit no". Try "help maintenance set"."
    &"Undefined maintenance set command: "internal-error quit no". Try "help maintenance set".\n"
    251^error,msg="Undefined maintenance set command: \"internal-error quit no". Try "help maintenance set"."
    ~"Dump of assembler code from 0x0 to 0x0:\n"
    ~"End of assembler dump.\n"
    252^done
    &"Undefined command: "python". Try "help".\n"
    253^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "python". Try "help".\n"
    254^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "python". Try "help".\n"
    255^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "bbsetup". Try "help".\n"
    256^error,msg="Undefined command: \"bbsetup". Try "help"."
    &"set substitute-path C:/iwmake/build_mingw_opensource C:/Qt/4.8.2_mingw\n"
    257^done
    &"set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Qt/4.8.2_mingw\n"
    258^done
    &"set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt C:/Qt/4.8.2_mingw\n"
    259^done
    260^done
    sSetting breakpoints...
    dSetting breakpoints...
    <262-break-insert -f ""main.cpp":21"
    <263-break-insert -f ""main.cpp":16"
    &"No symbol "target" in current context.\n"
    261^error,msg="No symbol \"target" in current context."
    dATTEMPT SYNC
    262^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x004014f4",func="qMain(int, char**)",file="main.cpp",fullname="D:\\dev\\cpp\\Qt\\Qt_mingw\\LiveU_windows\\LiveU_windows/main.cpp",line="21",times="0"}
    <264info line 0x4014f4
    263^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x004013b8",func="qMain(int, char
    *)",file="main.cpp",fullname="D:\\dev\\cpp\\Qt\\Qt_mingw\\LiveU_windows\\LiveU_windows/main.cpp",line="16",times="0"}
    <265info line *0x4013b8
    &"info line *0x4014f4\n"
    ~"Line 21 of "main.cpp" starts at address 0x4014f4 <_Z5qMainiPPc+324> and ends at 0x401552 <_Z5qMainiPPc+418>.\n"
    264^done
    &"info line *0x4013b8\n"
    ~"Line 16 of "main.cpp" starts at address 0x4013b8 <Z5qMainiPPc+8> and ends at 0x4014b3 <Z5qMainiPPc+259>.\n"
    265^done
    dALL COMMANDS DONE; INVOKING CALLBACK
    <266maint print msymbols C:/Users/meirmaya/AppData/Local/Temp/gdb_ns
    .xM2548
    &"maint print msymbols C:/Users/meirmaya/AppData/Local/Temp/gdb_ns
    .xM2548\n"
    dHANDLE GDB ERROR: The gdb process was ended forcefully
    dGDB PROCESS FINISHED, status 1, code -1073741819
    dNOTE: ENGINE ILL ******
    dState changed from InferiorSetupRequested(4) to EngineShutdownRequested(20) [master]
    dQUEUE: SHUTDOWN ENGINE
    dCALL: SHUTDOWN ENGINE
    dPLAIN ADAPTER SHUTDOWN 20
    dINITIATE GDBENGINE SHUTDOWN IN STATE 4, PROC: 0
    dNOTE: ENGINE SHUTDOWN OK
    dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22) [master]
    dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master]
    dQUEUE: FINISH DEBUGGER
    dNOTE: FINISH DEBUGGER
    dHANDLE RUNCONTROL FINISHED
    sDebugger finished.


Log in to reply
 

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