Bug 294932 - KDevelop crashes upon loading previous session even after clearing cache.
Summary: KDevelop crashes upon loading previous session even after clearing cache.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 15:32 UTC by Łukasz Kucharski
Modified: 2012-04-04 17:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.82 KB, text/plain)
2012-03-02 09:35 UTC, gabriele monfardini
Details
New crash information added by DrKonqi (6.87 KB, text/plain)
2012-04-02 11:14 UTC, captain obvious
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Kucharski 2012-02-27 15:32:19 UTC
Application: kdevelop (4.3.60)
KDE Platform Version: 4.6.5 (4.6.5) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.1.0-1-686-pae i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
KDevelop crashed immediatly after starting git commit review. After this it crashes everytime I try to load a faulty session.

I can start KDevelop in pick-session mode and then choose to create a new one. It works. However, if I try to switch to the faulty one, it crashes again.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
[Current thread is 1 (Thread 0xb2565a00 (LWP 29076))]

Thread 6 (Thread 0xae4bfb70 (LWP 29077)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb56a3703 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0xb57de274 in __pthread_cond_timedwait (cond=0xa148978, mutex=0xa148960, abstime=0xae4bf2d8) at forward.c:152
#3  0xb6532b5e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb512326a in KDevelop::DUChainPrivate::CleanupThread::run (this=0xa145608) at /home/luk32/src/kdevplatform/language/duchain/duchain.cpp:282
#5  0xb65326c3 in ?? () from /usr/lib/libQtCore.so.4
#6  0xb569ec39 in start_thread (arg=0xae4bfb70) at pthread_create.c:304
#7  0xb57d112e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xab220b70 (LWP 29080)):
#0  0xb56a11c4 in __pthread_mutex_lock (mutex=0xadb01ef4) at pthread_mutex_lock.c:62
#1  0xb57de3e6 in pthread_mutex_lock (mutex=0xadb01ef4) at forward.c:182
#2  0xb4a1d72b in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4a1e0d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4a1e40a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb665b637 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb662c33d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb662c581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb652f85b in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb5225936 in KDevelop::CompletionWorkerThread::run (this=0xa28c870) at /home/luk32/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:84
#10 0xb65326c3 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb569ec39 in start_thread (arg=0xab220b70) at pthread_create.c:304
#12 0xb57d112e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xaaa1fb70 (LWP 29081)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb57c3746 in *__GI___poll (fds=0xb5859ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb4a2cafb in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb4a1e076 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4a1e40a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb665b637 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb662c33d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb662c581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb652f85b in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb5225936 in KDevelop::CompletionWorkerThread::run (this=0xa28d080) at /home/luk32/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:84
#10 0xb65326c3 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb569ec39 in start_thread (arg=0xaaa1fb70) at pthread_create.c:304
#12 0xb57d112e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xa99c4b70 (LWP 29086)):
#0  0xb77e3424 in __kernel_vsyscall ()
#1  0xb56a320a in __pthread_cond_wait (cond=0xb56552f0, mutex=0xb56552d8) at pthread_cond_wait.c:153
#2  0xb57de21d in __pthread_cond_wait (cond=0xb56552f0, mutex=0xb56552d8) at forward.c:139
#3  0xb55515c9 in ?? () from /usr/lib/libQtScript.so.4
#4  0xb555160f in ?? () from /usr/lib/libQtScript.so.4
#5  0xb569ec39 in start_thread (arg=0xa99c4b70) at pthread_create.c:304
#6  0xb57d112e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xa8989b70 (LWP 29109)):
#0  0xb4a1d6fe in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb4a1e0d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb4a1e40a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb665b637 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb662c33d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb662c581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb652f85b in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xb660ce7d in ?? () from /usr/lib/libQtCore.so.4
#8  0xb65326c3 in ?? () from /usr/lib/libQtCore.so.4
#9  0xb569ec39 in start_thread (arg=0xa8989b70) at pthread_create.c:304
#10 0xb57d112e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb2565a00 (LWP 29076)):
[KCrash Handler]
#7  0xb7401d0d in KDevelop::WorkingSet::loadToArea (this=0xa148cd0, area=0x9ef7a70, areaIndex=0x9ef7c40, setGroup=<incomplete type>, areaGroup=<incomplete type>, recycle=...) at /home/luk32/src/kdevplatform/shell/workingsets/workingset.cpp:267
#8  0xb7402d22 in KDevelop::WorkingSet::loadToArea (this=0xa148cd0, area=0x9ef7a70, areaIndex=0x9ef7c40) at /home/luk32/src/kdevplatform/shell/workingsets/workingset.cpp:196
#9  0xb73fc578 in KDevelop::WorkingSetController::changedWorkingSet (this=0x9ed6e38, area=0x9ef7a70, from=..., to=...) at /home/luk32/src/kdevplatform/shell/workingsetcontroller.cpp:302
#10 0xb73fd14b in KDevelop::WorkingSetController::qt_metacall (this=0x9ed6e38, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfbf1250) at /home/luk32/src/kdevplatform/build/shell/workingsetcontroller.moc:107
#11 0xb66336cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xb66424d0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb6ff38e5 in Sublime::Area::changedWorkingSet (this=0x9ef7a70, _t1=0x9ef7a70, _t2=..., _t3=...) at /home/luk32/src/kdevplatform/build/sublime/area.moc:171
#14 0xb6ff3a24 in Sublime::Area::setWorkingSet (this=0x9ef7a70, name=...) at /home/luk32/src/kdevplatform/sublime/area.cpp:417
#15 0xb6ff6d13 in Sublime::Area::load (this=0x9ef7a70, group=...) at /home/luk32/src/kdevplatform/sublime/area.cpp:349
#16 0xb742391e in KDevelop::UiController::loadArea (this=0x9ed71c8, area=0x9ef7a70, group=...) at /home/luk32/src/kdevplatform/shell/uicontroller.cpp:427
#17 0xb7425dff in KDevelop::UiController::loadAllAreas (this=0x9ed71c8, config=...) at /home/luk32/src/kdevplatform/shell/uicontroller.cpp:519
#18 0xb7421728 in KDevelop::CorePrivate::initialize (this=0x9ebf938, mode=KDevelop::Core::Default, session=...) at /home/luk32/src/kdevplatform/shell/core.cpp:239
#19 0xb7422955 in KDevelop::Core::initialize (splash=0x9eb8c10, mode=KDevelop::Core::Default, session=...) at /home/luk32/src/kdevplatform/shell/core.cpp:290
#20 0x080504be in main (argc=<optimized out>, argv=0xb10ee40) at /home/luk32/src/kdevelop/app/main.cpp:358

Possible duplicates by query: bug 286281, bug 256602, bug 255956.

Reported using DrKonqi
Comment 1 gabriele monfardini 2012-03-02 09:35:07 UTC
Created attachment 69234 [details]
New crash information added by DrKonqi

kdevelop (4.3.60) on KDE Platform 4.8.00 (4.8.0 using Qt 4.8.0

- What I was doing when the application crashed:
I was starting kdevelop.
I have a few sessions and in the current session 5-6 tabs opened and no project at all.

Kdevelop is compiled from git of a few days ago

-- Backtrace (Reduced):
#6  0x00007fc0c26d14ab in KDevelop::WorkingSet::loadToArea (this=<optimized out>, area=0x103c2b0, areaIndex=0x103c850, setGroup=..., areaGroup=..., recycle=<optimized out>) at /home/monfardini/devel/kdevelop4/kdevplatform/shell/workingsets/workingset.cpp:267
#7  0x00007fc0c26d217b in KDevelop::WorkingSet::loadToArea (this=0x2264900, area=0x103c2b0, areaIndex=0x103c850) at /home/monfardini/devel/kdevelop4/kdevplatform/shell/workingsets/workingset.cpp:196
#8  0x00007fc0c26cc7cd in KDevelop::WorkingSetController::changedWorkingSet (this=0xfffd30, area=0x103c2b0, from=..., to=<optimized out>) at /home/monfardini/devel/kdevelop4/kdevplatform/shell/workingsetcontroller.cpp:302
#9  0x00007fc0c26cd17a in KDevelop::WorkingSetController::qt_metacall (this=0xfffd30, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7ffff43a71e0) at /home/monfardini/devel/kdevelop4/kdevplatform/build/shell/workingsetcontroller.moc:107
[...]
#11 0x00007fc0bd7eef8c in Sublime::Area::changedWorkingSet (this=<optimized out>, _t1=0x103c2b0, _t2=<optimized out>, _t3=<optimized out>) at /home/monfardini/devel/kdevelop4/kdevplatform/build/sublime/area.moc:171
Comment 2 gabriele monfardini 2012-03-02 09:38:19 UTC
I just remembered that I've very recently updated Qt from 4.7.4 to 4.8.
So maybe this is the cause of the crash
Comment 3 Milian Wolff 2012-03-02 09:54:07 UTC
please run it through valgrind if it's reproducible.

line 267 for me reads:

266: QMultiMap<QString, Sublime::View*>::iterator it = recycle.find( specifier );
267: if( it != recycle.end() )

I think this should be perfeclty fine.

make sure your kdevplatform checkout is up2date as well.
Comment 4 gabriele monfardini 2012-03-02 12:11:43 UTC
I've recompiled kdevplatform and kdevelop (using new qt, so it has to recreate all moc files).

Kdevelop at start asked to clean the cache since it crashed two times in a row.
And it works.

So it appears that I cannot reproduce it anymore and for me it's solved.
Comment 5 Milian Wolff 2012-03-02 12:43:01 UTC
ok thanks, there were some fixes in this area recently, lets hope it's fixed then
Comment 6 captain obvious 2012-04-02 11:14:33 UTC
Created attachment 70075 [details]
New crash information added by DrKonqi

kdevelop (4.2.90) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.2

- What I was doing when the application crashed:

I'v moved project to another directory. The session tries to open prevous directory.

-- Backtrace (Reduced):
#6  0x00007fa0ba1c644b in KDevelop::WorkingSet::loadToArea (this=<value optimized out>, area=0x22a8250, areaIndex=0x3f6b600, setGroup=<incomplete type>, areaGroup=<incomplete type>, recycle=<value optimized out>) at /home/cap/archives/src/kdevelop/kdevplatform-1.2.90/shell/workingsets/workingset.cpp:267
#7  0x00007fa0ba1c6591 in KDevelop::WorkingSet::loadToArea (this=0x4596880, area=0x22a8250, areaIndex=0x22a24f0, setGroup=<incomplete type>, areaGroup=<incomplete type>, recycle=...) at /home/cap/archives/src/kdevelop/kdevplatform-1.2.90/shell/workingsets/workingset.cpp:230
#8  0x00007fa0ba1c711b in KDevelop::WorkingSet::loadToArea (this=0x4596880, area=0x22a8250, areaIndex=0x22a24f0) at /home/cap/archives/src/kdevelop/kdevplatform-1.2.90/shell/workingsets/workingset.cpp:196
#9  0x00007fa0ba1c176d in KDevelop::WorkingSetController::changedWorkingSet (this=0x2268160, area=0x22a8250, from=..., to=<value optimized out>) at /home/cap/archives/src/kdevelop/kdevplatform-1.2.90/shell/workingsetcontroller.cpp:302
#10 0x00007fa0ba1c211a in KDevelop::WorkingSetController::qt_metacall (this=0x2268160, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff791c56a0) at /home/cap/archives/src/kdevelop/kdevplatform-1.2.90/build/shell/workingsetcontroller.moc:107
Comment 7 Milian Wolff 2012-04-04 17:16:35 UTC
kdev 4.2.90 is outdated, update to 4.3.0 or 4.3.60 (current master)