Bug 270137

Summary: Crash when browsing C++ configuration
Product: [Applications] kdevelop Reporter: Sebteams69
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 Sebteams69 2011-04-05 10:59:48 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 i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Browsing configuration of Kdevelop and going to the source formatter

The crash can be reproduced every time.

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

Thread 9 (Thread 0xb6acdb70 (LWP 5032)):
#0  0x00309416 in __kernel_vsyscall ()
#1  0x0528edf6 in __poll (fds=0x5325ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x04c1fa1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x04c1243c in ?? () from /lib/libglib-2.0.so.0
#4  0x04c12ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x026c99c4 in ?? () from /usr/lib/libgio-2.0.so.0
#6  0x04c3948f in ?? () from /lib/libglib-2.0.so.0
#7  0x00221cc9 in start_thread (arg=0xb6acdb70) at pthread_create.c:304
#8  0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 8 (Thread 0xb39b1b70 (LWP 5033)):
#0  0x00309416 in __kernel_vsyscall ()
#1  0x00226884 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0x052aadf4 in __pthread_cond_timedwait (cond=0x961e588, mutex=0x961e570, abstime=0xb39b12b0) at forward.c:152
#3  0x0072394f in wait (this=0x961c5ec, mutex=0x961c5f0, time=200000) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=0x961c5ec, mutex=0x961c5f0, time=200000) at thread/qwaitcondition_unix.cpp:160
#5  0x01a9c5b5 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x961c5e0) at ../../language/duchain/duchain.cpp:286
#6  0x00722df9 in QThreadPrivate::start (arg=0x961c5e0) at thread/qthread_unix.cpp:266
#7  0x00221cc9 in start_thread (arg=0xb39b1b70) at pthread_create.c:304
#8  0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 7 (Thread 0xb054ab70 (LWP 5048)):
#0  0x002243eb in __pthread_mutex_lock (mutex=0xb2001a1c) at pthread_mutex_lock.c:61
#1  0x052aaf66 in pthread_mutex_lock (mutex=0xb2001a1c) at forward.c:182
#2  0x04c11d0f in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0x04c12279 in ?? () from /lib/libglib-2.0.so.0
#4  0x04c12848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x0085359f in QEventDispatcherGlib::processEvents (this=0xb2000df0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x00823609 in QEventLoop::processEvents (this=0xb054a2c0, flags=) at kernel/qeventloop.cpp:149
#7  0x00823a8a in QEventLoop::exec (this=0xb054a2c0, flags=...) at kernel/qeventloop.cpp:201
#8  0x0071fb7e in QThread::exec (this=0x96e5e70) at thread/qthread.cpp:490
#9  0x01b998d8 in KDevelop::CompletionWorkerThread::run (this=0x96e5e70) at ../../language/codecompletion/codecompletionmodel.cpp:81
#10 0x00722df9 in QThreadPrivate::start (arg=0x96e5e70) at thread/qthread_unix.cpp:266
#11 0x00221cc9 in start_thread (arg=0xb054ab70) at pthread_create.c:304
#12 0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xaf548b70 (LWP 5111)):
#0  postEventSourcePrepare (s=0x98fecd0, timeout=0xaf54806c) at kernel/qeventdispatcher_glib.cpp:265
#1  0x00853b19 in postEventSourceCheck (source=0x98fecd0) at kernel/qeventdispatcher_glib.cpp:270
#2  0x04c11b39 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0x04c1245e in ?? () from /lib/libglib-2.0.so.0
#4  0x04c12848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x0085359f in QEventDispatcherGlib::processEvents (this=0x99f3790, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x00823609 in QEventLoop::processEvents (this=0xaf5482c0, flags=) at kernel/qeventloop.cpp:149
#7  0x00823a8a in QEventLoop::exec (this=0xaf5482c0, flags=...) at kernel/qeventloop.cpp:201
#8  0x0071fb7e in QThread::exec (this=0x98f0d00) at thread/qthread.cpp:490
#9  0x01b998d8 in KDevelop::CompletionWorkerThread::run (this=0x98f0d00) at ../../language/codecompletion/codecompletionmodel.cpp:81
#10 0x00722df9 in QThreadPrivate::start (arg=0x98f0d00) at thread/qthread_unix.cpp:266
#11 0x00221cc9 in start_thread (arg=0xaf548b70) at pthread_create.c:304
#12 0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xafd49b70 (LWP 5112)):
#0  0x04c11e58 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#1  0x04c12279 in ?? () from /lib/libglib-2.0.so.0
#2  0x04c12848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x0085359f in QEventDispatcherGlib::processEvents (this=0x96d29e8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00823609 in QEventLoop::processEvents (this=0xafd492c0, flags=) at kernel/qeventloop.cpp:149
#5  0x00823a8a in QEventLoop::exec (this=0xafd492c0, flags=...) at kernel/qeventloop.cpp:201
#6  0x0071fb7e in QThread::exec (this=0x97f52f0) at thread/qthread.cpp:490
#7  0x01b998d8 in KDevelop::CompletionWorkerThread::run (this=0x97f52f0) at ../../language/codecompletion/codecompletionmodel.cpp:81
#8  0x00722df9 in QThreadPrivate::start (arg=0x97f52f0) at thread/qthread_unix.cpp:266
#9  0x00221cc9 in start_thread (arg=0xafd49b70) at pthread_create.c:304
#10 0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xabf5eb70 (LWP 5113)):
#0  0x00309416 in __kernel_vsyscall ()
#1  0x00226884 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0x052aadf4 in __pthread_cond_timedwait (cond=0xabf5e224, mutex=0xabf5e254, abstime=0xabf5e2a0) at forward.c:152
#3  0x0072233e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:416
#4  0x00722493 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:442
#5  0x03842ccb in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#6  0x00722df9 in QThreadPrivate::start (arg=0x98ff620) at thread/qthread_unix.cpp:266
#7  0x00221cc9 in start_thread (arg=0xabf5eb70) at pthread_create.c:304
#8  0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xaacd1b70 (LWP 5124)):
#0  0x00309416 in __kernel_vsyscall ()
#1  0x002264dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x052aad9d in __pthread_cond_wait (cond=0x95c5a80, mutex=0x95c5a68) at forward.c:139
#3  0x007239c7 in wait (this=0x95c5960, mutex=0x94f0160, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x95c5960, mutex=0x94f0160, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x0787c030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x95c5948, th=0x9c822d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x0787f7dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x94e1878, th=0x9c822d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x0787b55b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x95c5948, th=0x9c822d8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x0787f8d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x94e1878, th=0x9c822d8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x0787c533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x95c5948, th=0x9c822d8, previous=0x9bccc08) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x0787d95e in ThreadWeaver::ThreadRunHelper::run (this=0xaacd12f4, parent=0x95c5948, th=0x9c822d8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x0787e07b in ThreadWeaver::Thread::run (this=0x9c822d8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x00722df9 in QThreadPrivate::start (arg=0x9c822d8) at thread/qthread_unix.cpp:266
#13 0x00221cc9 in start_thread (arg=0xaacd1b70) at pthread_create.c:304
#14 0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xaa4d0b70 (LWP 5125)):
#0  0x00309416 in __kernel_vsyscall ()
#1  0x002264dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x052aad9d in __pthread_cond_wait (cond=0x95c5a80, mutex=0x95c5a68) at forward.c:139
#3  0x007239c7 in wait (this=0x95c5960, mutex=0x94f0160, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x95c5960, mutex=0x94f0160, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x0787c030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x95c5948, th=0x99022b8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x0787f7dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x94e1878, th=0x99022b8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x0787b55b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x95c5948, th=0x99022b8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x0787f8d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x94e1878, th=0x99022b8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x0787c533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x95c5948, th=0x99022b8, previous=0x99da268) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x0787d95e in ThreadWeaver::ThreadRunHelper::run (this=0xaa4d02f4, parent=0x95c5948, th=0x99022b8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x0787e07b in ThreadWeaver::Thread::run (this=0x99022b8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x00722df9 in QThreadPrivate::start (arg=0x99022b8) at thread/qthread_unix.cpp:266
#13 0x00221cc9 in start_thread (arg=0xaa4d0b70) at pthread_create.c:304
#14 0x0529d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7747710 (LWP 5030)):
[KCrash Handler]
#7  ref (this=0xbf948980, other=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:120
#8  QString::operator= (this=0xbf948980, other=...) at tools/qstring.cpp:1323
#9  0x0888f270 in SourceFormatterSettings::load (this=0xb8361c0) at ../../../shell/settings/sourceformattersettings.cpp:152
#10 0x0888c5a6 in SourceFormatterSettings::qt_metacall (this=0xb8361c0, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0xabe25a0) at ./sourceformattersettings.moc:85
#11 0x0082a8ca in QMetaObject::metacall (object=0xb8361c0, cl=193425022, idx=36, argv=0xabe25a0) at kernel/qmetaobject.cpp:237
#12 0x00835df6 in QMetaCallEvent::placeMetaCall (this=0xb868600, object=0xb8361c0) at kernel/qobject.cpp:534
#13 0x008376a2 in QObject::event (this=0xb8361c0, e=0x0) at kernel/qobject.cpp:1219
#14 0x010bc936 in QWidget::event (this=0xb8361c0, event=0xb868600) at kernel/qwidget.cpp:8646
#15 0x0105efdc in QApplicationPrivate::notify_helper (this=0x932cf98, receiver=0xb8361c0, e=0xb868600) at kernel/qapplication.cpp:4396
#16 0x010650e9 in QApplication::notify (this=0xbf94a7f0, receiver=0xb8361c0, e=0xb868600) at kernel/qapplication.cpp:4361
#17 0x004e268a in KApplication::notify (this=0xbf94a7f0, receiver=0xb8361c0, event=0xb868600) at ../../kdeui/kernel/kapplication.cpp:310
#18 0x00824b3b in QCoreApplication::notifyInternal (this=0xbf94a7f0, receiver=0xb8361c0, event=0xb868600) at kernel/qcoreapplication.cpp:732
#19 0x00827d8b in sendEvent (receiver=0x0, event_type=0, data=0x9300f00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9300f00) at kernel/qcoreapplication.cpp:1373
#21 0x00827f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#22 0x00853a74 in sendPostedEvents (s=0x932f310) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=0x932f310) at kernel/qeventdispatcher_glib.cpp:277
#24 0x04c0e855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x04c12668 in ?? () from /lib/libglib-2.0.so.0
#26 0x04c12848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x00853565 in QEventDispatcherGlib::processEvents (this=0x9300a18, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#28 0x01120be5 in QGuiEventDispatcherGlib::processEvents (this=0x9300a18, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00823609 in QEventLoop::processEvents (this=0xbf9493e0, flags=) at kernel/qeventloop.cpp:149
#30 0x00823a8a in QEventLoop::exec (this=0xbf9493e0, flags=...) at kernel/qeventloop.cpp:201
#31 0x015c9873 in QDialog::exec (this=0xb841778) at dialogs/qdialog.cpp:552
#32 0x00e1e624 in KDevelop::UiController::showSettingsDialog (this=0x94f5fa8) at ../../shell/uicontroller.cpp:414
#33 0x00e0b807 in KDevelop::MainWindowPrivate::settingsDialog (this=0x953add8) at ../../shell/mainwindow_actions.cpp:100
#34 0x00e0dcb0 in KDevelop::MainWindowPrivate::qt_metacall (this=0x953add8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbf9495e8) at ./mainwindow_p.moc:144
#35 0x0082a8ca in QMetaObject::metacall (object=0x953add8, cl=193425022, idx=21, argv=0xbf9495e8) at kernel/qmetaobject.cpp:237
#36 0x0083d6ad in QMetaObject::activate (sender=0x953acc0, m=0x19dd370, local_signal_index=1, argv=0x64682b2b) at kernel/qobject.cpp:3280
#37 0x01056f99 in QAction::triggered (this=0x953acc0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#38 0x010588dc in QAction::activate (this=0x953acc0, event=QAction::Trigger) at kernel/qaction.cpp:1256
#39 0x015247ef in QMenuPrivate::activateCausedStack (this=0x9551b10, causedStack=..., action=0x953acc0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#40 0x0152aa4b in QMenuPrivate::activateAction (this=0x9551b10, action=0x953acc0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#41 0x0152b5e0 in QMenu::mouseReleaseEvent (this=0x95f8cd8, e=0xbf949e90) at widgets/qmenu.cpp:2301
#42 0x005dcfe5 in KMenu::mouseReleaseEvent (this=0x95f8cd8, e=0xbf949e90) at ../../kdeui/widgets/kmenu.cpp:471
#43 0x010bce08 in QWidget::event (this=0x95f8cd8, event=0xbf949e90) at kernel/qwidget.cpp:8187
#44 0x0152d02f in QMenu::event (this=0x95f8cd8, e=0xbf949e90) at widgets/qmenu.cpp:2410
#45 0x0105efdc in QApplicationPrivate::notify_helper (this=0x932cf98, receiver=0x95f8cd8, e=0xbf949e90) at kernel/qapplication.cpp:4396
#46 0x01065c2e in QApplication::notify (this=0xbf94a7f0, receiver=0x95f8cd8, e=0xbf949e90) at kernel/qapplication.cpp:3959
#47 0x004e268a in KApplication::notify (this=0xbf94a7f0, receiver=0x95f8cd8, event=0xbf949e90) at ../../kdeui/kernel/kapplication.cpp:310
#48 0x00824b3b in QCoreApplication::notifyInternal (this=0xbf94a7f0, receiver=0x95f8cd8, event=0xbf949e90) at kernel/qcoreapplication.cpp:732
#49 0x01064094 in sendEvent (receiver=0x95f8cd8, event=0xbf949e90, alienWidget=0x0, nativeWidget=0x95f8cd8, buttonDown=0x19f93c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#50 QApplicationPrivate::sendMouseEvent (receiver=0x95f8cd8, event=0xbf949e90, alienWidget=0x0, nativeWidget=0x95f8cd8, buttonDown=0x19f93c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#51 0x010f3261 in QETWidget::translateMouseEvent (this=0x95f8cd8, event=0xbf94a3ac) at kernel/qapplication_x11.cpp:4337
#52 0x010f2151 in QApplication::x11ProcessEvent (this=0xbf94a7f0, event=0xbf94a3ac) at kernel/qapplication_x11.cpp:3414
#53 0x0112136a in x11EventSourceDispatch (s=0x932ff40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#54 0x04c0e855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#55 0x04c12668 in ?? () from /lib/libglib-2.0.so.0
#56 0x04c12848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#57 0x00853565 in QEventDispatcherGlib::processEvents (this=0x9300a18, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#58 0x01120be5 in QGuiEventDispatcherGlib::processEvents (this=0x9300a18, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#59 0x00823609 in QEventLoop::processEvents (this=0xbf94a6a4, flags=) at kernel/qeventloop.cpp:149
#60 0x00823a8a in QEventLoop::exec (this=0xbf94a6a4, flags=...) at kernel/qeventloop.cpp:201
#61 0x0082800f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#62 0x0105de07 in QApplication::exec () at kernel/qapplication.cpp:3672
#63 0x0804fe00 in _start ()

Possible duplicates by query: bug 258981, bug 240509.

Reported using DrKonqi
Comment 1 Milian Wolff 2011-04-05 11:30:54 UTC
fixed for 4.2.1, which will be released soon.

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