Bug 268235

Summary: Kdevelop failed to start after deleting the active session
Product: [Applications] kdevelop Reporter: J.Sebald <sebald>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: 4.2.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description J.Sebald 2011-03-11 16:54:39 UTC
Application: kdevelop (4.0.2 (using KDevPlatform 1.0.2))
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-28-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
Delete the current session, kdevelop crashes --> Kdevelop failed to start

The crash can be reproduced some of the time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f0a6a88a760 (LWP 3420))]

Thread 5 (Thread 0x7f0a52df5700 (LWP 3421)):
#0  0x00007f0a67cb520d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f0a67ceab14 in usleep (useconds=<value optimized out>) at ../sysdeps/unix/sysv/linux/usleep.c:33
#2  0x00007f0a6474450e in KDevelop::DUChainLock::lockForWrite (this=0x20c7308, timeout=0) at ../../language/duchain/duchainlock.cpp:201
#3  0x00007f0a647445c4 in KDevelop::DUChainWriteLocker::lock (this=0x7f0a52df4d70) at ../../language/duchain/duchainlock.cpp:299
#4  0x00007f0a646fe55e in KDevelop::DUChainPrivate::doMoreCleanup (this=0x20c72f0, retries=<value optimized out>, needLockRepository=<value optimized out>) at ../../language/duchain/duchain.cpp:705
#5  0x00007f0a646ffc94 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x20c90a0) at ../../language/duchain/duchain.cpp:294
#6  0x00007f0a68ff127e in QThreadPrivate::start (arg=0x20c90a0) at thread/qthread_unix.cpp:266
#7  0x00007f0a679f5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007f0a67cf192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0a44590700 (LWP 3430)):
#0  0x00007f0a67d01364 in pthread_mutex_lock (mutex=0x3d4fe08) at forward.c:182
#1  0x00007f0a614f3a43 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#2  0x00007f0a614f3e78 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007f0a614f445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00007f0a691111e6 in QEventDispatcherGlib::processEvents (this=0x33815f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f0a690e3a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f0a690e3dec in QEventLoop::exec (this=0x7f0a4458fdf0, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f0a68fee2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007f0a68ff127e in QThreadPrivate::start (arg=0x3d532e0) at thread/qthread_unix.cpp:266
#9  0x00007f0a679f5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f0a67cf192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0a44d91700 (LWP 3431)):
#0  0x00007f0a67ce5203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f0a614f4009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f0a614f445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f0a691111e6 in QEventDispatcherGlib::processEvents (this=0x34d4fe0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f0a690e3a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f0a690e3dec in QEventLoop::exec (this=0x7f0a44d90df0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f0a68fee2fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f0a68ff127e in QThreadPrivate::start (arg=0x3d4d0d0) at thread/qthread_unix.cpp:266
#8  0x00007f0a679f5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f0a67cf192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0a3ab61700 (LWP 3432)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f0a68ff0845 in thread_sleep (ti=0x7f0a3ab60db0) at thread/qthread_unix.cpp:416
#2  0x00007f0a68ff09b0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:442
#3  0x00007f0a3b8ad961 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#4  0x00007f0a68ff127e in QThreadPrivate::start (arg=0x7f0a3c18f4f0) at thread/qthread_unix.cpp:266
#5  0x00007f0a679f5971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f0a67cf192d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0a6a88a760 (LWP 3420)):
[KCrash Handler]
#6  value (this=0x0, number=16) at /usr/include/qt4/QtCore/qhash.h:606
#7  operator[] (this=0x0, number=16) at /usr/include/qt4/QtCore/qhash.h:731
#8  KDevelop::ConfigurableHighlightingColors::getAttribute (this=0x0, number=16) at ../../language/highlighting/configurablecolors.cpp:41
#9  0x00007f0a6481fc38 in KDevelop::CodeHighlighting::attributeForType (this=0x34ed620, type=KDevelop::HighlightingEnumContainer::NamespaceType, context=KDevelop::HighlightingEnumContainer::DeclarationContext, color=...) at ../../language/highlighting/codehighlighting.cpp:101
#10 0x00007f0a64820bd9 in KDevelop::CodeHighlightingInstance::highlightDeclaration (this=0x45b0630, declaration=<value optimized out>, color=...) at ../../language/highlighting/codehighlighting.cpp:445
#11 0x00007f0a6481f17b in KDevelop::CodeHighlightingInstance::highlightDUChainSimple (this=0x45b0630, context=0x3e14350) at ../../language/highlighting/codehighlighting.cpp:228
#12 0x00007f0a6481f34b in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x45b0630, context=0x3e14350) at ../../language/highlighting/codehighlighting.cpp:202
#13 0x00007f0a6481f5d1 in KDevelop::CodeHighlighting::highlightDUChain (this=<value optimized out>, context=0x3e14350) at ../../language/highlighting/codehighlighting.cpp:171
#14 0x00007f0a646e58c5 in KDevelop::DUChain::documentLoadedPrepare (this=<value optimized out>, doc=0x34f19e0) at ../../language/duchain/duchain.cpp:1562
#15 0x00007f0a646e8405 in KDevelop::DUChain::qt_metacall (this=0x20c8ce0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff160c2180) at ./duchain.moc:168
#16 0x00007f0a690fcb27 in QMetaObject::activate (sender=0x1d67fe0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x459a3b0) at kernel/qobject.cpp:3280
#17 0x00007f0a69fda622 in KDevelop::IDocumentController::documentLoadedPrepare (this=0x7fff160c1aa0, _t1=0x34f19e0) at ./idocumentcontroller.moc:279
#18 0x00007f0a69fd83b0 in KDevelop::IDocument::notifyLoaded (this=0x34f19e0) at ../../interfaces/idocument.cpp:119
#19 0x00007f0a69d2d8b0 in slotDocumentLoaded (this=0x34f19c0, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fff160c23a0) at ../../shell/textdocument.cpp:174
#20 KDevelop::TextDocument::qt_metacall (this=0x34f19c0, _c=<value optimized out>, _id=<value optimized out>, _a=0x7fff160c23a0) at ./textdocument.moc:94
#21 0x00007f0a690fcb27 in QMetaObject::activate (sender=0x456ad10, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x459a3b0) at kernel/qobject.cpp:3280
#22 0x00007f0a69a78ee2 in KTextEditor::Document::textChanged (this=0x7fff160c1aa0, _t1=0x456ad10) at ./document.moc:177
#23 0x00007f0a39a98ca5 in KateDocument::openFile (this=0x456ad10) at ../../kate/document/katedocument.cpp:2037
#24 0x00007f0a662c8987 in KParts::ReadOnlyPart::openUrl (this=0x456ad10, url=<value optimized out>) at ../../kparts/part.cpp:557
#25 0x00007f0a69d2cbed in KDevelop::TextDocument::createViewWidget (this=0x34f19c0, parent=0x43bc4b0) at ../../shell/textdocument.cpp:261
#26 0x00007f0a69d2c2d7 in KDevelop::TextView::createWidget (this=0x3d6f2b0, parent=0x43bc4b0) at ../../shell/textdocument.cpp:532
#27 0x00007f0a644269c6 in Sublime::View::widget(QWidget*) () from /usr/lib/libsublime.so.1
#28 0x00007f0a64420b80 in ?? () from /usr/lib/libsublime.so.1
#29 0x00007f0a64425f78 in Sublime::Area::WalkerMode Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator>(Sublime::MainWindowPrivate::ViewCreator&, Sublime::AreaIndex*) () from /usr/lib/libsublime.so.1
#30 0x00007f0a64424217 in ?? () from /usr/lib/libsublime.so.1
#31 0x00007f0a6441ac30 in Sublime::MainWindow::setArea(Sublime::Area*) () from /usr/lib/libsublime.so.1
#32 0x00007f0a69cfc383 in KDevelop::WorkingSet::loadToArea (this=<value optimized out>, area=0x1e1dae0, areaIndex=<value optimized out>, clear=<value optimized out>) at ../../shell/workingsetcontroller.cpp:346
#33 0x00007f0a69cfc863 in KDevelop::WorkingSet::changedWorkingSet (this=0x2ddca10, area=0x1e1dae0, from=<value optimized out>, to=) at ../../shell/workingsetcontroller.cpp:648
#34 0x00007f0a69cfd1ff in KDevelop::WorkingSet::qt_metacall (this=0x2ddca10, _c=<value optimized out>, _id=<value optimized out>, _a=0x2ddb7a0) at ./workingsetcontroller.moc:90
#35 0x00007f0a690f6bde in QObject::event (this=0x2ddca10, e=0x7fff160c1aa0) at kernel/qobject.cpp:1219
#36 0x00007f0a6844bfdc in QApplicationPrivate::notify_helper (this=0x1c6a1d0, receiver=0x2ddca10, e=0x2d3fcc0) at kernel/qapplication.cpp:4396
#37 0x00007f0a68451aed in QApplication::notify (this=0x7fff160c3fe0, receiver=0x2ddca10, e=0x2d3fcc0) at kernel/qapplication.cpp:4277
#38 0x00007f0a6963a156 in KApplication::notify (this=0x7fff160c3fe0, receiver=0x2ddca10, event=0x2d3fcc0) at ../../kdeui/kernel/kapplication.cpp:310
#39 0x00007f0a690e4cdc in QCoreApplication::notifyInternal (this=0x7fff160c3fe0, receiver=0x2ddca10, event=0x2d3fcc0) at kernel/qcoreapplication.cpp:732
#40 0x00007f0a690e7c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x13f3110) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x13f3110) at kernel/qcoreapplication.cpp:1373
#42 0x00007f0a69111653 in sendPostedEvents (s=0x1c6dd40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#43 postEventSourceDispatch (s=0x1c6dd40) at kernel/qeventdispatcher_glib.cpp:277
#44 0x00007f0a614f0342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#45 0x00007f0a614f42a8 in ?? () from /lib/libglib-2.0.so.0
#46 0x00007f0a614f445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#47 0x00007f0a69111193 in QEventDispatcherGlib::processEvents (this=0x13f28b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#48 0x00007f0a684fea4e in QGuiEventDispatcherGlib::processEvents (this=0x7fff160c1aa0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007f0a690e3a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#50 0x00007f0a690e3dec in QEventLoop::exec (this=0x7fff160c3e10, flags=) at kernel/qeventloop.cpp:201
#51 0x00007f0a690e7ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#52 0x00000000004085f7 in _start ()

This bug may be a duplicate of or related to bug 254761.

Possible duplicates by query: bug 267541, bug 266350, bug 261453, bug 257586, bug 255487.

Reported using DrKonqi
Comment 1 Milian Wolff 2011-03-29 11:54:09 UTC
fixed already, please update

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