[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 302760] New: KDevelop crashes on startup when recovering document
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2012-06-29 18:19:46
Message-ID: bug-302760-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 302760
          Severity: crash
           Version: 4.3.1
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: KDevelop crashes on startup when recovering document
    Classification: Unclassified
                OS: Linux
          Reporter: mw_triad@users.sourceforge.net
          Hardware: Fedora RPMs
            Status: NEW
         Component: general
           Product: kdevelop

Application: kdevelop (4.3.1)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.2
Operating System: Linux 3.4.3-1.fc17.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Started KDevelop, attempted to recover changes made from previous crash.

I seem to have gotten KDevelop into a situation where I can reliably reproduce
this crash. Unfortunately, the relevant files are not something I am at liberty
to share AFAIK. However, I may be able to help with diagnostics if someone can
work with me...

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82    T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f4829a8e880 (LWP 15064))]

Thread 8 (Thread 0x7f48144ae700 (LWP 15065)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x000000389887ba47 in wait (time=1000, this=0x1cdcf40) at
thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1d08210, time=1000) at
thread/qwaitcondition_unix.cpp:158
#3  0x0000003ba08b1c3b in KDevelop::DUChainPrivate::CleanupThread::run
(this=0x1d081f0) at
/usr/src/debug/kdevplatform-1.3.1/language/duchain/duchain.cpp:282
#4  0x000000389887b5eb in QThreadPrivate::start (arg=0x1d081f0) at
thread/qthread_unix.cpp:307
#5  0x00000030ff607d14 in start_thread (arg=0x7f48144ae700) at
pthread_create.c:309
#6  0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7f47fe379700 (LWP 15083)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x00000038a5f84ac7 in QTWTF::TCMalloc_PageHeap::scavengerThread
(this=0x38a62919a0) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00000038a5f84af9 in QTWTF::TCMalloc_PageHeap::runScavengerThread
(context=<optimized out>) at
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00000030ff607d14 in start_thread (arg=0x7f47fe379700) at
pthread_create.c:309
#4  0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7f47fcb35700 (LWP 15084)):
#0  0x00000030ffa04102 in __GI_clock_gettime (clock_id=1, tp=0x7f47fcb34aa0) at
../sysdeps/unix/clock_gettime.c:116
#1  0x00000038988d14a4 in do_gettime (frac=0x7f47fcb34a88, sec=0x7f47fcb34a80)
at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00000038989a4d0d in QTimerInfoList::updateCurrentTime
(this=this@entry=0x7f47f8002860) at kernel/qeventdispatcher_unix.cpp:343
#4  0x00000038989a5053 in QTimerInfoList::timerWait (this=0x7f47f8002860,
tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0x00000038989a3bcc in timerSourcePrepareHelper (src=<optimized out>,
timeout=0x7f47fcb34b7c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00000038989a3c75 in timerSourcePrepare (source=<optimized out>,
timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x0000003bfc8471ef in g_main_context_prepare () from
/lib64/libglib-2.0.so.0
#8  0x0000003bfc8478db in ?? () from /lib64/libglib-2.0.so.0
#9  0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#10 0x00000038989a4506 in QEventDispatcherGlib::processEvents
(this=0x7f47f80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7f47fcb34d20, flags=...) at kernel/qeventloop.cpp:149
#12 0x00000038989753c8 in QEventLoop::exec (this=0x7f47fcb34d20, flags=...) at
kernel/qeventloop.cpp:204
#13 0x0000003898878650 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:501
#14 0x000000389887b5eb in QThreadPrivate::start (arg=0x4279ce0) at
thread/qthread_unix.cpp:307
#15 0x00000030ff607d14 in start_thread (arg=0x7f47fcb35700) at
pthread_create.c:309
#16 0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f47f7fff700 (LWP 15085)):
#0  0x00000030feae8eef in __GI___poll (fds=<optimized out>, nfds=<optimized
out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003bfc8479b4 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#3  0x00000038989a4506 in QEventDispatcherGlib::processEvents
(this=0x7f47f00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7f47f7ffed20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000038989753c8 in QEventLoop::exec (this=0x7f47f7ffed20, flags=...) at
kernel/qeventloop.cpp:204
#6  0x0000003898878650 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:501
#7  0x000000389887b5eb in QThreadPrivate::start (arg=0x4279160) at
thread/qthread_unix.cpp:307
#8  0x00000030ff607d14 in start_thread (arg=0x7f47f7fff700) at
pthread_create.c:309
#9  0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f47effff700 (LWP 15100)):
#0  0x00000030feae8eef in __GI___poll (fds=<optimized out>, nfds=<optimized
out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003bfc8479b4 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#3  0x00000038989a4506 in QEventDispatcherGlib::processEvents
(this=0x7f47e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7f47efffecf0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000038989753c8 in QEventLoop::exec (this=0x7f47efffecf0, flags=...) at
kernel/qeventloop.cpp:204
#6  0x0000003898878650 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:501
#7  0x0000003898955b4f in QInotifyFileSystemWatcherEngine::run (this=0x685b8e0)
at io/qfilesystemwatcher_inotify.cpp:248
#8  0x000000389887b5eb in QThreadPrivate::start (arg=0x685b8e0) at
thread/qthread_unix.cpp:307
#9  0x00000030ff607d14 in start_thread (arg=0x7f47effff700) at
pthread_create.c:309
#10 0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f47ee3e7700 (LWP 15272)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x0000003ba361677d in ?? () from /lib64/libQtWebKit.so.4
#2  0x0000003ba3616889 in ?? () from /lib64/libQtWebKit.so.4
#3  0x00000030ff607d14 in start_thread (arg=0x7f47ee3e7700) at
pthread_create.c:309
#4  0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f47eebe8700 (LWP 15275)):
#0  0x00000030feae8eef in __GI___poll (fds=<optimized out>, nfds=<optimized
out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003bfc8479b4 in ?? () from /lib64/libglib-2.0.so.0
#2  0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#3  0x00000038989a4506 in QEventDispatcherGlib::processEvents
(this=0x7f47d8454320, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7f47eebe7d20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000038989753c8 in QEventLoop::exec (this=0x7f47eebe7d20, flags=...) at
kernel/qeventloop.cpp:204
#6  0x0000003898878650 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:501
#7  0x000000389887b5eb in QThreadPrivate::start (arg=0x6ae89f0) at
thread/qthread_unix.cpp:307
#8  0x00000030ff607d14 in start_thread (arg=0x7f47eebe8700) at
pthread_create.c:309
#9  0x00000030feaf199d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f4829a8e880 (LWP 15064)):
[KCrash Handler]
#6  0x00007f481c4ac8eb in Kate::TextBuffer::rangesForLine (this=<optimized
out>, line=61, view=0x669f900, rangesWithAttributeOnly=true) at
/usr/src/debug/kate-4.8.3/part/buffer/katetextbuffer.cpp:820
#7  0x00007f481c53c061 in KateRenderer::decorationsForLine
(this=this@entry=0x669fe00, textLine=..., line=61,
selectionsOnly=selectionsOnly@entry=false,
completionHighlight=completionHighlight@entry=0x0,
completionSelected=completionSelected@entry=false) at
/usr/src/debug/kate-4.8.3/part/render/katerenderer.cpp:330
#8  0x00007f481c53d3f9 in KateRenderer::layoutLine (this=0x669fe00,
lineLayout=..., maxwidth=1346, cacheLayout=<optimized out>) at
/usr/src/debug/kate-4.8.3/part/render/katerenderer.cpp:883
#9  0x00007f481c541990 in KateLayoutCache::line (this=this@entry=0x66a0410,
realLine=realLine@entry=61, virtualLine=virtualLine@entry=61) at
/usr/src/debug/kate-4.8.3/part/render/katelayoutcache.cpp:299
#10 0x00007f481c54298c in KateLayoutCache::updateViewCache (this=0x66a0410,
startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized
out>) at /usr/src/debug/kate-4.8.3/part/render/katelayoutcache.cpp:270
#11 0x00007f481c58b929 in KateViewInternal::tagLines
(this=this@entry=0x669ff80, start=..., end=...,
realCursors=realCursors@entry=true) at
/usr/src/debug/kate-4.8.3/part/view/kateviewinternal.cpp:1978
#12 0x00007f481c58bd8d in KateViewInternal::tagLines (this=0x669ff80, start=56,
end=<optimized out>, realLines=true) at
/usr/src/debug/kate-4.8.3/part/view/kateviewinternal.cpp:1948
#13 0x00007f481c4ffaa2 in KateDocument::tagLines (this=<optimized out>,
start=56, end=125) at
/usr/src/debug/kate-4.8.3/part/document/katedocument.cpp:3615
#14 0x00007f481c50c156 in qt_static_metacall (_a=<optimized out>,
_id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at
/usr/src/debug/kate-4.8.3/x86_64-redhat-linux-gnu/part/katedocument.moc:280
#15 KateDocument::qt_static_metacall (_o=0x6ec7860, _c=<optimized out>,
_id=<optimized out>, _a=0x7fff9842afa0) at
/usr/src/debug/kate-4.8.3/x86_64-redhat-linux-gnu/part/katedocument.moc:204
#16 0x000000389898cb9f in QMetaObject::activate (sender=0x6edb160, m=<optimized
out>, local_signal_index=<optimized out>, argv=0x7fff9842afa0) at
kernel/qobject.cpp:3547
#17 0x00007f481c5169af in KateBuffer::tagLines (this=this@entry=0x6edb160,
_t1=_t1@entry=56, _t2=_t2@entry=125) at
/usr/src/debug/kate-4.8.3/x86_64-redhat-linux-gnu/part/katebuffer.moc:111
#18 0x00007f481c517da7 in KateBuffer::doHighlight (this=<optimized out>,
startLine=56, endLine=61, invalidate=true) at
/usr/src/debug/kate-4.8.3/part/document/katebuffer.cpp:736
#19 0x00007f481c500d1c in editEnd (this=0x6ec7860) at
/usr/src/debug/kate-4.8.3/part/document/katedocument.cpp:854
#20 KateDocument::editEnd (this=0x6ec7860) at
/usr/src/debug/kate-4.8.3/part/document/katedocument.cpp:835
#21 0x00007f481c620f54 in Kate::SwapFile::recover (this=this@entry=0x75ccf70,
stream=...) at /usr/src/debug/kate-4.8.3/part/swapfile/kateswapfile.cpp:212
#22 0x00007f481c6213c5 in Kate::SwapFile::recover (this=0x75ccf70) at
/usr/src/debug/kate-4.8.3/part/swapfile/kateswapfile.cpp:170
#23 0x0000003ba4aab48f in KDevelop::SessionControllerPrivate::performRecovery
(this=this@entry=0x8c6f30) at
/usr/src/debug/kdevplatform-1.3.1/shell/sessioncontroller.cpp:422
#24 0x0000003ba4aa9335 in lateInitialization (this=0x8c6f30) at
/usr/src/debug/kdevplatform-1.3.1/shell/sessioncontroller.cpp:325
#25 KDevelop::SessionControllerPrivate::qt_static_metacall (_o=0x8c6f30,
_c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at
/usr/src/debug/kdevplatform-1.3.1/x86_64-redhat-linux-gnu/shell/sessioncontroller.moc:55
#26 0x000000389898acee in QObject::event (this=0x8c6f30, e=<optimized out>) at
kernel/qobject.cpp:1195
#27 0x000000389a1ca37c in QApplicationPrivate::notify_helper
(this=this@entry=0x707e70, receiver=receiver@entry=0x8c6f30,
e=e@entry=0x6ac61e0) at kernel/qapplication.cpp:4551
#28 0x000000389a1ce7fa in QApplication::notify (this=0x7fff9842d320,
receiver=0x8c6f30, e=0x6ac61e0) at kernel/qapplication.cpp:4412
#29 0x0000003b9d845a56 in KApplication::notify (this=0x7fff9842d320,
receiver=0x8c6f30, event=0x6ac61e0) at
/usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#30 0x00000038989763ee in QCoreApplication::notifyInternal
(this=0x7fff9842d320, receiver=receiver@entry=0x8c6f30,
event=event@entry=0x6ac61e0) at kernel/qcoreapplication.cpp:915
#31 0x0000003898979ea1 in sendEvent (event=0x6ac61e0, receiver=0x8c6f30) at
kernel/qcoreapplication.h:231
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x6cd5a0) at kernel/qcoreapplication.cpp:1539
#33 0x00000038989a4353 in sendPostedEvents () at kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=0x6fc0d0) at
kernel/qeventdispatcher_glib.cpp:279
#35 0x0000003bfc8476e5 in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#36 0x0000003bfc847a18 in ?? () from /lib64/libglib-2.0.so.0
#37 0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#38 0x00000038989a44e6 in QEventDispatcherGlib::processEvents (this=0x6ff7a0,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0x000000389a26a2ee in QGuiEventDispatcherGlib::processEvents
(this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#40 0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7fff9842be40, flags=...) at kernel/qeventloop.cpp:149
#41 0x00000038989753c8 in QEventLoop::exec (this=0x7fff9842be40, flags=...) at
kernel/qeventloop.cpp:204
#42 0x0000003b9cd33463 in KJob::exec (this=0x6b0f740) at
/usr/src/debug/kdelibs-4.8.3/kdecore/jobs/kjob.cpp:210
#43 0x0000003ba4a83795 in KDevelop::ProjectPrivate::initProjectFiles
(this=0x6b7d590) at /usr/src/debug/kdevplatform-1.3.1/shell/project.cpp:272
#44 0x0000003ba4a8217c in KDevelop::Project::open (this=0x6b33850,
projectFileUrl_=...) at /usr/src/debug/kdevplatform-1.3.1/shell/project.cpp:510
#45 0x0000003ba4a7e0dd in KDevelop::ProjectControllerPrivate::importProject
(this=0xd4de20, url_=...) at
/usr/src/debug/kdevplatform-1.3.1/shell/projectcontroller.cpp:270
#46 0x0000003ba4a7c161 in KDevelop::ProjectController::openProject
(this=0xc627c0, projectFile=...) at
/usr/src/debug/kdevplatform-1.3.1/shell/projectcontroller.cpp:683
#47 0x0000003ba4a7a336 in KDevelop::ProjectController::openProjects
(this=0xc627c0, projects=...) at
/usr/src/debug/kdevplatform-1.3.1/shell/projectcontroller.cpp:547
#48 0x0000003ba4a7bc19 in qt_static_metacall (_a=<optimized out>,
_id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at
/usr/src/debug/kdevplatform-1.3.1/x86_64-redhat-linux-gnu/shell/projectcontroller.moc:173
#49 KDevelop::ProjectController::qt_static_metacall (_o=0xc627c0, _c=<optimized
out>, _id=<optimized out>, _a=<optimized out>) at
/usr/src/debug/kdevplatform-1.3.1/x86_64-redhat-linux-gnu/shell/projectcontroller.moc:157
#50 0x000000389898acee in QObject::event (this=0xc627c0, e=<optimized out>) at
kernel/qobject.cpp:1195
#51 0x000000389a1ca37c in QApplicationPrivate::notify_helper
(this=this@entry=0x707e70, receiver=receiver@entry=0xc627c0,
e=e@entry=0x1d07560) at kernel/qapplication.cpp:4551
#52 0x000000389a1ce7fa in QApplication::notify (this=0x7fff9842d320,
receiver=0xc627c0, e=0x1d07560) at kernel/qapplication.cpp:4412
#53 0x0000003b9d845a56 in KApplication::notify (this=0x7fff9842d320,
receiver=0xc627c0, event=0x1d07560) at
/usr/src/debug/kdelibs-4.8.3/kdeui/kernel/kapplication.cpp:311
#54 0x00000038989763ee in QCoreApplication::notifyInternal
(this=0x7fff9842d320, receiver=receiver@entry=0xc627c0,
event=event@entry=0x1d07560) at kernel/qcoreapplication.cpp:915
#55 0x0000003898979ea1 in sendEvent (event=0x1d07560, receiver=0xc627c0) at
kernel/qcoreapplication.h:231
#56 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x6cd5a0) at kernel/qcoreapplication.cpp:1539
#57 0x00000038989a4353 in sendPostedEvents () at kernel/qcoreapplication.h:236
#58 postEventSourceDispatch (s=0x6fc0d0) at
kernel/qeventdispatcher_glib.cpp:279
#59 0x0000003bfc8476e5 in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#60 0x0000003bfc847a18 in ?? () from /lib64/libglib-2.0.so.0
#61 0x0000003bfc847ad4 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#62 0x00000038989a44e6 in QEventDispatcherGlib::processEvents (this=0x6ff7a0,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#63 0x000000389a26a2ee in QGuiEventDispatcherGlib::processEvents
(this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#64 0x000000389897513f in QEventLoop::processEvents
(this=this@entry=0x7fff9842cdf0, flags=...) at kernel/qeventloop.cpp:149
#65 0x00000038989753c8 in QEventLoop::exec (this=0x7fff9842cdf0, flags=...) at
kernel/qeventloop.cpp:204
#66 0x000000389897a1b8 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1187
#67 0x0000000000409798 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/kdevelop-4.3.1/app/main.cpp:479

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

Possible duplicates by query: bug 302540, bug 298967, bug 281714.

Reported using DrKonqi

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic