Bug 139961

Summary: Crash on Kdevelop start with reloading a project - somewhere around KFileTreeBranch::parentKFTVItem()
Product: [Applications] kdevelop Reporter: Achim Spangler <Achim.Spangler>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Achim Spangler 2007-01-12 12:19:42 UTC
Version:           Self compiled from SVN of 12.01.2007 of 3.4-branch (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.1 
OS:                Linux

Sometimes KDevelop-3.4-RC2 (from SVN as of 12.01.2007) crashes during start, when KDevelop has to reload a project.

The rpoject load was nearly finished, when the crash occured, so that only a few plugins had to be initialized. The core-dump indicates to me, that some init work of KFileTreeBranch::parentKFTVItem() is not robust against some problems (e.g. file tree can't be configured identically to last session, as a directory is missing now or something like that).

Strange:
If I restart KDevelop immediately again, it loads the same project correctly again.

==>>
Maybe there is a very special race-condition, that is not properly handled somewhere around  KFileTreeBranch::parentKFTVItem().

Relevant Part of the KCrash log:
[KCrash handler]
#6  0xb679a128 in QShared::ref () from /usr/lib/libqt-mt.so.3
#7  0xb6b8c707 in QString::operator= () from /usr/lib/libqt-mt.so.3
#8  0xb6edca66 in KURL::operator= () from /usr/lib/libkdecore.so.4
#9  0xb6f19ac7 in KURL::KURL () from /usr/lib/libkdecore.so.4
#10 0xb75c708b in KFileTreeBranch::parentKFTVItem () from /usr/lib/libkio.so.4
#11 0xb75e316a in KFileTreeBranch::addItems () from /usr/lib/libkio.so.4
#12 0xb75e36cc in KFileTreeBranch::qt_invoke () from /usr/lib/libkio.so.4
#13 0xb6871957 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#14 0xb75091c4 in KDirLister::newItems () from /usr/lib/libkio.so.4
#15 0xb750924b in KDirLister::emitItems () from /usr/lib/libkio.so.4
#16 0xb7568b31 in KDirListerCache::listDir () from /usr/lib/libkio.so.4
#17 0xb75695b5 in KDirLister::openURL () from /usr/lib/libkio.so.4
#18 0xb75e2dbf in KFileTreeBranch::populate () from /usr/lib/libkio.so.4
#19 0xb75e5e35 in KFileTreeView::slotExpanded () from /usr/lib/libkio.so.4
#20 0xb75e60ef in KFileTreeView::qt_invoke () from /usr/lib/libkio.so.4
#21 0xb52a7df3 in FileTreeWidget::qt_invoke ()
   from /usr/lib/kde3/libkdevfileview.so
#22 0xb6871957 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#23 0xb6c14ecb in QListView::expanded () from /usr/lib/libqt-mt.so.3
#24 0xb697a1d3 in QListViewItem::setOpen () from /usr/lib/libqt-mt.so.3
#25 0xb52a7725 in FileTreeWidget::openDirectory ()
   from /usr/lib/kde3/libkdevfileview.so
#26 0xb52a93b9 in PartWidget::showProjectFiles ()
   from /usr/lib/kde3/libkdevfileview.so
#27 0xb52a3df1 in FileViewPart::init () from /usr/lib/kde3/libkdevfileview.so
#28 0xb52a3ebf in FileViewPart::qt_invoke ()
   from /usr/lib/kde3/libkdevfileview.so
#29 0xb6871957 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#30 0xb6bfdf44 in QSignal::signal () from /usr/lib/libqt-mt.so.3

###
My system is an update Kubuntu Edgy (10/2006) with KDE 3.5.5 and KDevelop compiled from SVN.
I have nearly all plugins activated (NOT: doxygen, package).
I do NOT know, how to reproduce this crash in an easy way - so I hope that the code of the listed functions provides enough information on possible race conditions.

Hope this helps, to find a safer race condition guard,
Achim
Comment 1 Andreas Pakulat 2007-01-12 14:30:17 UTC
This is a duplicate, its known and there's no solution.

*** This bug has been marked as a duplicate of 111900 ***