Bug 314111 - Kdevelop crash on restart after an initial crash
Summary: Kdevelop crash on restart after an initial crash
Status: RESOLVED DUPLICATE of bug 314031
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:
: 314132 314147 337854 338873 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-30 03:55 UTC by simone.alioli
Modified: 2015-11-29 15:31 UTC (History)
4 users (show)

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 simone.alioli 2013-01-30 03:55:07 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-36-generic x86_64
Distribution: Ubuntu 12.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Kdevelop crashed while I was editing a c++ source file via the integrated editor. On restart I have been asked to restore the unsaved changes, which I have selected. Kdevelop crashed again. 

Now I can't restart Kdevelop, it crashes every time  I try to import my project by loading its CMakeList.txt.

I've already wiped out ~/.kdevduchain, myproject/myproject.kdev4 and myproject/.kdev4 with no success

My kdevelop version is the up-to-date version shipped with ubuntu 12.04

The crash can be reproduced every time.

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

Thread 11 (Thread 0x7f9beb794700 (LWP 12627)):
#0  0x00007f9c0347b303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9bfe521036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9bfe52149a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9beb79998b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f9bfe5429e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9c027e8e9a in start_thread (arg=0x7f9beb794700) at pthread_create.c:308
#6  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#7  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9beab88700 (LWP 12628)):
#0  0x00007f9c027eaf69 in __pthread_mutex_lock (mutex=0x7f9be4010240) at pthread_mutex_lock.c:92
#1  0x00007f9bfe55c5a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9bfe520914 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9bfe520faa in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9bfe52149a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9bf2082406 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007f9bfe5429e5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9c027e8e9a in start_thread (arg=0x7f9beab88700) at pthread_create.c:308
#8  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#9  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f9bd9493700 (LWP 12630)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f9c0479c43f in wait (time=1000, this=0x2c64b70) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2c86cf0, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9c008b163b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2c86cd0) at ../../language/duchain/duchain.cpp:282
#4  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x2c86cd0) at thread/qthread_unix.cpp:298
#5  0x00007f9c027e8e9a in start_thread (arg=0x7f9bd9493700) at pthread_create.c:308
#6  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f9bc2376700 (LWP 12633)):
#0  0x00007f9c0347b303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9bfe521036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9bfe521164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9c048ca426 in QEventDispatcherGlib::processEvents (this=0x7f9bbc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9c04899c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9c04899ed7 in QEventLoop::exec (this=0x7f9bc2375dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9c04798fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f9c0487b5a8 in QDnotifySignalThread::run (this=0x35f22d0) at io/qfilesystemwatcher_dnotify.cpp:179
#8  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x35f22d0) at thread/qthread_unix.cpp:298
#9  0x00007f9c027e8e9a in start_thread (arg=0x7f9bc2376700) at pthread_create.c:308
#10 0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9bbbfff700 (LWP 12721)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9bfb648dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f9bfb648f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f9c027e8e9a in start_thread (arg=0x7f9bbbfff700) at pthread_create.c:308
#4  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9bc1916700 (LWP 12722)):
#0  0x00007f9c0347b303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9bfe521036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9bfe521164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9c048ca426 in QEventDispatcherGlib::processEvents (this=0x7f9bb4002900, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9c04899c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9c04899ed7 in QEventLoop::exec (this=0x7f9bc1915e00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9c04798fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x37527a0) at thread/qthread_unix.cpp:298
#8  0x00007f9c027e8e9a in start_thread (arg=0x7f9bc1916700) at pthread_create.c:308
#9  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9bba754700 (LWP 14501)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9c0479c4db in wait (time=18446744073709551615, this=0x4a2df70) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x48ec170, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9bfc03f0eb in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3c64eb0, th=0x3c618b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9bfc0419db in ThreadWeaver::WorkingHardState::applyForWork (this=0x1975d00, th=0x3c618b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9bfc04084f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9bba753e20, parent=0x3c64eb0, th=0x3c618b0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f9bfc0408db in ThreadWeaver::Thread::run (this=0x3c618b0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x3c618b0) at thread/qthread_unix.cpp:298
#8  0x00007f9c027e8e9a in start_thread (arg=0x7f9bba754700) at pthread_create.c:308
#9  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9bb9537700 (LWP 14637)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9bda050222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f9bda050259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f9c027e8e9a in start_thread (arg=0x7f9bb9537700) at pthread_create.c:308
#4  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9b6ffff700 (LWP 14716)):
#0  0x00007f9c0347b303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9bfe521036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9bfe521164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9c048ca426 in QEventDispatcherGlib::processEvents (this=0x7f9b640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9c04899c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9c04899ed7 in QEventLoop::exec (this=0x7f9b6fffee00, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9c04798fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x503eb10) at thread/qthread_unix.cpp:298
#8  0x00007f9c027e8e9a in start_thread (arg=0x7f9b6ffff700) at pthread_create.c:308
#9  0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9b6f7fe700 (LWP 14717)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7f9b5c000a60) at pthread_mutex_unlock.c:290
#2  0x00007f9bfe55c5d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9bfe52102a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9bfe521164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9c048ca426 in QEventDispatcherGlib::processEvents (this=0x7f9b5c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f9c04899c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f9c04899ed7 in QEventLoop::exec (this=0x7f9b6f7fde00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f9c04798fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f9c0479bfcb in QThreadPrivate::start (arg=0x60e6fd0) at thread/qthread_unix.cpp:298
#10 0x00007f9c027e8e9a in start_thread (arg=0x7f9b6f7fe700) at pthread_create.c:308
#11 0x00007f9c03486cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:104
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9c062ea780 (LWP 12626)):
[KCrash Handler]
#6  0x00007f9c033c9425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f9c033ccb8b in __GI_abort () at abort.c:91
#8  0x00007f9c0096bc27 in KDevelop::ItemRepositoryRegistry::registerRepository (this=0x1df1e90, repository=0x3c38468, manager=0x0) at ../../language/duchain/repositories/itemrepository.cpp:152
#9  0x00007f9bb84cf70d in Cpp::EnvironmentManager::EnvironmentManager() () from /usr/lib/libkdev4cppduchain.so
#10 0x00007f9bb84cf7b6 in Cpp::EnvironmentManager::init() () from /usr/lib/libkdev4cppduchain.so
#11 0x00007f9bb89a9d1c in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#12 0x00007f9bb89ae477 in QObject* KPluginFactory::createInstance<CppLanguageSupport, QObject>(QWidget*, QObject*, QList<QVariant> const&) () from /usr/lib/kde4/kdevcpplanguagesupport.so
#13 0x00007f9c05e71621 in KPluginFactory::create (this=0x60d07e0, iface=0x7f9c05a481c0 "KDevelop::IPlugin", parentWidget=0x0, parent=0x1992140, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:203
#14 0x00007f9c05784295 in create<KDevelop::IPlugin> (parent=0x1992140, this=0x60d07e0, args=..., keyword=..., parentWidget=0x0) at /usr/include/kpluginfactory.h:531
#15 createInstance<KDevelop::IPlugin> (error=0x7fff32f8fc90, args=..., parent=0x1992140, parentWidget=0x0, this=0x6076cf0) at /usr/include/KDE/../kservice.h:553
#16 createInstanceFromQuery<KDevelop::IPlugin> (error=0x7fff32f8fc90, args=..., constraint=..., parent=0x1992140, parentWidget=0x0, serviceType=...) at /usr/include/KDE/../kservicetypetrader.h:184
#17 createInstanceFromQuery<KDevelop::IPlugin> (error=0x7fff32f8fc90, args=..., parent=0x1992140, constraint=..., serviceType=...) at /usr/include/KDE/../kservicetypetrader.h:157
#18 KDevelop::PluginController::loadPluginInternal (this=0x1b4aa60, pluginId=...) at ../../shell/plugincontroller.cpp:436
#19 0x00007f9c0578655d in KDevelop::PluginController::allPluginsForExtension (this=0x1b4aa60, extension=..., constraints=...) at ../../shell/plugincontroller.cpp:587
#20 0x00007f9c057b2cdf in KDevelop::LanguageController::languagesForMimetype (this=0x1d3cd50, mimetype=...) at ../../shell/languagecontroller.cpp:314
#21 0x00007f9c057b3b53 in KDevelop::LanguageController::languagesForUrl (this=0x1d3cd50, url=...) at ../../shell/languagecontroller.cpp:294
#22 0x00007f9c008840d2 in KDevelop::BackgroundParserPrivate::createParseJob (this=0x1da5e30, url=..., features=KDevelop::TopDUContext::VisibleDeclarationsAndContexts, notifyWhenReady=...) at ../../language/backgroundparser/backgroundparser.cpp:186
#23 0x00007f9c0088516c in KDevelop::BackgroundParserPrivate::parseDocumentsInternal (this=0x1da5e30) at ../../language/backgroundparser/backgroundparser.cpp:140
#24 0x00007f9c0088055f in KDevelop::BackgroundParser::parseDocuments (this=0x1da2880) at ../../language/backgroundparser/backgroundparser.cpp:517
#25 0x00007f9c008819ec in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x1da2880, _c=<optimized out>) at ./backgroundparser.moc:158
#26 KDevelop::BackgroundParser::qt_static_metacall (_o=0x1da2880, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./backgroundparser.moc:133
#27 0x00007f9c048b4446 in QObject::event (this=0x1da2880, e=<optimized out>) at kernel/qobject.cpp:1195
#28 0x00007f9c03c1d894 in notify_helper (e=0x61f1b20, receiver=0x1da2880, this=0x17e46f0) at kernel/qapplication.cpp:4559
#29 QApplicationPrivate::notify_helper (this=0x17e46f0, receiver=0x1da2880, e=0x61f1b20) at kernel/qapplication.cpp:4531
#30 0x00007f9c03c22713 in QApplication::notify (this=0x7fff32f917b0, receiver=0x1da2880, e=0x61f1b20) at kernel/qapplication.cpp:4420
#31 0x00007f9c050a63f6 in KApplication::notify (this=0x7fff32f917b0, receiver=0x1da2880, event=0x61f1b20) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007f9c0489ae9c in QCoreApplication::notifyInternal (this=0x7fff32f917b0, receiver=0x1da2880, event=0x61f1b20) at kernel/qcoreapplication.cpp:876
#33 0x00007f9c0489ec6a in sendEvent (event=0x61f1b20, receiver=0x1da2880) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x17ae670) at kernel/qcoreapplication.cpp:1500
#35 0x00007f9c048c9f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#36 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#37 0x00007f9bfe520d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f9bfe5210a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f9bfe521164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f9c048ca3bf in QEventDispatcherGlib::processEvents (this=0x17afb30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#41 0x00007f9c03cc5d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f9c04899c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f9c04899ed7 in QEventLoop::exec (this=0x7fff32f91590, flags=...) at kernel/qeventloop.cpp:204
#44 0x00007f9c0489ef67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#45 0x000000000040a259 in ?? ()
#46 0x00007f9c033b476d in __libc_start_main (main=0x404ba0, argc=1, ubp_av=0x7fff32f93668, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff32f93658) at libc-start.c:226
#47 0x000000000040a9b1 in _start ()

Reported using DrKonqi
Comment 1 Milian Wolff 2013-01-30 13:53:53 UTC
Are you sure that you never manually compiled KDevelop/KDevplatform and now mix it with a packaged version of your distribution.?This is not supported - see http://techbase.kde.org/KDevelop4/HowToCompile . I ask because KDevelop (/usr/lib/libkdev4cppduchain.so) has no debug symbols while your KDevplatform apparently has.

Also, what do you see on the CLI when you encounter the crash? Are the rights on ~/.kdevduchain set properly (can you write to it?).
Comment 2 Milian Wolff 2013-01-30 14:04:50 UTC
*** Bug 314132 has been marked as a duplicate of this bug. ***
Comment 3 Milian Wolff 2013-01-30 17:39:33 UTC
*** Bug 314147 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2013-01-30 17:40:28 UTC
Hey there - please also look at whether you may be running out of file descriptors, see e.g. bug 314031
Comment 5 Milian Wolff 2014-07-28 12:22:23 UTC
*** Bug 337854 has been marked as a duplicate of this bug. ***
Comment 6 Milian Wolff 2014-07-28 21:26:39 UTC

*** This bug has been marked as a duplicate of bug 314031 ***
Comment 7 Kevin Funk 2015-11-29 15:31:20 UTC
*** Bug 338873 has been marked as a duplicate of this bug. ***