Bug 234958

Summary: Crah when kdevelop tries open a file which is unaccessible.
Product: [Developer tools] kdevplatform Reporter: Tamás Gere <gt>
Component: shellAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: investigated, triaged
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tamás Gere 2010-04-21 10:47:00 UTC
Application: kdevelop (3.10.2 (using KDevPlatform 0.10.2))
KDE Platform Version: 4.4.2 (KDE 4.4.2) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-sabayon x86_64
Distribution: "Gentoo Base System release 2.0.1"

-- Information about the crash:
I closed kdevelop with a session where a file was opened by an FTP connection. This FTP conn. was accessible only thru one of my openvpn connection. So if i start kdevelop, it asks the FTP pasword (which i saved into wallet), but the ftp server isn't active due to non-active openvpn. KDevelop crashing this point. When i restore connection, and file is accessible, program starts properly.
Using r1116405. Gentoo.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Aborted
[Current thread is 1 (Thread 0x7f360a274760 (LWP 28633))]

Thread 5 (Thread 0x7f35f5787910 (LWP 28634)):
#0  0x00007f36068a924d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3606b341f2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f3603920d6d in KDevelop::DUChainPrivate::CleanupThread::run (this=0x126cbc0) at /usr/local/src/kdesdk4/kdevplatform/language/duchain/duchain.cpp:286
#3  0x00007f3606b332c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f36068a4624 in start_thread () from /lib/libpthread.so.0
#5  0x00007f3604fa656d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f35e3dd9910 (LWP 28635)):
#0  0x00007f3604f9d8a3 in poll () from /lib/libc.so.6
#1  0x00007f360053aeac in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f360053b1f0 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3606c500c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f3606c25532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f3606c2590c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f3606b308c9 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f3603a47741 in KDevelop::CompletionWorkerThread::run (this=0x1be0900) at /usr/local/src/kdesdk4/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#8  0x00007f3606b332c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f36068a4624 in start_thread () from /lib/libpthread.so.0
#10 0x00007f3604fa656d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f35e2430910 (LWP 28655)):
#0  0x00007f36068a8fc9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3606b3428b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f36086996f6 in ?? () from /usr/lib64/libthreadweaver.so.4
#3  0x00007f360869bdab in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f360869a25f in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f360869a6b8 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f3606b332c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f36068a4624 in start_thread () from /lib/libpthread.so.0
#8  0x00007f3604fa656d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f35e2c31910 (LWP 28656)):
#0  0x00007f36068a924d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3606b341f2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f3606b296d9 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f3606b332c5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f36068a4624 in start_thread () from /lib/libpthread.so.0
#5  0x00007f3604fa656d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f360a274760 (LWP 28633)):
[KCrash Handler]
#5  0x00007f3604f0b095 in raise () from /lib/libc.so.6
#6  0x00007f3604f0c4c0 in abort () from /lib/libc.so.6
#7  0x00007f3606b2b4a4 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f3606b2b652 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f3606b2b805 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f360971d479 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x10b2a70, doc=0x2d42ee0, range=..., activationParams=...)
    at /usr/local/src/kdesdk4/kdevplatform/shell/documentcontroller.cpp:303
#11 0x00007f360971d232 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x10b2a70, inputUrl=..., prefName=..., range=..., encoding=..., activationParams=...)
    at /usr/local/src/kdesdk4/kdevplatform/shell/documentcontroller.cpp:280
#12 0x00007f3609718ea8 in KDevelop::DocumentController::openDocument (this=0x10b29b0, inputUrl=..., range=..., activationParams=..., encoding=...)
    at /usr/local/src/kdesdk4/kdevplatform/shell/documentcontroller.cpp:548
#13 0x00007f3609a04b7f in KDevelop::IDocumentController::openDocument (this=0x10b29b0, url=..., cursor=..., activationParams=..., encoding=...)
    at /usr/local/src/kdesdk4/kdevplatform/interfaces/idocumentcontroller.cpp:33
#14 0x00007f36096d085a in KDevelop::WorkingSet::loadToArea (this=0x21321c0, area=0xffb670, areaIndex=0xffb210, group=<incomplete type>)
    at /usr/local/src/kdesdk4/kdevplatform/shell/workingsetcontroller.cpp:398
#15 0x00007f36096cfe96 in KDevelop::WorkingSet::loadToArea (this=0x21321c0, area=0xffb670, areaIndex=0xffb210, clear=false) at /usr/local/src/kdesdk4/kdevplatform/shell/workingsetcontroller.cpp:340
#16 0x00007f36096d301b in KDevelop::WorkingSet::changedWorkingSet (this=0x21321c0, area=0xffb670, from=..., to=...) at /usr/local/src/kdesdk4/kdevplatform/shell/workingsetcontroller.cpp:648
#17 0x00007f36096d7f33 in KDevelop::WorkingSet::qt_metacall (this=0x21321c0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x2133550)
    at /usr/local/src/kdesdk4/build/kdevplatform/shell/workingsetcontroller.moc:90
#18 0x00007f3606c36889 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#19 0x00007f3605ded91c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f3605df3efb in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f36073dc9a6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#22 0x000000000040489c in KDevelopApplication::notify (this=0x7fff3b970af0, receiver=0x21321c0, event=0x213af80) at /usr/local/src/kdesdk4/kdevelop/app/main_internal.cpp:87
#23 0x00007f3606c26c0c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007f3606c29387 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007f3606c50533 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#26 0x00007f360053770e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007f360053b0c8 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007f360053b1f0 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0x00007f3606c50073 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f3605e9bc6e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007f3606c25532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f3606c2590c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007f3606c2964b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#34 0x0000000000408fdd in main (argc=1, argv=0x7fff3b972138) at /usr/local/src/kdesdk4/kdevelop/app/main_internal.cpp:245

Possible duplicates by query: bug 234872, bug 232948, bug 231928, bug 231255, bug 230727.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-09-28 13:25:46 UTC
can you reproduce it? what do you see on the command line when starting kdevelop from there, something like this:

ASSERT: !documents.contains(url) || documents[url]==doc

?

If so, please explain me how I can reproduce it (I don't have any ftp with openvpn)...
Comment 2 Andrew Crouthamel 2018-09-20 22:01:06 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 05:00:06 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!