Bug 321973

Summary: kdevelop crash
Product: [Applications] kdevelop Reporter: Daniel Santos <daniel.santos>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: triaged
Priority: NOR    
Version First Reported In: 4.4.1   
Target Milestone: 4.3.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Daniel Santos 2013-07-04 22:51:05 UTC
Application: kdevelop (4.4.1)
KDE Platform Version: 4.10.4 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.6-gentoo x86_64
Distribution: "NAME=Gentoo"

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

I was simply copy & pasting some lines of text and then editing them. My system was under a little bit of a load at the time (building stuff in the background).

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fa447dbb7c0 (LWP 32214))]

Thread 9 (Thread 0x7fa430209700 (LWP 32217)):
#0  0x00007fa444179d3f in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa43df969fc in g_main_context_poll (n_fds=1, fds=0x7fa4280010c0, timeout=-1, context=0x1a99e00, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=0x1a99e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3141
#3  0x00007fa43df96e72 in g_main_loop_run (loop=0x1a99db0) at gmain.c:3340
#4  0x00007fa430545236 in gdbus_shared_thread_func (user_data=0x1a99dd0) at gdbusprivate.c:277
#5  0x00007fa43dfb94f5 in g_thread_proxy (data=0x1a96280) at gthread.c:801
#6  0x00007fa443e8403a in start_thread (arg=0x7fa430209700) at pthread_create.c:305
#7  0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fa40f129700 (LWP 32219)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007fa4455c1173 in QWaitConditionPrivate::wait(unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007fa4455c0f39 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007fa441462d5a in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2e9b370) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1/language/duchain/duchain.cpp:282
#4  0x00007fa4455bfb3a in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007fa443e8403a in start_thread (arg=0x7fa40f129700) at pthread_create.c:305
#6  0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fa3f9cbc700 (LWP 32224)):
#0  0x00007fa444179d3f in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa43df969fc in g_main_context_poll (n_fds=1, fds=0x7fa3f4002ea0, timeout=-1, context=0x7fa3f40009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x7fa3f40009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3141
#3  0x00007fa43df96b2c in g_main_context_iteration (context=0x7fa3f40009a0, may_block=1) at gmain.c:3207
#4  0x00007fa4457392b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007fa4456f9500 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007fa4456f9694 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007fa4455bd0c3 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fa4455bfb3a in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fa443e8403a in start_thread (arg=0x7fa3f9cbc700) at pthread_create.c:305
#10 0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fa3f94bb700 (LWP 32225)):
#0  0x00007fa444179d3f in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fa43df969fc in g_main_context_poll (n_fds=1, fds=0x7fa3ec002aa0, timeout=-1, context=0x7fa3ec0009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=context@entry=0x7fa3ec0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3141
#3  0x00007fa43df96b2c in g_main_context_iteration (context=0x7fa3ec0009a0, may_block=1) at gmain.c:3207
#4  0x00007fa4457392b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007fa4456f9500 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007fa4456f9694 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007fa4455bd0c3 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fa4455bfb3a in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fa443e8403a in start_thread (arg=0x7fa3f94bb700) at pthread_create.c:305
#10 0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fa35ff42700 (LWP 32259)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa43a36e4a7 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fa43ad731c0 <WTF::pageheap_memory>) at wtf/FastMalloc.cpp:2495
#2  0x00007fa43a36e4e9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x00007fa443e8403a in start_thread (arg=0x7fa35ff42700) at pthread_create.c:305
#4  0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fa355d7d700 (LWP 32262)):
#0  0x00007fa4441752cd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fa43dfd1f6f in read (__nbytes=16, __buf=0x7fa355d7cb80, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x8566880) at gwakeup.c:212
#3  0x00007fa43df96548 in g_main_context_check (context=context@entry=0x7fa358014e90, max_priority=2147483647, fds=fds@entry=0x7fa3580013e0, n_fds=n_fds@entry=1) at gmain.c:2980
#4  0x00007fa43df96992 in g_main_context_iterate (context=context@entry=0x7fa358014e90, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3143
#5  0x00007fa43df96b2c in g_main_context_iteration (context=0x7fa358014e90, may_block=1) at gmain.c:3207
#6  0x00007fa4457392b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007fa4456f9500 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fa4456f9694 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fa4455bd0c3 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007fa4455bd270 in QThread::run() () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007fa4455bfb3a in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007fa443e8403a in start_thread (arg=0x7fa355d7d700) at pthread_create.c:305
#13 0x00007fa444182b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fa35f741700 (LWP 459)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa4455c118f in QWaitConditionPrivate::wait(unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007fa4455c0f39 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007fa43ada256e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#4  0x00007fa43ada6915 in ThreadWeaver::WorkingHardState::~WorkingHardState() () from /usr/lib64/libthreadweaver.so.4
#5  0x00007fa43ada24ec in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#6  0x00007fa43ada68bb in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#7  0xffffffff113c4bf0 in ?? ()
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa35536f700 (LWP 460)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa4455c118f in QWaitConditionPrivate::wait(unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007fa4455c0f39 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007fa43ada256e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#4  0x00007fa43ada6915 in ThreadWeaver::WorkingHardState::~WorkingHardState() () from /usr/lib64/libthreadweaver.so.4
#5  0x00007fa43ada24ec in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#6  0x00007fa43ada68bb in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib64/libthreadweaver.so.4
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa447dbb7c0 (LWP 32214)):
[KCrash Handler]
#6  0x00007fa4425dca6e in QByteArray::operator==(QString const&) const () from /usr/lib64/libkio.so.5
#7  0x00007fa44261c646 in QList<QUrl>::detach_helper_grow(int, int) () from /usr/lib64/libkio.so.5
#8  0x00007fa40e2dae0a in GrepDialog::setDirectory (this=this@entry=0x12c85e40, dir=...) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1/plugins/grepview/grepdialog.cpp:302
#9  0x00007fa40e2dcb9b in GrepDialog::GrepDialog (this=0x12c85e40, plugin=0x2ea7d80, parent=<optimized out>, setLastUsed=<optimized out>) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1/plugins/grepview/grepdialog.cpp:154
#10 0x00007fa40e2d9a96 in GrepViewPlugin::showDialog (this=0x2ea7d80, setLastUsed=setLastUsed@entry=false, pattern=..., showOptions=showOptions@entry=true) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1/plugins/grepview/grepviewplugin.cpp:137
#11 0x00007fa40e2d9fa4 in GrepViewPlugin::showDialogFromMenu (this=<optimized out>) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1/plugins/grepview/grepviewplugin.cpp:212
#12 0x00007fa40e2da065 in GrepViewPlugin::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/dev-util/kdevplatform-1.4.1/kdevplatform-1.4.1_build/plugins/grepview/grepviewplugin.moc:56
#13 0x00007fa44571abab in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007fa444954132 in QAction::triggered (this=this@entry=0x1d8d0d0, _t1=false) at .moc/debug-shared/moc_qaction.cpp:277
#15 0x00007fa4449542f8 in QAction::activate (this=this@entry=0x1d8d0d0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#16 0x00007fa44495446a in QAction::event (this=0x1d8d0d0, e=0x7fffe5791b10) at kernel/qaction.cpp:1183
#17 0x00007fa445ec643a in QList<KActionCollection*>::detach_helper(int) () from /usr/lib64/libkdeui.so.5
#18 0x00007fa44495a991 in QApplicationPrivate::notify_helper (this=this@entry=0x1a480b0, receiver=receiver@entry=0x1d8d0d0, e=e@entry=0x7fffe5791b10) at kernel/qapplication.cpp:4562
#19 0x00007fa44495f9f9 in QApplication::notify (this=0x7fffe57934e0, receiver=0x1d8d0d0, e=0x7fffe5791b10) at kernel/qapplication.cpp:4423
#20 0x00007fa445fd510a in QDBusPendingReply<bool, void, void, void, void, void, void, void>::operator=(QDBusPendingCall const&) () from /usr/lib64/libkdeui.so.5
#21 0x00007fa4456fc100 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007fa44499192f in sendEvent (event=0x7fffe5791b10, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#23 QShortcutMap::dispatchEvent (this=this@entry=0x1a481d0, e=e@entry=0x7fffe5792160) at kernel/qshortcutmap.cpp:884
#24 0x00007fa44499337d in QShortcutMap::tryShortcutEvent (this=0x1a481d0, o=o@entry=0x5b61660, e=e@entry=0x7fffe5792160) at kernel/qshortcutmap.cpp:364
#25 0x00007fa444961863 in QApplication::notify (this=0x7fffe57934e0, receiver=0x5b61660, e=0x7fffe5792160) at kernel/qapplication.cpp:3986
#26 0x00007fa445fd510a in QDBusPendingReply<bool, void, void, void, void, void, void, void>::operator=(QDBusPendingCall const&) () from /usr/lib64/libkdeui.so.5
#27 0x00007fa4456fc100 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007fa444958d66 in sendSpontaneousEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:234
#29 qt_sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qapplication.cpp:5560
#30 0x00007fa444a057d3 in QKeyMapper::sendKeyEvent (keyWidget=keyWidget@entry=0x5b61660, grab=grab@entry=false, type=QEvent::KeyPress, code=70, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=1, nativeScanCode=41, nativeVirtualKey=102, nativeModifiers=28) at kernel/qkeymapper_x11.cpp:1866
#31 0x00007fa444a05b79 in QKeyMapperPrivate::translateKeyEvent (this=0x1a7f7c0, keyWidget=keyWidget@entry=0x5b61660, event=event@entry=0x7fffe5792b60, grab=grab@entry=false) at kernel/qkeymapper_x11.cpp:1836
#32 0x00007fa4449e1670 in QApplication::x11ProcessEvent (this=0x7fffe57934e0, event=event@entry=0x7fffe5792b60) at kernel/qapplication_x11.cpp:3532
#33 0x00007fa444a09a52 in x11EventSourceDispatch (s=s@entry=0x1a47ef0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007fa43df966f4 in g_main_dispatch (context=0x1a44d00) at gmain.c:2539
#35 g_main_context_dispatch (context=context@entry=0x1a44d00) at gmain.c:3075
#36 0x00007fa43df96a64 in g_main_context_iterate (context=context@entry=0x1a44d00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#37 0x00007fa43df96b2c in g_main_context_iteration (context=0x1a44d00, may_block=1) at gmain.c:3207
#38 0x00007fa445739293 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007fa444a09706 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fa4456f9500 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#41 0x00007fa4456f9694 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007fa4456fc796 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#43 0x00007fa444958b3c in QApplication::exec () at kernel/qapplication.cpp:3823
#44 0x000000000040fb1b in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dev-util/kdevelop-4.4.1/kdevelop-4.4.1/app/main.cpp:519

Reported using DrKonqi
Comment 1 Daniel Santos 2013-07-04 22:54:41 UTC
actually, now that I think about it again.  I may have invoked Ctrl-F to search in file or Ctrl-Alt-F to search all files in my project.
Comment 2 Kevin Funk 2013-07-05 07:57:44 UTC
This crash looks odd. I don't see anything in the code path that could lead to crashes.

Please install debug info packages for kdelibs, so we can get full backtraces in libkio.
Comment 3 Daniel Santos 2013-07-05 08:17:24 UTC
Well, this is Gentoo so there's no separate packages with debug info.  As it happens, I build debug info for everything except for openoffice and webkit.  In addition, I have USE="debug" enabled for kdelibs, which although I don't know exactly what cmake options this enables, is defined as extra debug options that may impact performance (so assertions & what have you).

Hmm, I have just discovered that portage changed the way a newer part of their system works and -g wasn't included in my CFLAGS or CXXFLAGS. :(  That's not good -- nor is -O2, so all of my packages that I did not build with -flto also didn't build with any optimizations :(
Comment 4 Milian Wolff 2013-07-05 11:37:55 UTC
If you can reproduce this, please run kdevelop through valgrind and show us the log:

valgrind --track-origins=yes --num-callers=30 --smc-check=all-non-file kdevelop -s yoursession
Comment 5 Andrew Crouthamel 2018-09-24 02:09:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-10-27 03:49:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 7 Daniel Santos 2018-10-27 16:26:50 UTC
(In reply to Milian Wolff from comment #4)
> If you can reproduce this, please run kdevelop through valgrind and show us
> the log:
> 
> valgrind --track-origins=yes --num-callers=30 --smc-check=all-non-file
> kdevelop -s yoursession

Wow, you send this shortly after my last comment and I never responded.  So sorry!  Either way, this code base is gone now so we'll leave it closed.