Results 1 to 2 of 2

Thread: The gdb process exited unexpectedly (crashed) when I insert breakpoint

  1. #1
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default The gdb process exited unexpectedly (crashed) when I insert breakpoint

    Hi
    GDB crashes when I insert a breakpoint
    With all projects.
    Tried installing latest QT, without result.
    use Fedora 12
    Without a breakpoint I can pause and single step.



    Debug Output:


    dState changed from <unknown>(-1) to DebuggerNotReady(0).
    d0x9ebce580x00x9ebd4982
    d/home/dig/QTprojecten/qttest/qttest/mainwindow.cpp19
    sStarting debugger for tool chain 'GCC'...
    dDebugger settings:
    dUseAlternatingRowColours: false (default: false)
    dUseMessageBoxForSignals: true (default: true)
    dAutoQuit: false (default: false)
    dLogTimeStamps: false (default: false)
    dUseDebuggingHelper: false (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)
    dLocation: /opt/qtsdk-2010.01/bin/gdb (default: gdb)
    dEnvironment: (default: )
    dScriptFile: (default: )
    dWatchdogTimeout: 20 (default: 20)
    dMaximalStackDepth: 20 (default: 20)
    dListSourceFiles: false (default: false)
    dSkipKnownFrames: false (default: false)
    dEnableReverseDebugging: false (default: false)
    dAllPluginBreakpoints: true (default: true)
    dSelectedPluginBreakpoints: false (default: false)
    dNoPluginBreakpoints: false (default: false)
    dSelectedPluginBreakpointsPattern: .* (default: .*)
    dUsePreciseBreakpoints: true (default: true)
    d/home/dig/QTprojecten/qttest/qttest/qttest0x9ebce58
    dState changed from DebuggerNotReady(0) to EngineStarting(1).
    dState changed from EngineStarting(1) to AdapterStarting(2).
    dTRYING TO START ADAPTER
    dSTARTING GDB
    dGDB STARTED, INITIALIZING IT
    <1show version
    <2-interpreter-exec console "help bb"
    <3set print static-members off
    <4set breakpoint pending on
    <5set print elements 10000
    <6set overload-resolution off
    <7handle SIGSEGV nopass stop print
    <8set unwindonsignal on
    <9set width 0
    <10set height 0
    dState changed from AdapterStarting(2) to AdapterStarted(3).
    dADAPTER SUCCESSFULLY STARTED
    sStarting inferior...
    dState changed from AdapterStarted(3) to InferiorStarting(6).
    <11-file-exec-and-symbols "/home/dig/QTprojecten/qttest/qttest/qttest"
    >~"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-linux-gnu\".\n"
    >&"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-linux-gnu\".\n"
    >1^done
    dVERSION: 1^done,{logstreamoutput="show version\n",consolestreamoutput="GNU gdb 6.8\nCopyright (C) 2008 Free Software Foundation, Inc.\nLicense 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.\nThis GDB was configured as \"i686-pc-linux-gnu\".\nGNU gdb 6.8\nCopyright (C) 2008 Free Software Foundation, Inc.\nLicense 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.\nThis GDB was configured as \"i686-pc-linux-gnu\".\n"}
    d
    dGDB VERSION: 60800, BUILD: 0
    >&"Undefined command: \"bb\". Try \"help\".\n"
    >2^error,msg="Undefined command: \"bb\". Try \"help\"."
    >&"set print static-members off\n"
    >3^done
    >&"set breakpoint pending on\n"
    >4^done
    >&"set print elements 10000\n"
    >5^done
    >&"set overload-resolution off\n"
    >6^done
    >&"handle SIGSEGV nopass stop print\n"
    >~"Signal Stop\tPrint\tPass to program\tDescription\n"
    >~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
    >7^done
    >&"set unwindonsignal on\n"
    >8^done
    >&"set width 0\n"
    >9^done
    >&"set height 0\n"
    >10^done
    >11^done
    <12info target
    <13set substitute-path /var/tmp/qt-x11-src-4.6.1 /opt/qtsdk-2010.01/qt
    sSetting breakpoints...
    <14-file-list-exec-source-files
    <15-break-list
    >&"info target\n"
    >~"Symbols from \"/home/dig/QTprojecten/qttest/qttest/qttest\".\n"
    >~"Local exec file:\n"
    >~"\t`/home/dig/QTprojecten/qttest/qttest/qttest', file type elf32-i386.\n"
    >~"\tEntry point: 0x8049fa0\t0x08048134 - 0x08048147 is .interp\n"
    >~"\t0x08048148 - 0x08048168 is .note.ABI-tag\n"
    >~"\t0x08048168 - 0x0804818c is .note.gnu.build-id\n"
    >~"\t0x0804818c - 0x08048368 is .gnu.hash\n"
    >~"\t0x08048368 - 0x08048958 is .dynsym\n"
    >~"\t0x08048958 - 0x08049627 is .dynstr\n"
    >~"\t0x08049628 - 0x080496e6 is .gnu.version\n"
    >~"\t0x080496e8 - 0x08049758 is .gnu.version_r\n"
    >~"\t0x08049758 - 0x08049778 is .rel.dyn\n"
    >~"\t0x08049778 - 0x08049a18 is .rel.plt\n"
    >~"\t0x08049a18 - 0x08049a48 is .init\n"
    >~"\t0x08049a48 - 0x08049f98 is .plt\n"
    >~"\t0x08049fa0 - 0x0804a8ec is .text\n"
    >~"\t0x0804a8ec - 0x0804a908 is .fini\n"
    >~"\t0x0804a920 - 0x0804ab59 is .rodata\n"
    >~"\t0x0804ab5c - 0x0804ac18 is .eh_frame_hdr\n"
    >~"\t0x0804ac18 - 0x0804af90 is .eh_frame\n"
    >~"\t0x0804af90 - 0x0804b046 is .gcc_except_table\n"
    >~"\t0x0804c048 - 0x0804c050 is .ctors\n"
    >~"\t0x0804c050 - 0x0804c058 is .dtors\n"
    >~"\t0x0804c058 - 0x0804c05c is .jcr\n"
    >~"\t0x0804c05c - 0x0804c15c is .dynamic\n"
    >~"\t0x0804c15c - 0x0804c160 is .got\n"
    >~"\t0x0804c160 - 0x0804c2bc is .got.plt\n"
    >~"\t0x0804c2bc - 0x0804c2c0 is .data\n"
    >~"\t0x0804c2c0 - 0x0804c320 is .bss\n"
    >12^done
    <16tbreak *0x8049fa0
    >&"set substitute-path /var/tmp/qt-x11-src-4.6.1 /opt/qtsdk-2010.01/qt\n"
    >13^done
    >14^done,files=[{file="/opt/qtsdk-2010.01/qt/include/QtCore/qscopedpointer.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qscopedpointer.h"},{file="moc_mainwindow.cpp",full name="/home/dig/QTprojecten/qttest/qttest/moc_mainwindow.cpp"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qglobal.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qglobal.h"},{file="moc_mainwindow.cpp",fullname="/home/dig/QTprojecten/qttest/qttest/moc_mainwindow.cpp"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qglobal.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qglobal.h"},{file="mainwindow.cpp",fullname="/home/dig/QTprojecten/qttest/qttest/mainwindow.cpp"},{file="ui_mainwindow.h",fullname= "/home/dig/QTprojecten/qttest/qttest/ui_mainwindow.h"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qcoreevent.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qcoreevent.h"},{file="/opt/qtsdk-2010.01/qt/include/QtGui/qwidget.h",fullname="/opt/qtsdk-2010.01/qt/include/QtGui/qwidget.h"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qsize.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qsize.h"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qstring.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qstring.h"},{file="/opt/qtsdk-2010.01/qt/include/QtCore/qatomic_i386.h",fullname="/opt/qtsdk-2010.01/qt/include/QtCore/qatomic_i386.h"},{file="mainwindow.cpp",fullname="/home/dig/QTprojecten/qttest/qttest/mainwindow.cpp"},{file="main.cpp",fullname="/home/dig/QTprojecten/qttest/qttest/main.cpp"},{file="/opt/qtsdk-2010.01/qt/include/QtGui/qwidget.h",fullname="/opt/qtsdk-2010.01/qt/include/QtGui/qwidget.h"},{file="main.cpp",fullname="/home/dig/QTprojecten/qttest/qttest/main.cpp"}]
    >15^done,BreakpointTable={nr_rows="0",nr_cols="6", hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",ali gnment="-1",col_name="type",colhdr="Type"},{width="4",align ment="-1",col_name="disp",colhdr="Disp"},{width="3",align ment="-1",col_name="enabled",colhdr="Enb"},{width="10",al ignment="-1",col_name="addr",colhdr="Address"},{width="40",a lignment="2",col_name="what",colhdr="What"}],body=[]}
    <17-break-insert -f "\"mainwindow.cpp\":19"
    >&"tbreak *0x8049fa0\n"
    >~"Breakpoint 1 at 0x8049fa0\n"
    >16^done
    dHANDLE GDB ERROR
    dGDB PROCESS FINISHED, status 1, code 0
    dPLAIN ADAPTER SHUTDOWN 6
    dState changed from InferiorStarting(6) to DebuggerNotReady(0).


    Help appreciated
    Dig

  2. #2
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: The gdb process exited unexpectedly (crashed) when I insert breakpoint

    I think the problem is in the gdb version. The solution may be the one mentioned here

Similar Threads

  1. Replies: 2
    Last Post: 14th July 2009, 15:25
  2. Qt3 qprocess, executable exited?
    By triperzonak in forum Newbie
    Replies: 2
    Last Post: 22nd September 2008, 12:21
  3. KDevelop (gdb) Process exited
    By tituslup in forum KDE Forum
    Replies: 6
    Last Post: 8th July 2008, 09:04
  4. A Dialog that cannot be exited
    By VireX in forum Newbie
    Replies: 4
    Last Post: 26th March 2007, 11:45
  5. QModelIndex destructor causes "user breakpoint"
    By Arthur in forum Qt Programming
    Replies: 2
    Last Post: 30th March 2006, 10:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.