GDB crash in Qt Creator 2.5 on windows 7 64bit , app compiled in 32bit



  • Hi befor i install and try older Qt Creator , i have GDB crash each time i try to debug with GDB .
    im using GDB :
    @GNU gdb 6.8
    Copyright (C) 2008 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "i686-pc-mingw32".@

    downloaded from Qt site by the name : MinGW-gcc440_1 from here : "http://get.qt.nokia.com/misc/":http://get.qt.nokia.com/misc/

    this is the errors im getting :
    @
    40show version
    141-list-features
    142set print object on
    143set breakpoint pending on
    144set print elements 10000
    145set overload-resolution off
    146handle SIGSEGV nopass stop print
    147set unwindonsignal on
    148pwd
    149set width 0
    150set height 0
    151-interpreter-exec console "set breakpoint always-inserted on"
    152-interpreter-exec console "set trust-readonly-sections on"
    153-interpreter-exec console "set auto-solib-add on"
    154-interpreter-exec console "set remotecache on"
    155-interpreter-exec console "maintenance set internal-warning quit no"
    156-interpreter-exec console "maintenance set internal-error quit no"
    157-interpreter-exec console "disassemble 0 0"
    158-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/bridge.py')"
    159-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/dumper.py')"
    160-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/qttypes.py')"
    161-interpreter-exec console "bbsetup"
    162set substitute-path C:/iwmake/build_mingw_opensource D:/Qt/4.7.0-rc1/src
    163set substitute-path C:/ndk_buildrepos/qt-desktop/src D:/Qt/4.7.0-rc1/src
    164set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt D:/Qt/4.7.0-rc1/src
    165-file-exec-and-symbols "D:/dev/oDesk/shay/smplayer-0.8.0_mingw/src/debug/smplayer.exe"
    166-interpreter-exec console "set target-async off"
    167-break-insert -f ""basegui.cpp":695"
    168-break-insert -f ""core.cpp":3083"
    169-break-insert -f ""smplayer.cpp":111"
    170-break-insert -f ""main.cpp":24"
    171info line *0x4c348b
    172info line *0x4539d4
    173info line *0x506358
    174info line *0x5092b1
    175maint print msymbols C:/Users/meirmaya/AppData/Local/Temp/gdb_ns_.eK3316
    @



  • and this :
    @
    Starting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
    dStart parameters: 'smplayer' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dLanguages: c++
    dExecutable: D:\dev\oDesk\shay\smplayer-0.8.0_mingw\src\debug\smplayer.exe
    dDirectory: D:\dev\oDesk\shay\smplayer-0.8.0_mingw\src
    dProject: D:\dev\oDesk\shay\smplayer-0.8.0_mingw\src (built: D:\dev\oDesk\shay\smplayer-0.8.0_mingw\src)
    dQt: d:\Qt\4.7.0-rc1
    dQML server: 127.0.0.1:3768
    dSysroot:
    dDebug Source Location:
    dSymbol file:
    dDumper libraries: d:\Qt\4.7.0-rc1\qtc-debugging-helper\ D:\Qt\qtcreator-2.5.0\qtc-debugging-helper\52205825\ C:\Users\meirmaya\AppData\Local\Nokia\QtCreator\qtc-debugging-helper\52205825
    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)

    @

    its driving me crazy , i never had problems with older versions of Qt



  • @

    dUseAddressInStackView: 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-3316-24370
    dGDB STARTED, INITIALIZING IT
    <140show version
    <141-list-features
    <142set print object on
    <143set breakpoint pending on
    <144set print elements 10000
    <145set overload-resolution off
    <146handle SIGSEGV nopass stop print
    <147set unwindonsignal on
    <148pwd
    <149set width 0
    <150set height 0
    <151-interpreter-exec console "set breakpoint always-inserted on"
    <152-interpreter-exec console "set trust-readonly-sections on"
    <153-interpreter-exec console "set auto-solib-add on"
    <154-interpreter-exec console "set remotecache on"
    <155-interpreter-exec console "maintenance set internal-warning quit no"
    <156-interpreter-exec console "maintenance set internal-error quit no"
    <157-interpreter-exec console "disassemble 0 0"
    <158-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/bridge.py')"
    <159-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/dumper.py')"
    <160-interpreter-exec console "python execfile('D:/Qt/qtcreator-2.5.0/share/qtcreator/dumper/qttypes.py')"
    <161-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...
    <162set substitute-path C:/iwmake/build_mingw_opensource D:/Qt/4.7.0-rc1/src
    <163set substitute-path C:/ndk_buildrepos/qt-desktop/src D:/Qt/4.7.0-rc1/src
    <164set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt D:/Qt/4.7.0-rc1/src
    <165-file-exec-and-symbols "D:/dev/oDesk/shay/smplayer-0.8.0_mingw/src/debug/smplayer.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"
    140^done
    dPARSING VERSION: 140^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
    <166-interpreter-exec console "set target-async off"
    141^done,features=["frozen-varobjs","pending-breakpoints"]
    dFEATURES: 141^done,data={features=["frozen-varobjs","pending-breakpoints"]}
    d
    &"set print object on\n"
    142^done
    &"set breakpoint pending on\n"
    143^done
    &"set print elements 10000\n"
    144^done
    &"set overload-resolution off\n"
    145^done
    &"handle SIGSEGV nopass stop print\n"
    ~"Signal Stop\tPrint\tPass to program\tDescription\n"
    ~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
    146^done
    &"set unwindonsignal on\n"
    147^done
    &"pwd\n"
    ~"Working directory D:\dev\oDesk\shay\smplayer-0.8.0_mingw\src.\n"

    @



  • @

    148^done
    &"set width 0\n"
    149^done
    &"set height 0\n"
    150^done
    &"Undefined set breakpoint command: "always-inserted on". Try "help set breakpoint".\n"
    151^error,msg="Undefined set breakpoint command: \"always-inserted on". Try "help set breakpoint"."
    152^done
    153^done
    154^done
    &"Undefined maintenance set command: "internal-warning quit no". Try "help maintenance set".\n"
    155^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"
    156^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"
    157^done
    &"Undefined command: "python". Try "help".\n"
    158^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "python". Try "help".\n"
    159^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "python". Try "help".\n"
    160^error,msg="Undefined command: \"python". Try "help"."
    &"Undefined command: "bbsetup". Try "help".\n"
    161^error,msg="Undefined command: \"bbsetup". Try "help"."
    &"set substitute-path C:/iwmake/build_mingw_opensource D:/Qt/4.7.0-rc1/src\n"
    162^done
    &"set substitute-path C:/ndk_buildrepos/qt-desktop/src D:/Qt/4.7.0-rc1/src\n"
    163^done
    &"set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt D:/Qt/4.7.0-rc1/src\n"
    164^done
    165^done

    @


  • Moderators

    Try getting a newer version of gdb. Creator wants at least version 7.2 IIRC.

    You can try this the one from here: http://builds.qt-project.org/



  • Thanks
    do you remmber which Qt creator used gcc440_1 ?


  • Moderators

    Nope, I am not that big a windows guy:-)

    We did ship the same old mingw for ages, but we also used to ship our own gdb along with creator for windows since the one in mingw does not work.



  • Gdb 6.8 is indeed not supported with Creator 2.5. On Mac, use some of Apple's 6.3 fork, and everywhere else, Python scripting is required. The official lower limit is 7.2 IIRC.


Log in to reply
 

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