Bug 241036 - Crash when switching sessions
Summary: Crash when switching sessions
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: language (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 1.0.1
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2010-06-07 19:43 UTC by Dima Ryazanov
Modified: 2018-10-21 04:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2010-06-07 19:43:55 UTC
Application: kdevelop (4.0.0 (using KDevPlatform 1.0.0))
KDE Platform Version: 4.4.2 (KDE 4.4.2) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-21-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
I switched to a different session. The old KDevelop window disappeared, the new one launched, and soon afterwards, the old one crashed. The new KDevelop instance was working fine.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
[Current thread is 1 (Thread 0x7fe760a4c760 (LWP 27666))]

Thread 4 (Thread 0x7fe749316710 (LWP 27668)):
[KCrash Handler]
#5  0x00007fe759f92138 in KDevelop::DUContext::isAnonymous (this=0x5a68ec0) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:559
#6  0x00007fe759fbde20 in KDevelop::Declaration::clearOwnIndex (this=0x5a75730) at /home/dima/src/kdevplatform-1.0.0/language/duchain/declaration.cpp:423
#7  0x00007fe759fc1e98 in ~Declaration (this=0x5a75730, __in_chrg=<value optimized out>) at /home/dima/src/kdevplatform-1.0.0/language/duchain/declaration.cpp:181
#8  0x00007fe737d3ac9f in ~SpecialTemplateDeclaration (this=0x5a75730, __in_chrg=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/languages/cpp/cppduchain/templatedeclaration.h:239
#9  0x00007fe759f9858b in KDevelop::DUContext::deleteLocalDeclarations (this=0x5a67490) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:1159
#10 0x00007fe759f9e7b7 in ~DUContext (this=0x5a67490, __in_chrg=<value optimized out>) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:619
#11 0x00007fe737d1438c in ~CppDUContext (this=0x5a67490, __in_chrg=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/languages/cpp/cppduchain/cppducontext.h:702
#12 0x00007fe759f9d947 in KDevelop::DUContext::deleteChildContextsRecursively (this=0x5a6c080) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:1176
#13 0x00007fe759f9e78f in ~DUContext (this=0x5a6c080, __in_chrg=<value optimized out>) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:612
#14 0x00007fe737d1438c in ~CppDUContext (this=0x5a6c080, __in_chrg=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/languages/cpp/cppduchain/cppducontext.h:702
#15 0x00007fe759f9d947 in KDevelop::DUContext::deleteChildContextsRecursively (this=0x5a67330) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:1176
#16 0x00007fe759f9e78f in ~DUContext (this=0x5a67330, __in_chrg=<value optimized out>) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:612
#17 0x00007fe737d1438c in ~CppDUContext (this=0x5a67330, __in_chrg=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/languages/cpp/cppduchain/cppducontext.h:702
#18 0x00007fe759f9d947 in KDevelop::DUContext::deleteChildContextsRecursively (this=0x5a677e0) at /home/dima/src/kdevplatform-1.0.0/language/duchain/ducontext.cpp:1176
#19 0x00007fe759fac125 in ~TopDUContext (this=0x5a677e0, __in_chrg=<value optimized out>) at /home/dima/src/kdevplatform-1.0.0/language/duchain/topducontext.cpp:785
#20 0x00007fe737d131b2 in ~CppDUContext (this=0x5a677e0, __in_chrg=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/languages/cpp/cppduchain/cppducontext.h:702
#21 0x00007fe759faa753 in KDevelop::TopDUContext::deleteSelf (this=0x589fc90) at /home/dima/src/kdevplatform-1.0.0/language/duchain/topducontext.cpp:798
#22 0x00007fe759f8e6e4 in KDevelop::DUChainPrivate::removeDocumentChainFromMemory (this=0x1c33c50, context=0x5a677e0) at /home/dima/src/kdevplatform-1.0.0/language/duchain/duchain.cpp:414
#23 0x00007fe759f8f2fc in KDevelop::DUChainPrivate::doMoreCleanup (this=0x1c33c50, retries=<value optimized out>, needLockRepository=<value optimized out>)
    at /home/dima/src/kdevplatform-1.0.0/language/duchain/duchain.cpp:811
#24 0x00007fe759f90114 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x1c2e5b0) at /home/dima/src/kdevplatform-1.0.0/language/duchain/duchain.cpp:294
#25 0x00007fe75d358775 in QThreadPrivate::start (arg=0x1c2e5b0) at thread/qthread_unix.cpp:248
#26 0x00007fe75d0c89ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#27 0x00007fe75b7906cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#28 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fe73a833710 (LWP 27676)):
#0  0x00007fe756c3b49c in g_main_context_poll (context=0x29101b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2903
#1  g_main_context_iterate (context=0x29101b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2586
#2  0x00007fe756c3b8fc in IA__g_main_context_iteration (context=0x29101b0, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#3  0x00007fe75d476566 in QEventDispatcherGlib::processEvents (this=0x290fc60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007fe75d44b992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fe75d44bd6c in QEventLoop::exec (this=0x7fe73a832db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fe75d355d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007fe75d42c178 in QInotifyFileSystemWatcherEngine::run (this=0x290f090) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fe75d358775 in QThreadPrivate::start (arg=0x290f090) at thread/qthread_unix.cpp:248
#9  0x00007fe75d0c89ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fe75b7906cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe73116a710 (LWP 27699)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe75ab522a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fe75ae30220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007fe75ab522e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fe75ae3e2ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007fe75d0c89ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fe75b7906cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe760a4c760 (LWP 27666)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe75d357ea3 in QMutexPrivate::wait (this=0x1975840, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fe75d3539e5 in QMutex::lock (this=0x7fe75a2f8870) at thread/qmutex.cpp:167
#3  0x00007fe759f78847 in QMutexLocker::relock (this=0x19a4e00) at /usr/include/qt4/QtCore/qmutex.h:120
#4  QMutexLocker (this=0x19a4e00) at /usr/include/qt4/QtCore/qmutex.h:102
#5  KDevelop::DUChain::aboutToQuit (this=0x19a4e00) at /home/dima/src/kdevplatform-1.0.0/language/duchain/duchain.cpp:1605
#6  0x00007fe759f78fa6 in KDevelop::DUChain::qt_metacall (this=0x19a4e00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff111c1240)
    at /home/dima/src/kdevplatform-1.0.0/build/language/duchain.moc:170
#7  0x00007fe75d45fe3f in QMetaObject::activate (sender=0x7fff111c1460, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#8  0x00007fe75d44fad3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:986
#9  0x00000000004089bf in main (argc=<value optimized out>, argv=<value optimized out>) at /home/dima/src/kdevelop-4.0.0/app/main_internal.cpp:232

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-06-07 21:16:10 UTC
Is this reproduceable? If so please provide a valgrind log by running KDEV_SESSION=blah valgrind --track-origins=yes kdevelop.bin
Comment 2 Andrew Crouthamel 2018-09-20 22:16:05 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 3 Andrew Crouthamel 2018-10-21 04:43:45 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!