Bug 256692 - Fiddling with editor configuration
Summary: Fiddling with editor configuration
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.1.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 256947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-12 12:58 UTC by gabriele monfardini
Modified: 2010-11-15 13:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kdevelop valgrind log (239.59 KB, text/plain)
2010-11-12 15:37 UTC, gabriele monfardini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gabriele monfardini 2010-11-12 12:58:20 UTC
Application: kdevelop (4.1.0)
KDE Platform Version: 4.5.3 (KDE 4.5.3)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-23-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
I was configuring the editor, in particular attivating a plugin. When I click Ok to save configuration and close, Kdevelop crahes

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f0f371db760 (LWP 26267))]

Thread 6 (Thread 0x7f0f20321710 (LWP 26270)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f0f35976da2 in wait (this=<value optimized out>, mutex=0x1b00180, time=200000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b00180, time=200000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f0f31ac69de in KDevelop::DUChainPrivate::CleanupThread::run (this=0x1b00160) at ../../language/duchain/duchain.cpp:286
#4  0x00007f0f3597627e in QThreadPrivate::start (arg=0x1b00160) at thread/qthread_unix.cpp:266
#5  0x00007f0f3437a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f0f3467694d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f0f1717e710 (LWP 26275)):
#0  0x00007fffad9ff904 in clock_gettime ()
#1  0x00007f0f2e9460bf in clock_gettime (clock_id=1, tp=0x7f0f1717db20) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007f0f359cb94f in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#4  0x00007f0f35a981fd in QTimerInfoList::updateCurrentTime (this=0x1) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f0f35a98225 in QTimerInfoList::timerWait (this=0x1, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f0f35a963dd in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x7f0f1717dc5c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f0f35a96485 in timerSourcePrepare (source=0x1, timeout=0x7f0f1717db20) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f0f2e6a3a11 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#9  0x00007f0f2e6a3e78 in ?? () from /lib/libglib-2.0.so.0
#10 0x00007f0f2e6a445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0x00007f0f35a961e6 in QEventDispatcherGlib::processEvents (this=0x251c000, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#12 0x00007f0f35a68a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#13 0x00007f0f35a68dec in QEventLoop::exec (this=0x7f0f1717ddf0, flags=) at kernel/qeventloop.cpp:201
#14 0x00007f0f359732fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#15 0x00007f0f3597627e in QThreadPrivate::start (arg=0x26db110) at thread/qthread_unix.cpp:266
#16 0x00007f0f3437a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#17 0x00007f0f3467694d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#18 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0f1697d710 (LWP 26304)):
#0  0x00007fffad9ff904 in clock_gettime ()
#1  0x00007f0f2e9460bf in clock_gettime (clock_id=1, tp=0x7f0f1697cae0) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007f0f359cb94f in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#4  0x00007f0f35a981fd in QTimerInfoList::updateCurrentTime (this=0x1) at kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f0f35a98225 in QTimerInfoList::timerWait (this=0x1, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f0f35a963dd in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x7f0f1697cc1c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f0f35a96485 in timerSourcePrepare (source=0x1, timeout=0x7f0f1697cae0) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f0f2e6a3a11 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#9  0x00007f0f2e6a3e78 in ?? () from /lib/libglib-2.0.so.0
#10 0x00007f0f2e6a445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0x00007f0f35a961e6 in QEventDispatcherGlib::processEvents (this=0x282e750, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#12 0x00007f0f35a68a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#13 0x00007f0f35a68dec in QEventLoop::exec (this=0x7f0f1697cdb0, flags=) at kernel/qeventloop.cpp:201
#14 0x00007f0f359732fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#15 0x00007f0f35a485f8 in QInotifyFileSystemWatcherEngine::run (this=0x2841930) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f0f3597627e in QThreadPrivate::start (arg=0x2841930) at thread/qthread_unix.cpp:266
#17 0x00007f0f3437a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#18 0x00007f0f3467694d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0f0bd44710 (LWP 26341)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0f35976e3b in wait (this=<value optimized out>, mutex=0x1862380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1862380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f0f2c92f524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x19c9800, th=0x3d61440) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f0f2c93272b in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c5230, th=0x3d61440) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f0f2c930c9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f0f0bd43e00, parent=0x19c9800, th=0x3d61440) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f0f2c9311f8 in ThreadWeaver::Thread::run (this=0x3d61440) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f0f3597627e in QThreadPrivate::start (arg=0x3d61440) at thread/qthread_unix.cpp:266
#8  0x00007f0f3437a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f0f3467694d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0f0b543710 (LWP 26342)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f0f35976e3b in wait (this=<value optimized out>, mutex=0x1862380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1862380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f0f2c92f524 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x19c9800, th=0x3849820) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f0f2c93272b in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c5230, th=0x3849820) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f0f2c932744 in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c5230, th=0x3849820) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f0f2c930c9f in ThreadWeaver::ThreadRunHelper::run (this=0x7f0f0b542e00, parent=0x19c9800, th=0x3849820) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007f0f2c9311f8 in ThreadWeaver::Thread::run (this=0x3849820) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007f0f3597627e in QThreadPrivate::start (arg=0x3849820) at thread/qthread_unix.cpp:266
#9  0x00007f0f3437a971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007f0f3467694d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0f371db760 (LWP 26267)):
[KCrash Handler]
#6  0x00007f0f34e59051 in QETWidget::translateMouseEvent (this=0x52cf2a0, event=0x7fffad90c190) at kernel/qapplication_x11.cpp:4354
#7  0x00007f0f34e57c5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffad90ca50) at kernel/qapplication_x11.cpp:3536
#8  0x00007f0f34e840e2 in x11EventSourceDispatch (s=0x151ce50, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#9  0x00007f0f2e6a0342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#10 0x00007f0f2e6a42a8 in ?? () from /lib/libglib-2.0.so.0
#11 0x00007f0f2e6a445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#12 0x00007f0f35a96193 in QEventDispatcherGlib::processEvents (this=0x14f75b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#13 0x00007f0f34e83a4e in QGuiEventDispatcherGlib::processEvents (this=0x7fffad90c130, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#14 0x00007f0f35a68a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#15 0x00007f0f35a68dec in QEventLoop::exec (this=0x7fffad90cd80, flags=) at kernel/qeventloop.cpp:201
#16 0x00007f0f35a6cebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#17 0x0000000000408f01 in _start ()

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

Possible duplicates by query: bug 256660, bug 256488, bug 256278, bug 256257, bug 255837.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-11-12 13:43:29 UTC
when this is reproducible, please run kdevelop through valgrind and show us the log it produces:

valgrind --track-origins=yes --num-callers=25 kdevelop
Comment 2 gabriele monfardini 2010-11-12 15:37:51 UTC
Created attachment 53362 [details]
kdevelop valgrind log
Comment 3 gabriele monfardini 2010-11-12 15:46:41 UTC
I'm trying to enable Joseph Wenninger's HTML autocomplete plugin inside Editor > Settings (I don't know the exact name since I'm using a localized version).
Kdevelop crashes every time so this bug is easily reproducible.

A small consideration.
Even if I understand that working on crashes like this one is very painful IMHO asking the user that experienced a (sporadic) crash to provide a valgrind log is setting the bar a bit too high even if the user is collaborative.
It requires a lot of time and memory even when the crash is always reproducible and need only three or four click from the start. My 2 cents.
Comment 4 Milian Wolff 2010-11-12 15:55:29 UTC
Duplicate of 238864, which in turn was a duplicate, let me quote Christoph:

Closing this as a duplicate of bug 170806 because the backtrace indicates that
the XMLGUI client list contains stray pointers.

If you are experiencing toolbar or shortcut related crashes again with KDE
4.5.3 or later, please create a new bug report.

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

*** This bug has been marked as a duplicate of bug 170806 ***
Comment 5 Christoph Feck 2010-11-12 17:21:39 UTC
Not a duplicate. Bug 238864 had clear references to XMLGUI in its valgrind log, this one does not.
Comment 6 gabriele monfardini 2010-11-12 18:02:23 UTC
@Milian
> If you are experiencing toolbar or shortcut related crashes again with KDE
> 4.5.3 or later, please create a new bug report.

I'm on KDE 4.5.3
Comment 7 Milian Wolff 2010-11-12 22:50:46 UTC
I cannot reproduce nor find out how that could be anything different than bug 238864... Esp. since it's the very same backtrace and the valgrind log shows some invalid Actions or similar... Anyone got an idea what to do here?

/me doubts it's anything in KDevelop
Comment 8 Milian Wolff 2010-11-12 23:02:24 UTC
dfaure looked at the valgrind, says it's a duplicate of 249884 but with a different origin. He has it on his todo to fix it properly upstream in Qt.

Btw., you said:
I'm trying to enable Joseph Wenninger's HTML autocomplete plugin inside Editor
> Settings (I don't know the exact name since I'm using a localized version).
Kdevelop crashes every time so this bug is easily reproducible.

This reminds me that I changed the location of the config action to be in settings and always visible, this should fix it for KDevelop 4.2 onwards.
Comment 9 Milian Wolff 2010-11-15 13:24:42 UTC
*** Bug 256947 has been marked as a duplicate of this bug. ***