Bug 61217

Summary: crash on starting debugging session without existing executbale
Product: [Applications] kdevelop Reporter: Hartmut J <hartmut.juergens>
Component: CPP DebuggerAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 3.0.0a5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Hartmut J 2003-07-14 14:02:10 UTC
Version:           3.0.0a5 (using KDE 3.1.0)
Installed from:    SuSE
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-64GB-SMP

I'am sorry to tell you that I wasn't able to reproduce this crash.

[New Thread 1024 (LWP 16506)]
[New Thread 2049 (LWP 16509)]
[New Thread 2050 (LWP 1319)]
0x414ba8c9 in wait4 () from /lib/libc.so.6
#0  0x414ba8c9 in wait4 () from /lib/libc.so.6
#1  0x41535c90 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41315a93 in waitpid () from /lib/libpthread.so.0
#3  0x40a3cb0d in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x4131312b in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x409ff86a in KProcess::writeStdin(char const*, int) ()
   from /opt/kde3/lib/libkdecore.so.4
#7  0x4262d5c8 in GDBDebugger::GDBController::executeCmd() ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#8  0x4262d4a7 in GDBDebugger::GDBController::queueCmd(GDBDebugger::DbgCommand*, bool) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#9  0x42632517 in GDBDebugger::GDBController::setBreakpoint(QCString const&, int) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#10 0x42634ce5 in GDBDebugger::GDBController::slotBPState(GDBDebugger::Breakpoint const&) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#11 0x4263739b in GDBDebugger::GDBController::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#12 0x40dab280 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x42644d86 in GDBDebugger::GDBBreakpointWidget::publishBPState(GDBDebugger::Breakpoint const&) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#14 0x42642bc7 in GDBDebugger::GDBBreakpointWidget::reset() ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#15 0x426295e1 in GDBDebugger::DebuggerPart::slotStopDebugger() ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#16 0x42629dcc in GDBDebugger::DebuggerPart::slotStop(KDevPlugin*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#17 0x4262a306 in GDBDebugger::DebuggerPart::slotStatus(QString const&, int) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#18 0x4262ac50 in GDBDebugger::DebuggerPart::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#19 0x40dab280 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x426371bd in GDBDebugger::GDBController::dbgStatus(QString const&, int) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#21 0x4262dd3c in GDBDebugger::GDBController::programNoApp(QString const&, bool) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#22 0x42630bb7 in GDBDebugger::GDBController::parseLine(char*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#23 0x42632446 in GDBDebugger::GDBController::parseOther(char*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#24 0x426324af in GDBDebugger::GDBController::parse(char*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#25 0x42635bfb in GDBDebugger::GDBController::slotDbgStdout(KProcess*, char*, int) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#26 0x42635e0b in GDBDebugger::GDBController::slotDbgStderr(KProcess*, char*, int) () from /opt/kde3/lib/kde3/libkdevdebugger.so
#27 0x426374cd in GDBDebugger::GDBController::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/kde3/libkdevdebugger.so
#28 0x40dab309 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40a0129b in KProcess::receivedStderr(KProcess*, char*, int) ()
   from /opt/kde3/lib/libkdecore.so.4
#30 0x409ffd47 in KProcess::childError(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#31 0x409ffb29 in KProcess::slotChildError(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#32 0x40a0141f in KProcess::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdecore.so.4
#33 0x40dab309 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x40dab3e5 in QObject::activate_signal(int, int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x4108b0e2 in QSocketNotifier::activated(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x40dc79c0 in QSocketNotifier::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x40d4d2e4 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x40d4ce4b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x409cefc9 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#40 0x40d26398 in QEventLoop::activateSocketNotifiers() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0x40d03bd3 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#42 0x40d60fa6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0x40d60e48 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x40d4d511 in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x0806dd27 in main ()
#46 0x414354a2 in __libc_start_main () from /lib/libc.so.6
Comment 1 John Birch 2003-08-03 10:49:54 UTC
It look similar to backtrace's I've been chasing for a while for the following 
situation. 
 
program segfault's and halts 
you click continue. 
debugger finishes 
you start debugger again. 
 
I've also down some other work on starting gdb without exe's 
 
Hopefully this is fixed in cvs.