Bug 175028 - KDevelop 4 crashes when closing the main window
Summary: KDevelop 4 crashes when closing the main window
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: language (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 12:08 UTC by Lorenzo Villani
Modified: 2009-01-25 17:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Debug output (184.62 KB, text/plain)
2008-11-13 12:10 UTC, Lorenzo Villani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Villani 2008-11-13 12:08:05 UTC
Version:           3.9.82 (svn rev 883577) (using Devel)
Compiler:          gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7) 
OS:                Linux
Installed from:    Compiled sources

[1] Description
[2] Backtrace
[3] Debug output


=== Description ===
After working some time with a project, I decided to close kdevelop but it crashed.

-- Steps to reproduce:
Work a bit with a project, while having it still opened, close kdevelop -> crash

=== Backtrace ===

Application: KDevelop (kdevelop), signal SIGSEGV
[Current thread is 1 (Thread 0xb80969a0 (LWP 19478))]

Thread 5 (Thread 0xb6198b90 (LWP 19479)):
#0  0x00130424 in __kernel_vsyscall ()
#1  0x003603d2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0017d0dc in QWaitConditionPrivate::wait () at thread/qwaitcondition_unix.cpp:80
#3  QWaitCondition::wait (this=0xa0a6104, mutex=0xa0a6108, time=90000) at thread/qwaitcondition_unix.cpp:154
#4  0x03ce7cdb in KDevelop::DUChainPrivate::CleanupThread::run (this=0xa0a60f8) at /home/lorenzo/devel/cpp/kdevplatform/language/duchain/duchain.cpp:228
#5  0x0017c0be in QThreadPrivate::start (arg=0xa0a60f8) at thread/qthread_unix.cpp:185
#6  0x0035c51f in start_thread () from /lib/libpthread.so.0
#7  0x011f902e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb459db90 (LWP 19481)):
#0  0x00130424 in __kernel_vsyscall ()
#1  0x011f1381 in select () from /lib/libc.so.6
#2  0x0024bf77 in QProcessManager::run (this=0x9dfaaf8) at io/qprocess_unix.cpp:301
#3  0x0017c0be in QThreadPrivate::start (arg=0x9dfaaf8) at thread/qthread_unix.cpp:185
#4  0x0035c51f in start_thread () from /lib/libpthread.so.0
#5  0x011f902e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb2c9cb90 (LWP 19567)):
#0  0x00130424 in __kernel_vsyscall ()
#1  0x003600a5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0017d102 in QWaitConditionPrivate::wait () at thread/qwaitcondition_unix.cpp:82
#3  QWaitCondition::wait (this=0xa740788, mutex=0xa5cfcb8, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0x03ec2e58 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xa740770, th=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0x03ec5bfc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9e91578, th=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0x03ec1a3b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0xa740770, th=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0x03ec5cfa in ThreadWeaver::WorkingHardState::applyForWork (this=0x9e91578, th=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0x03ec33e3 in ThreadWeaver::WeaverImpl::applyForWork (this=0xa740770, th=0xa756b20, previous=0xa761a30) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0x03ec3cce in ThreadWeaver::ThreadRunHelper::run (this=0xb2c9c2c0, parent=0xa740770, th=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/Thread.cpp:87
#10 0x03ec430b in ThreadWeaver::Thread::run (this=0xa756b20) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/Thread.cpp:142
#11 0x0017c0be in QThreadPrivate::start (arg=0xa756b20) at thread/qthread_unix.cpp:185
#12 0x0035c51f in start_thread () from /lib/libpthread.so.0
#13 0x011f902e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb229bb90 (LWP 19570)):
#0  0x00130424 in __kernel_vsyscall ()
#1  0x003600a5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x0017d102 in QWaitConditionPrivate::wait () at thread/qwaitcondition_unix.cpp:82
#3  QWaitCondition::wait (this=0xa740788, mutex=0xa5cfcb8, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0x03ec2e58 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xa740770, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0x03ec5bfc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9e91578, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0x03ec1a3b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0xa740770, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0x03ec5cfa in ThreadWeaver::WorkingHardState::applyForWork (this=0x9e91578, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0x03ec33e3 in ThreadWeaver::WeaverImpl::applyForWork (this=0xa740770, th=0xa746b90, previous=0x0) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0x03ec5d19 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9e91578, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0x03ec33e3 in ThreadWeaver::WeaverImpl::applyForWork (this=0xa740770, th=0xa746b90, previous=0x0) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0x03ec3cce in ThreadWeaver::ThreadRunHelper::run (this=0xb229b2c0, parent=0xa740770, th=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/Thread.cpp:87
#12 0x03ec430b in ThreadWeaver::Thread::run (this=0xa746b90) at /usr/src/debug/kdelibs-4.1.72/threadweaver/Weaver/Thread.cpp:142
#13 0x0017c0be in QThreadPrivate::start (arg=0xa746b90) at thread/qthread_unix.cpp:185
#14 0x0035c51f in start_thread () from /lib/libpthread.so.0
#15 0x011f902e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb80969a0 (LWP 19478)):
[KCrash Handler]
#6  0x03ce7015 in KDevelop::DUChainPrivate::doMoreCleanup (this=0xa0a3c98, retries=0, needLockRepository=true) at /home/lorenzo/devel/cpp/kdevplatform/language/duchain/duchain.cpp:505
#7  0x03ccfc0e in KDevelop::DUChain::aboutToQuit (this=0xa0a35f8) at /home/lorenzo/devel/cpp/kdevplatform/language/duchain/duchain.cpp:1193
#8  0x03ccfde1 in KDevelop::DUChain::qt_metacall (this=0xa0a35f8, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf9c5e28) at /home/lorenzo/devel/cpp/kdevplatform/build/language/duchain.moc:156
#9  0x00281740 in QMetaObject::activate (sender=0xbf9c5f54, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#10 0x002824c2 in QMetaObject::activate (sender=0xbf9c5f54, m=0x353ba4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#11 0x002bbf77 in QCoreApplication::aboutToQuit (this=0xbf9c5f54) at .moc/release-shared/moc_qcoreapplication.cpp:123
#12 0x0026da77 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:849
#13 0x08e81e27 in QApplication::exec () at kernel/qapplication.cpp:3331
#14 0x0804e65c in main (argc=7817872, argv=0x9e22fa0) at /home/lorenzo/devel/cpp/kdevelop/src/main.cpp:194

=== Debug output ===
The debug output is attached to this report (complete output)
Comment 1 Lorenzo Villani 2008-11-13 12:10:27 UTC
Created attachment 28533 [details]
Debug output
Comment 2 Andreas Pakulat 2008-11-13 12:41:08 UTC
yeah, crashes on close are happening still quite a bit. Though this one shouldn't cause any real problems as shutting down DUChain is the absolutely last thing thats done
Comment 3 Lorenzo Villani 2009-01-25 17:49:59 UTC
Kdev4 seems to not crash anymore on close (on my system at least). I'm closing this bug since crashes like this may or may not happen (and the codebase is moving quickly).