Bug 255982

Summary: settings->configure Kdevelop->source formatter crashes
Product: [Applications] kdevelop Reporter: bruno chareyre <bruno.chareyre>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: investigated, triaged
Priority: NOR    
Version: unspecified   
Target Milestone: 4.1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: valgrind output
another valgrind output

Description bruno chareyre 2010-11-03 17:57:37 UTC
Application: kdevelop (4.0.0 (using KDevPlatform 1.0.0))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-25-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
The same crash happens each time I click on "source formatter" feature. this behaviour started a few days ago and last even after some reboot.

The crash can be reproduced every time.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Aborted
[Current thread is 1 (Thread 0x7f5fc4004760 (LWP 32522))]

Thread 10 (Thread 0x7f5fb03b8710 (LWP 32523)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f5fc27b4692 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5fbe23b06e in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#3  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f5fa5a8c710 (LWP 32525)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f5fc148b3ac in _L_lock_12430 () from /lib/libc.so.6
#2  0x00007f5fc1489e48 in *__GI___libc_free (mem=0x7f5fc178ae40) at malloc.c:3736
#3  0x00007f5fbbbf0e72 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f5fc11f5a61 in __nptl_deallocate_tsd (arg=<value optimized out>) at pthread_create.c:155
#5  start_thread (arg=<value optimized out>) at pthread_create.c:307
#6  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f5f9bd78710 (LWP 32560)):
#0  0x00007f5fc14e5f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5fbbbd64a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5fbbbd68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f5fc28d1566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f5fc28a6992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f5fc28a6d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f5fc27b0d59 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f5fc2887178 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f5f9c579710 (LWP 32622)):
#0  0x00007f5fc14e5f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5fbbbd64a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5fbbbd68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f5fc28d1566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f5fc28a6992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f5fc28a6d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f5fc27b0d59 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f5f96358710 (LWP 32623)):
#0  0x00007f5fc14e5f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5fbbbd64a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f5fbbbd68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f5fc28d1566 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f5fc28a6992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f5fc28a6d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f5fc27b0d59 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f5f95b57710 (LWP 32624)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f5fc148b3ac in _L_lock_12430 () from /lib/libc.so.6
#2  0x00007f5fc1489e48 in *__GI___libc_free (mem=0x7f5fc178ae40) at malloc.c:3736
#3  0x00007f5fc27bfca0 in QDateTime::operator=(QDateTime const&) () from /usr/lib/libQtCore.so.4
#4  0x00007f5f97165f9d in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#5  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#7  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f5f940ec710 (LWP 32632)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5fc27b472b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5fb9672026 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f5fb96746ab in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f5fb9672bff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5fb9673168 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5f938eb710 (LWP 32633)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5fc27b472b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f5fb9672026 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f5fb96746ab in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f5fb96746c4 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f5fb9672bff in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f5fb9673168 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f5fc27b3775 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5fa628d710 (LWP 32642)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5fba93b2a6 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007f5fba93b2e9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007f5fc11f59ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f5fc14f26fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5fc4004760 (LWP 32522)):
[KCrash Handler]
#5  0x00007f5fc143fa75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f5fc14435c0 in *__GI_abort () at abort.c:92
#7  0x00007f5fc14794fb in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f5fc14835b6 in malloc_printerr (action=3, str=0x7f5fc1556e70 "malloc(): memory corruption (fast)", ptr=<value optimized out>) at malloc.c:6264
#9  0x00007f5fc14878e9 in _int_malloc (av=0x7f5fc178ae40, bytes=16) at malloc.c:4306
#10 0x00007f5fc148858e in *__GI___libc_malloc (bytes=16) at malloc.c:3660
#11 0x00007f5fc21f2810 in ?? () from /usr/lib/libQtGui.so.4
#12 0x00007f5fc221dc04 in QStandardItem::setData(QVariant const&, int) () from /usr/lib/libQtGui.so.4
#13 0x00007f5fc221f6f5 in QStandardItem::QStandardItem(QString const&) () from /usr/lib/libQtGui.so.4
#14 0x00007f5fc2035063 in QComboBox::insertItem(int, QIcon const&, QString const&, QVariant const&) () from /usr/lib/libQtGui.so.4
#15 0x00007f5f91bb0008 in ?? () from /usr/lib/kde4/kcm_kdevsourceformattersettings.so
#16 0x00007f5f91bad881 in ?? () from /usr/lib/kde4/kcm_kdevsourceformattersettings.so
#17 0x00007f5fc28b7d49 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f5fc1cb6bdf in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f5fc1c6122c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f5fc1c676fb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f5fc2def526 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007f5fc28a806c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007f5fc28aa7e7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#24 0x00007f5fc28d19d3 in ?? () from /usr/lib/libQtCore.so.4
#25 0x00007f5fbbbd28c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00007f5fbbbd6748 in ?? () from /lib/libglib-2.0.so.0
#27 0x00007f5fbbbd68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00007f5fc28d1513 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007f5fc1d1146e in ?? () from /usr/lib/libQtGui.so.4
#30 0x00007f5fc28a6992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#31 0x00007f5fc28a6d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#32 0x00007f5fc212b09e in QDialog::exec() () from /usr/lib/libQtGui.so.4
#33 0x00007f5fc34bff71 in KDevelop::UiController::showSettingsDialog() () from /usr/lib/libkdevplatformshell.so.1
#34 0x00007f5fc34b172e in ?? () from /usr/lib/libkdevplatformshell.so.1
#35 0x00007f5fc28bae3f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#36 0x00007f5fc1c5b032 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#37 0x00007f5fc1c5d0ab in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#38 0x00007f5fc209c39d in ?? () from /usr/lib/libQtGui.so.4
#39 0x00007f5fc20a1dda in ?? () from /usr/lib/libQtGui.so.4
#40 0x00007f5fc2ecbcee in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#41 0x00007f5fc1cb7582 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#42 0x00007f5fc20a3f9b in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#43 0x00007f5fc1c6122c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#44 0x00007f5fc1c67ecb in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#45 0x00007f5fc2def526 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#46 0x00007f5fc28a806c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#47 0x00007f5fc1c670ae in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#48 0x00007f5fc1ce73dd in ?? () from /usr/lib/libQtGui.so.4
#49 0x00007f5fc1ce58ac in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#50 0x00007f5fc1d11882 in ?? () from /usr/lib/libQtGui.so.4
#51 0x00007f5fbbbd28c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#52 0x00007f5fbbbd6748 in ?? () from /lib/libglib-2.0.so.0
#53 0x00007f5fbbbd68fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#54 0x00007f5fc28d1513 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#55 0x00007f5fc1d1146e in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007f5fc28a6992 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#57 0x00007f5fc28a6d6c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#58 0x00007f5fc28aaaab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#59 0x00000000004088cf in _start ()

Possible duplicates by query: bug 254364, bug 253841, bug 248447, bug 236519, bug 234427.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-11-03 18:24:11 UTC
if this is reproducible in KDevelop 4.1, please run kdevelop through valgrind and show us the log it creates:

valgrind --track-origins=yes --num-callers=25 kdevelop

this works fine for me btw.
Comment 2 bruno chareyre 2010-11-03 19:25:37 UTC
> this works fine for me btw.
>    
It used to work for me too.
Valgrind report is attached.
Comment 3 bruno chareyre 2010-11-03 19:28:28 UTC
I see I have KDevelop 4.0 from lucid, not 4.1.
Comment 4 bruno chareyre 2010-11-03 19:29:49 UTC
Created attachment 53104 [details]
valgrind output
Comment 5 Milian Wolff 2010-11-04 12:25:02 UTC
In kdev 4.0 the valgrind call is different:

kdevelop --sessions # find your {...} session hash
KDEV_SESSION={...your-hash...} valgrind --track-origins=yes --num-callers=25 kdevelop.bin
Comment 6 bruno chareyre 2010-11-08 18:38:53 UTC
Created attachment 53254 [details]
another valgrind output

I'm sending the log with the new command, but not sure you'll find what you need in there. Kdevelop hangs before I can do anything (I waited 15min, then got a "not responding" message), so I could not reproduce the original bug itself, sorry. I'm sending this report in case there is already a trace of the problem at startup, by any chance...
Comment 7 Milian Wolff 2010-11-09 12:04:42 UTC
no, nothing related shown in there. and you should think about installing more debug symbols / compiling from sources, so we get exact line numbers and such - would be very helpful.
Comment 8 bruno chareyre 2010-11-09 12:51:06 UTC
I add no much time to investigate more. I deleted all ~.kde/kdev* files and now the problem seems to be solved. I will not be able to reproduce it, sorry.
Comment 9 Andrew Crouthamel 2018-09-20 21:58:33 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 10 Andrew Crouthamel 2018-10-21 04:56:43 UTC
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!