Why hebugging has failed
Unsolved
General and Desktop
-
Hi @column
We need some more information to help you.
- Which platform are you working on?
- Which Qt and QtCreator version are you using?
- Which compiler (GCC, MSVC, MinGW, Clang)?
Also, to fix debugger problems it's often best to post QtCreators debugger log: Window > Views > Debugger Log. The right side of this log should be sufficient.
Regards
-
I'm using QTCreator ver 3.5.1 with GCC
Debug console content:
33show version 34show debug-file-directory 35set print object on 36set breakpoint pending on 37set print elements 10000 38handle SIGSEGV nopass stop print 39set unwindonsignal on 40set width 0 41set height 0 42set substitute-path /var/tmp/qt-src /opt/Qt/5.5/gcc 43-interpreter-exec console "set auto-solib-add on" 44-interpreter-exec console "python sys.path.insert(1, '/opt/Qt/Tools/QtCreator/share/qtcreator/debugger/')" 45-interpreter-exec console "python sys.path.append('/usr/bin/data-directory/python')" 46-interpreter-exec console "python from gdbbridge import *" 47-interpreter-exec console "python theDumper.loadDumpers({})" 48-interpreter-exec console "set target-async off"
dHANDLE GDB ERROR: The gdb process crashed some time after starting successfully. dGDB PROCESS FINISHED, status 1, exit code 9 sStarting debugger "GdbEngine" for ABI "x86-linux-generic-elf-32bit"... dStart parameters: 'gt_hi' mode: 1 dABI: x86-linux-generic-elf-32bit dLanguages: c++ dExecutable: /home/g/projects/qt_hello/build-gt_hi-Desktop_Qt_5_5_1_GCC_32bit-Debug/gt_hi dDirectory: /home/g/projects/qt_hello/build-gt_hi-Desktop_Qt_5_5_1_GCC_32bit-Debug dDebugger: /usr/bin/gdb dProject: /home/g/projects/qt_hello/gt_hiAddtional Search Directories: dRemote: :0 dSysroot: dDebug Source Location: dDebugger settings: dUseAddressInBreakpointsView: false (default: false) dUseToolTipsInBreakpointsView: true (default: true) dUseToolTipsInBreakpointsView: true (default: false) *** dUseToolTipsInLocalsView: false (default: false) dUseToolTips: true (default: true) dShowThreadNames: false (default: false) dUseCodeModel: true (default: true) dUseDebuggingHelper: true (default: true) dSourcePaths: (default: ) dSymbolPaths: (default: ) dAdditionalArguments: (default: ) dGdbCustomDumperCommands: (default: ) dExtraDumperFile: (default: ) dAlwaysAdjustColumnWidths: true (default: true) dUseAddressInStackView: false (default: false) dVerboseLog: false (default: false) dLogTimeStamps: false (default: false) dAutoQuit: false (default: false) dUseMessageBoxForSignals: true (default: true) dFontSizeFollowsEditor: false (default: false) dUseAlternatingRowColours: false (default: false) dStationaryEditorWhileStepping: false (default: false) dRaiseOnInterrupt: true (default: true) dBreakpointsFullPath: false (default: false) dSwitchModeOnExit: false (default: false) dCloseMemoryBuffersOnExit: true (default: true) dCloseBuffersOnExit: false (default: false) dSortStructMembers: true (default: true) dShowQtNamespace: true (default: true) dShowStandardNamespace: true (default: true) dMaximalStackDepth: 20 (default: 20) dIdentifyDebugInfoPackages: false (default: false) dIntelFlavor: false (default: false) dAllPluginBreakpoints: true (default: true) dEnableReverseDebugging: false (default: false) dSkipKnownFrames: false (default: false) dListSourceFiles: false (default: false) dDisplayStringLimit: 100 (default: 100) dMaximalStringLength: 10000 (default: 10000) dAutoDerefPointers: true (default: true) dAttemptQuickStart: false (default: false) dLoadGdbDumpers2: false (default: false) dLoadGdbInit: true (default: true) dIgnoreFirstChanceAccessViolation: false (default: false) dBreakpointCorrection: true (default: true) dCDB_Console: false (default: false) dBreakOnCrtDbgReport: false (default: false) dBreakEvent: (default: ) dMultiInferior: false (default: false) dWarnOnReleaseBuilds: true (default: true) dTargetAsync: false (default: false) dUseDynamicType: true (default: true) dAutoEnrichParameters: true (default: true) dWatchdogTimeout: 20 (default: 20) dGdbPostAttachCommands: (default: ) dGdbStartupCommands: (default: ) dBreakOnFatal: false (default: false) dBreakOnWarning: false (default: false) dBreakOnCatch: false (default: false) dBreakOnThrow: false (default: false) dSelectedPluginBreakpointsPattern: .* (default: .*) dNoPluginBreakpoints: false (default: false) dAdjustBreakpointLocations: true (default: true) dSelectedPluginBreakpoints: false (default: false) dQmlInspector.ShowAppOnTop: false (default: false) dShowQmlObjectTree: true (default: true) dBreakOnAbort: false (default: false) dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master] dQUEUE: SETUP ENGINE dCALL: SETUP ENGINE dEXAMINING /home/g/projects/qt_hello/build-gt_hi-Desktop_Qt_5_5_1_GCC_32bit-Debug/gt_hi dELF SECTIONS: .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame .gcc_except_table .ctors .dtors .jcr .data.rel.ro .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_pubnames .debug_info .debug_abbrev .debug_line .debug_str .debug_pubtypes .debug_ranges .shstrtab .symtab .strtab dTRYING TO START ADAPTER dENABLING TEST CASE: 0 dSTARTING /usr/bin/gdb -i mi --tty=/tmp/QtCreator.SS3240 dGDB STARTED, INITIALIZING IT <33show version <34show debug-file-directory <35set print object on <36set breakpoint pending on <37set print elements 10000 <38handle SIGSEGV nopass stop print <39set unwindonsignal on <40set width 0 <41set height 0 sSetting up inferior... <42set substitute-path /var/tmp/qt-src /opt/Qt/5.5/gcc <43-interpreter-exec console "set auto-solib-add on" <44-interpreter-exec console "python sys.path.insert(1, '/opt/Qt/Tools/QtCreator/share/qtcreator/debugger/')" <45-interpreter-exec console "python sys.path.append('/usr/bin/data-directory/python')" <46-interpreter-exec console "python from gdbbridge import *" <47-interpreter-exec console "python theDumper.loadDumpers({})" >=thread-group-added,id="i1" >~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6)\n" >~"Copyright (C) 2010 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"i686-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >&"show version\n" >~"GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6)\n" >~"Copyright (C) 2010 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"i686-redhat-linux-gnu\".\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >33^done dPARSING VERSION: 33^done dUNSUPPORTED GDB VERSION GNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6) dCopyright (C) 2010 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-redhat-linux-gnu". dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dGNU gdb (GDB) Red Hat Enterprise Linux (7.2-92.el6) dCopyright (C) 2010 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-redhat-linux-gnu". dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dUSING GDB VERSION: 70200, BUILD: 92 <48-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >34^done >&"set print object on\n" >35^done >&"set breakpoint pending on\n" >36^done >&"set print elements 10000\n" >37^done >&"handle SIGSEGV nopass stop print\n" >~"Signal Stop\tPrint\tPass to program\tDescription\n" >~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n" >38^done >&"set unwindonsignal on\n" >39^done >&"set width 0\n" >40^done >&"set height 0\n" >41^done >&"set substitute-path /var/tmp/qt-src /opt/Qt/5.5/gcc\n" >42^done >43^done >44^done >45^done >~"Traceback (most recent call last):\n" >~" File \"<string>\", line 1, in <module>\n" >~" File \"/opt/Qt/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 1828, in <module>\n" >~" class TriggeredBreakpointHookBreakpoint(gdb.Breakpoint):\n" >~"TypeError: Error when calling the metaclass bases\n type 'gdb.Breakpoint' is not an acceptable base type" >~"\n" >&"Error while executing Python code.\n" >46^error,msg="Error while executing Python code." >~"Traceback (most recent call last):\n" >~" File \"<string>\", line 1, in <module>\n" >~"NameError: name 'theDumper' is not defined\n" >&"Error while executing Python code.\n" >47^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] dHANDLE RUNCONTROL FINISHED sDebugger finished. dHANDLE RUNCONTROL START FAILED dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >48^done