https://bugs.kde.org/show_bug.cgi?id=357355

            Bug ID: 357355
           Summary: Crash on old session remove
           Product: kdevelop
           Version: 4.7.1
          Platform: Debian unstable
                OS: Linux
            Status: UNCONFIRMED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: rasas...@gmail.com

Application: kdevelop (4.7.1)
KDE Platform Version: 4.14.14
Qt Version: 4.8.7
Operating System: Linux 4.3.0-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:

I opened kdevelop after long time without using it. I have session holding only
one old project. I started a new session, after the session was opened, I went
back to the old session and remove it from the session menu. kdevelop crashed.

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

Thread 7 (Thread 0x7f8d70fed700 (LWP 5651)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8d88d18d2a in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f8d88d18d59 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f8d8762c284 in start_thread (arg=0x7f8d70fed700) at
pthread_create.c:333
#4  0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f8cef258700 (LWP 5654)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f8d8b808394 in QWaitConditionPrivate::wait (time=1000,
this=0x307edc0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x2e76468,
mutex=mutex@entry=0x2e76470, time=time@entry=1000) at
thread/qwaitcondition_unix.cpp:158
#3  0x00007f8d8a115f16 in KDevelop::DUChainPrivate::CleanupThread::run
(this=0x2e76450) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/duchain.cpp:283
#4  0x00007f8d8b807e4c in QThreadPrivate::start (arg=0x2e76450) at
thread/qthread_unix.cpp:352
#5  0x00007f8d8762c284 in start_thread (arg=0x7f8cef258700) at
pthread_create.c:333
#6  0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f8ce1d04700 (LWP 5655)):
#0  0x00007ffed2578caf in clock_gettime ()
#1  0x00007f8d8b16357d in __GI___clock_gettime (clock_id=clock_id@entry=1,
tp=tp@entry=0x7f8ce1d03a10) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f8d8b862795 in do_gettime (frac=<synthetic pointer>, sec=<synthetic
pointer>) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f8d8b949215 in QTimerInfoList::updateCurrentTime
(this=0x7f8cdc002ed0) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f8cdc002ed0, tm=...) at
kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f8d8b947adc in timerSourcePrepareHelper (src=<optimized out>,
timeout=0x7f8ce1d03ac4) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f8d84f9a75d in g_main_context_prepare () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f8d84f9b0fb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f8d84f9b2dc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f8d8b9483a6 in QEventDispatcherGlib::processEvents
(this=0x7f8cdc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#11 0x00007f8d8b9162e1 in QEventLoop::processEvents
(this=this@entry=0x7f8ce1d03c90, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f8d8b916655 in QEventLoop::exec (this=this@entry=0x7f8ce1d03c90,
flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f8d8b805559 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:538
#14 0x00007f8d8b807e4c in QThreadPrivate::start (arg=0x317e0e8) at
thread/qthread_unix.cpp:352
#15 0x00007f8d8762c284 in start_thread (arg=0x7f8ce1d04700) at
pthread_create.c:333
#16 0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f8cbebc6700 (LWP 5676)):
#0  0x00007f8d84f9ab2c in g_main_context_check () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8d84f9b170 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8d84f9b2dc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8d8b9483a6 in QEventDispatcherGlib::processEvents
(this=0x7f8cb8003080, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00007f8d8b9162e1 in QEventLoop::processEvents
(this=this@entry=0x7f8cbebc5c40, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8d8b916655 in QEventLoop::exec (this=this@entry=0x7f8cbebc5c40,
flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f8d8b805559 in QThread::exec (this=this@entry=0x40ff2b0) at
thread/qthread.cpp:538
#7  0x00007f8d8b8f6343 in QInotifyFileSystemWatcherEngine::run (this=0x40ff2b0)
at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f8d8b807e4c in QThreadPrivate::start (arg=0x40ff2b0) at
thread/qthread_unix.cpp:352
#9  0x00007f8d8762c284 in start_thread (arg=0x7f8cbebc6700) at
pthread_create.c:333
#10 0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f8cbf3c7700 (LWP 5684)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8d8b8083b6 in QWaitConditionPrivate::wait
(time=18446744073709551615, this=0x1371cc0) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1371b98, mutex=0x1371e40,
time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f8d815b063c in
ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1371b70,
th=0x33cdd10) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f8d815b3343 in ThreadWeaver::WorkingHardState::applyForWork
(this=0x1371ed0, th=0x33cdd10, previous=0x10b6b50) at
../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f8d815b1e9f in ThreadWeaver::Thread::run (this=0x33cdd10) at
../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007f8d8b807e4c in QThreadPrivate::start (arg=0x33cdd10) at
thread/qthread_unix.cpp:352
#7  0x00007f8d8762c284 in start_thread (arg=0x7f8cbf3c7700) at
pthread_create.c:333
#8  0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f8cca55d700 (LWP 5752)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f8d8b8083b6 in QWaitConditionPrivate::wait
(time=18446744073709551615, this=0x1371cc0) at
thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1371b98, mutex=0x1371e40,
time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f8d815b063c in
ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1371b70,
th=0x1002ae0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f8d815b3343 in ThreadWeaver::WorkingHardState::applyForWork
(this=0x1371ed0, th=0x1002ae0, previous=0x0) at
../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f8d815b335c in ThreadWeaver::WorkingHardState::applyForWork
(this=0x1371ed0, th=0x1002ae0, previous=0x4394f80) at
../../../threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f8d815b1e9f in ThreadWeaver::Thread::run (this=0x1002ae0) at
../../../threadweaver/Weaver/Thread.cpp:98
#7  0x00007f8d8b807e4c in QThreadPrivate::start (arg=0x1002ae0) at
thread/qthread_unix.cpp:352
#8  0x00007f8d8762c284 in start_thread (arg=0x7f8cca55d700) at
pthread_create.c:333
#9  0x00007f8d8b15674d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f8d8ea6c940 (LWP 5650)):
[KCrash Handler]
#6  KDevelop::TopDUContext::indexed (this=this@entry=0x280e3c0) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/topducontext.cpp:566
#7  0x00007f8d8a12fd6c in
KDevelop::TopDUContextLocalPrivate::removeImportedContextRecursion
(this=this@entry=0x7f8cb4112e50, traceNext=traceNext@entry=0x7f8cb4112ab0,
imported=0x280e3c0, distance=<optimized out>, rebuild=...) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/topducontext.cpp:351
#8  0x00007f8d8a12e7a6 in
KDevelop::TopDUContextLocalPrivate::removeImportedContextRecursively
(local=true, context=0x7f8cb4112ab0, this=0x7f8cb4112e50) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/topducontext.cpp:230
#9  KDevelop::TopDUContext::removeImportedParentContext (this=<optimized out>,
context=0x7f8cb4112ab0) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/topducontext.cpp:1084
#10 0x00007f8d8a1215b6 in KDevelop::DUContext::~DUContext (this=0x7f8cb4112ab0,
__in_chrg=<optimized out>) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/ducontext.cpp:483
#11 0x00007f8cd12b5863 in ?? () from /usr/lib/libkdev4pythonduchain.so
#12 0x00007f8d8a12ba77 in KDevelop::TopDUContext::deleteSelf (this=<optimized
out>) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/topducontext.cpp:623
#13 0x00007f8d8a112dcd in
KDevelop::DUChainPrivate::removeDocumentChainFromMemory (this=0x285f430,
context=context@entry=0x7f8cb4112ab0) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/duchain.cpp:409
#14 0x00007f8d8a102b0c in KDevelop::DUChain::removeDocumentChain
(this=<optimized out>, context=0x7f8cb4112ab0) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/duchain.cpp:1195
#15 0x00007f8d8a113392 in KDevelop::DUChainPrivate::cleanupTopContexts
(this=0x285f430) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/duchain.cpp:986
#16 0x00007f8d8a102cdf in KDevelop::DUChain::shutdown (this=0x2e76800) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/language/duchain/duchain.cpp:1570
#17 0x00007f8d8e6a6749 in KDevelop::Core::cleanup (this=this@entry=0x122e320)
at /build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/shell/core.cpp:416
#18 0x00007f8d8e6a6909 in KDevelop::Core::shutdown (this=0x122e320) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/shell/core.cpp:377
#19 0x00007f8d8e68fb0b in KDevelop::MainWindow::~MainWindow
(this=this@entry=0x12679f0, __in_chrg=<optimized out>, __vtt_parm=<optimized
out>) at /build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/shell/mainwindow.cpp:119
#20 0x00007f8d8e68fb69 in KDevelop::MainWindow::~MainWindow (this=0x12679f0,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/build/kdevplatform-Y8NEm6/kdevplatform-1.7.1/shell/mainwindow.cpp:123
#21 0x00007f8d8b931f28 in QObject::event (this=this@entry=0x12679f0,
e=e@entry=0x40078e0) at kernel/qobject.cpp:1203
#22 0x00007f8d8be9b61c in QWidget::event (this=this@entry=0x12679f0,
event=event@entry=0x40078e0) at kernel/qwidget.cpp:8859
#23 0x00007f8d8c27c513 in QMainWindow::event (this=this@entry=0x12679f0,
event=event@entry=0x40078e0) at widgets/qmainwindow.cpp:1478
#24 0x00007f8d8d40a4b1 in KMainWindow::event (this=this@entry=0x12679f0,
ev=ev@entry=0x40078e0) at ../../kdeui/widgets/kmainwindow.cpp:1126
#25 0x00007f8d8d447c99 in KXmlGuiWindow::event (this=0x12679f0, ev=0x40078e0)
at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#26 0x00007f8d8be448dc in QApplicationPrivate::notify_helper
(this=this@entry=0xbfb200, receiver=receiver@entry=0x12679f0,
e=e@entry=0x40078e0) at kernel/qapplication.cpp:4570
#27 0x00007f8d8be4b816 in QApplication::notify (this=this@entry=0x7ffed2573b70,
receiver=receiver@entry=0x12679f0, e=e@entry=0x40078e0) at
kernel/qapplication.cpp:4356
#28 0x00007f8d8d34271a in KApplication::notify (this=0x7ffed2573b70,
receiver=0x12679f0, event=0x40078e0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007f8d8b917a6d in QCoreApplication::notifyInternal
(this=0x7ffed2573b70, receiver=receiver@entry=0x12679f0,
event=event@entry=0x40078e0) at kernel/qcoreapplication.cpp:955
#30 0x00007f8d8b91b526 in QCoreApplication::sendEvent (event=0x40078e0,
receiver=0x12679f0) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0,
event_type=event_type@entry=0, data=0xb2b200) at
kernel/qcoreapplication.cpp:1579
#32 0x00007f8d8b91b803 in QCoreApplication::sendPostedEvents
(receiver=receiver@entry=0x0, event_type=event_type@entry=0) at
kernel/qcoreapplication.cpp:1472
#33 0x00007f8d8b948233 in QCoreApplication::sendPostedEvents () at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=0xbecb80) at
kernel/qeventdispatcher_glib.cpp:280
#35 0x00007f8d84f9afd7 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f8d84f9b230 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f8d84f9b2dc in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f8d8b948384 in QEventDispatcherGlib::processEvents (this=0xb2e4e0,
flags=...) at kernel/qeventdispatcher_glib.cpp:425
#39 0x00007f8d8beeea76 in QGuiEventDispatcherGlib::processEvents
(this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f8d8b9162e1 in QEventLoop::processEvents
(this=this@entry=0x7ffed25739d0, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f8d8b916655 in QEventLoop::exec (this=this@entry=0x7ffed25739d0,
flags=...) at kernel/qeventloop.cpp:204
#42 0x00007f8d8b91c629 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1227
#43 0x00000000004117f1 in ?? ()
#44 0x00007f8d8b08e870 in __libc_start_main (main=0x40a940, argc=1,
argv=0x7ffed2573cf8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffed2573ce8) at libc-start.c:291
#45 0x0000000000411ffe in _start ()

Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to