Bug 310560 - KDevelop crashed when tryign to debug with external console
Summary: KDevelop crashed when tryign to debug with external console
Status: RESOLVED DUPLICATE of bug 292621
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.3.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-23 15:40 UTC by Douglas Esanbock
Modified: 2012-12-01 21:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Esanbock 2012-11-23 15:40:24 UTC
Application: kdevelop (4.3.1)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-32-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
Whenever I try to debug a conosle app using the external console feature, KDevelop crashes and/or complains about /dev/tty permissions.  /dev/tty permissions are fine, I suspect this is something else.  This problem has existed for a long time at least in ubuntu and debian.  It crashes with both konsole and gnome-terminal.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0fa8701780 (LWP 5059))]

Thread 10 (Thread 0x7f0f8e247700 (LWP 5063)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f0fa6b9b43f in wait (time=1000, this=0x28236c0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x283e1b0, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0fa2cb063b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x283e190) at ../../language/duchain/duchain.cpp:282
#4  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x283e190) at thread/qthread_unix.cpp:298
#5  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f8e247700) at pthread_create.c:308
#6  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f0f75d18700 (LWP 5068)):
#0  0x00007f0fa587a303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0fa0920036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0fa0920164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0fa6cc9426 in QEventDispatcherGlib::processEvents (this=0x7f0f700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f0fa6c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0fa6c98ed7 in QEventLoop::exec (this=0x7f0f75d17e00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0fa6b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x331cbd0) at thread/qthread_unix.cpp:298
#8  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f75d18700) at pthread_create.c:308
#9  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f0f75517700 (LWP 5069)):
#0  0x00007f0fa095b320 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f0fa095b5c9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0fa091f98b in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0fa091ffaa in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0fa0920164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0fa6cc9426 in QEventDispatcherGlib::processEvents (this=0x7f0f680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f0fa6c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f0fa6c98ed7 in QEventLoop::exec (this=0x7f0f75516e00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f0fa6b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x32ec640) at thread/qthread_unix.cpp:298
#10 0x00007f0fa4be7e9a in start_thread (arg=0x7f0f75517700) at pthread_create.c:308
#11 0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f0f74cc4700 (LWP 5074)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0f8e7de222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f0f8e7de259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f74cc4700) at pthread_create.c:308
#4  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f0f6fbef700 (LWP 5082)):
#0  0x00007f0fa095b33e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f0fa095b599 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0fa092001b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0fa0920164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f0fa6cc9426 in QEventDispatcherGlib::processEvents (this=0x7f0f640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f0fa6c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f0fa6c98ed7 in QEventLoop::exec (this=0x7f0f6fbeedd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f0fa6b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f0fa6c789ff in QInotifyFileSystemWatcherEngine::run (this=0x41b4170) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x41b4170) at thread/qthread_unix.cpp:298
#10 0x00007f0fa4be7e9a in start_thread (arg=0x7f0f6fbef700) at pthread_create.c:308
#11 0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0f6da4a700 (LWP 5203)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0f9da47dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f0f9da47f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f6da4a700) at pthread_create.c:308
#4  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0f6e24b700 (LWP 5206)):
#0  0x00007f0fa095b96b in g_private_get () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f0fa0941ec0 in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f0fa0920155 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0fa6cc9426 in QEventDispatcherGlib::processEvents (this=0x7f0f5c002b00, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f0fa6c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0fa6c98ed7 in QEventLoop::exec (this=0x7f0f6e24ae00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f0fa6b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x16b1080) at thread/qthread_unix.cpp:298
#8  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f6e24b700) at pthread_create.c:308
#9  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0f62a0d700 (LWP 5607)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0fa6b9b4db in wait (time=18446744073709551615, this=0x196b510) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1951250, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0f9e43e0eb in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1969980, th=0x57746d0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f0f9e4409db in ThreadWeaver::WorkingHardState::applyForWork (this=0x194c0c0, th=0x57746d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f0f9e4409f4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x194c0c0, th=0x57746d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f0f9e4409f4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x194c0c0, th=0x57746d0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f0f9e43f84f in ThreadWeaver::ThreadRunHelper::run (this=0x7f0f62a0ce20, parent=0x1969980, th=0x57746d0) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007f0f9e43f8db in ThreadWeaver::Thread::run (this=0x57746d0) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x57746d0) at thread/qthread_unix.cpp:298
#10 0x00007f0fa4be7e9a in start_thread (arg=0x7f0f62a0d700) at pthread_create.c:308
#11 0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0f6220c700 (LWP 5608)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0fa6b9b4db in wait (time=18446744073709551615, this=0x196b510) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1951250, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f0f9e43e0eb in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1969980, th=0x7f0f14002c50) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f0f9e4409db in ThreadWeaver::WorkingHardState::applyForWork (this=0x194c0c0, th=0x7f0f14002c50) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f0f9e43f84f in ThreadWeaver::ThreadRunHelper::run (this=0x7f0f6220be20, parent=0x1969980, th=0x7f0f14002c50) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f0f9e43f8db in ThreadWeaver::Thread::run (this=0x7f0f14002c50) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f0fa6b9afcb in QThreadPrivate::start (arg=0x7f0f14002c50) at thread/qthread_unix.cpp:298
#8  0x00007f0fa4be7e9a in start_thread (arg=0x7f0f6220c700) at pthread_create.c:308
#9  0x00007f0fa5885cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0fa8701780 (LWP 5059)):
[KCrash Handler]
#6  0x00007f0f82405a84 in ?? () from /usr/lib/kde4/kdevgdb.so
#7  0x00007f0f8240d47f in ?? () from /usr/lib/kde4/kdevgdb.so
#8  0x00007f0fa7bb94f5 in KDevelop::RunController::registerJob (this=0x196a680, job=0x5594410) at ../../shell/runcontroller.cpp:574
#9  0x00007f0fa7bb5b40 in KDevelop::RunController::execute (this=0x196a680, runMode=..., launch=<optimized out>) at ../../shell/runcontroller.cpp:405
#10 0x00007f0fa7bb75ea in KDevelop::RunController::executeDefaultLaunch (this=0x196a680, runMode=...) at ../../shell/runcontroller.cpp:797
#11 0x00007f0fa7bb71b4 in KDevelop::RunController::slotDebug (this=0x196a680) at ../../shell/runcontroller.cpp:515
#12 0x00007f0fa7bbb2d5 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./runcontroller.moc:76
#13 KDevelop::RunController::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./runcontroller.moc:64
#14 0x00007f0fa6cae281 in QMetaObject::activate (sender=0x195c770, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff40859690) at kernel/qobject.cpp:3547
#15 0x00007f0fa6016132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#16 0x00007f0fa601631f in QAction::activate (this=0x195c770, event=<optimized out>) at kernel/qaction.cpp:1257
#17 0x00007f0fa63ebd4a in QAbstractButtonPrivate::click (this=0x28003b0) at widgets/qabstractbutton.cpp:530
#18 0x00007f0fa63ebffc in QAbstractButton::mouseReleaseEvent (this=0x27fee30, e=0x7fff40859f70) at widgets/qabstractbutton.cpp:1123
#19 0x00007f0fa64a95da in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#20 0x00007f0fa606d144 in QWidget::event (this=0x27fee30, event=0x7fff40859f70) at kernel/qwidget.cpp:8362
#21 0x00007f0fa601c894 in notify_helper (e=0x7fff40859f70, receiver=0x27fee30, this=0x15d2ce0) at kernel/qapplication.cpp:4559
#22 QApplicationPrivate::notify_helper (this=0x15d2ce0, receiver=0x27fee30, e=0x7fff40859f70) at kernel/qapplication.cpp:4531
#23 0x00007f0fa60220bf in QApplication::notify (this=<optimized out>, receiver=0x27fee30, e=0x7fff40859f70) at kernel/qapplication.cpp:4102
#24 0x00007f0fa74a53f6 in KApplication::notify (this=0x7fff4085ae00, receiver=0x27fee30, event=0x7fff40859f70) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f0fa6c99e9c in QCoreApplication::notifyInternal (this=0x7fff4085ae00, receiver=0x27fee30, event=0x7fff40859f70) at kernel/qcoreapplication.cpp:876
#26 0x00007f0fa601d862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QApplicationPrivate::sendMouseEvent (receiver=0x27fee30, event=0x7fff40859f70, alienWidget=0x27fee30, nativeWidget=0x19bca10, buttonDown=0x27fee30, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#28 0x00007f0fa609cbf5 in QETWidget::translateMouseEvent (this=0x19bca10, event=<optimized out>) at kernel/qapplication_x11.cpp:4617
#29 0x00007f0fa609bbae in QApplication::x11ProcessEvent (this=0x7fff4085ae00, event=0x7fff4085a840) at kernel/qapplication_x11.cpp:3732
#30 0x00007f0fa60c50d2 in x11EventSourceDispatch (s=0x15d4700, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007f0fa091fd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f0fa09200a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f0fa0920164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f0fa6cc93bf in QEventDispatcherGlib::processEvents (this=0x159eb30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0x00007f0fa60c4d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f0fa6c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f0fa6c98ed7 in QEventLoop::exec (this=0x7fff4085abe0, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007f0fa6c9df67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#39 0x000000000040a259 in ?? ()
#40 0x00007f0fa57b376d in __libc_start_main (main=0x404ba0, argc=1, ubp_av=0x7fff4085ccb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4085cca8) at libc-start.c:226
#41 0x000000000040a9b1 in _start ()

Possible duplicates by query: bug 292621.

Reported using DrKonqi
Comment 1 Kevin Funk 2012-12-01 21:17:47 UTC
Needs backtrace - looks similar to 292621. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 292621 ***