June 16, 2012

umen242 umen242
Ant Farmer
326 posts

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:

  1. sStarting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
  2. dStart parameters: 'LiveU_windows' mode: 1
  3. dABI: x86-windows-msys-pe-32bit
  4. dLanguages: c++
  5. dExecutable: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows\debug\LiveU_windows.exe
  6. dDirectory: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows
  7. dProject: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows (built: D:\dev\cpp\Qt\Qt_mingw\LiveU_windows\LiveU_windows)
  8. dQt: C:\Qt\4.8.2_mingw
  9. dQML server: 127.0.0.1:3768
  10. dSysroot:
  11. dDebug Source Location:
  12. dSymbol file:
  13. 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\
  14. d
  15. dDebugger settings:
  16. dUseAlternatingRowColours: false  (default: false)
  17. dFontSizeFollowsEditor: false  (default: false)
  18. dUseMessageBoxForSignals: true  (default: true)
  19. dAutoQuit: false  (default: false)
  20. dLogTimeStamps: false  (default: false)
  21. dVerboseLog: false  (default: false)
  22. dCloseBuffersOnExit: false  (default: false)
  23. dSwitchModeOnExit: false  (default: false)
  24. dUseDebuggingHelper: true  (default: true)
  25. dUseCodeModel: true  (default: true)
  26. dShowThreadNames: true  (default: false)  ***
  27. dUseToolTips: false  (default: false)
  28. dUseToolTipsInLocalsView: false  (default: false)
  29. dUseToolTipsInBreakpointsView: false  (default: false)
  30. dUseAddressInBreakpointsView: false  (default: false)

Thanks for helping

2 replies

June 16, 2012

umen242 umen242
Ant Farmer
326 posts

second part :

  1. UseAddressInStackView: false  (default: false)
  2. dRegisterForPostMortem: false  (default: false)
  3. dLoadGdbInit: true  (default: true)
  4. dGdbStartupCommands:   (default: )
  5. dWatchdogTimeout: 20  (default: 20)
  6. dAutoEnrichParameters: false  (default: false)
  7. dUseDynamicType: true  (default: true)
  8. dTargetAsync: false  (default: false)
  9. dMaximalStackDepth: 20  (default: 20)
  10. dAlwaysAdjustStackColumnWidths: false  (default: false)
  11. dShowStandardNamespace: true  (default: true)
  12. dShowQtNamespace: true  (default: true)
  13. dSortStructMembers: true  (default: true)
  14. dAutoDerefPointers: true  (default: true)
  15. dAlwaysAdjustLocalsColumnWidths: false  (default: false)
  16. dListSourceFiles: false  (default: false)
  17. dSkipKnownFrames: false  (default: false)
  18. dEnableReverseDebugging: false  (default: false)
  19. dAllPluginBreakpoints: true  (default: true)
  20. dSelectedPluginBreakpoints: false  (default: false)
  21. dAdjustBreakpointLocations: true  (default: true)
  22. dAlwaysAdjustBreakpointsColumnWidths: false  (default: false)
  23. dNoPluginBreakpoints: false  (default: false)
  24. dSelectedPluginBreakpointsPattern: .*  (default: .*)
  25. dBreakOnThrow: false  (default: false)
  26. dBreakOnCatch: false  (default: false)
  27. dBreakOnWarning: false  (default: false)
  28. dBreakOnFatal: false  (default: false)
  29. dBreakOnRaise: false  (default: false)
  30. dAlwaysAdjustRegistersColumnWidths: false  (default: false)
  31. dAlwaysAdjustSnapshotsColumnWidths: false  (default: false)
  32. dAlwaysAdjustThreadsColumnWidths: false  (default: false)
  33. dAlwaysAdjustModulesColumnWidths: false  (default: false)
  34. dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
  35. dQUEUE: SETUP ENGINE
  36. dCALL: SETUP ENGINE
  37. dTRYING TO START ADAPTER
  38. dENABLING TEST CASE: 0
  39. dSTARTING D:/Qt/MinGW-gcc440_1/mingw/bin/gdb.exe -i mi --tty=\\.\pipe\creator-2548-6359
  40. dGDB STARTED, INITIALIZING IT
  41. <235show version
  42. <236-list-features
  43. <237set print object on
  44. <238set breakpoint pending on
  45. <239set print elements 10000
  46. <240set overload-resolution off
  47. <241handle SIGSEGV nopass stop print
  48. <242set unwindonsignal on
  49. <243pwd
  50. <244set width 0
  51. <245set height 0
  52. <246-interpreter-exec console "set breakpoint always-inserted on"
  53. <247-interpreter-exec console "set trust-readonly-sections on"
  54. <248-interpreter-exec console "set auto-solib-add on"
  55. <249-interpreter-exec console "set remotecache on"
  56. <250-interpreter-exec console "maintenance set internal-warning quit no"
  57. <251-interpreter-exec console "maintenance set internal-error quit no"
  58. <252-interpreter-exec console "disassemble 0 0"
  59. <253-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/bridge.py')"
  60. <254-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/dumper.py')"
  61. <255-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/qttypes.py')"
  62. <256-interpreter-exec console "bbsetup"
  63. dADAPTER SUCCESSFULLY STARTED
  64. dNOTE: ENGINE SETUP OK
  65. dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
  66. dQUEUE: SETUP INFERIOR
  67. dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
  68. dQUEUE: SETUP INFERIOR
  69. >~"GNU gdb 6.8\n"
  70. >~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
  71. >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
  72. >~"This is free software: you are free to change and redistribute it.\n"
  73. >~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
  74. >~"and \"show warranty\" for details.\n"
  75. >~"This GDB was configured as \"i686-pc-mingw32\".\n"
  76. dCALL: SETUP INFERIOR
  77. sSetting up inferior...

June 16, 2012

umen242 umen242
Ant Farmer
326 posts

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 © 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 © 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 © 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 0×0 to 0×0:\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=“0×004014f4”,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 *0×4014f4
>263^done,bkpt={number=“2”,type=“breakpoint”,disp=“keep”,enabled=“y”,addr=“0×004013b8”,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 *0×4013b8
>&“info line *0×4014f4\n”
>~“Line 21 of \“main.cpp\” starts at address 0×4014f4 <_Z5qMainiPPc+324> and ends at 0×401552 <_Z5qMainiPPc+418>.\n”
>264^done
>&“info line *0×4013b8\n”
>~“Line 16 of \“main.cpp\” starts at address 0×4013b8 <_Z5qMainiPPc+8> and ends at 0×4014b3 <_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.

 
  ‹‹ [Solved] Error building qt-everywhere-opensource-src-4.8.2      Creator: Set debugger source path for multiple Qt versions? ››

You must log in to post a reply. Not a member yet? Register here!