patch for crash of KDevelop-2.1 (was: Re: 2.1 Crashes sometimes on "Close All")

Falk Brettschneider gigafalk at yahoo.com
Fri Apr 19 15:03:07 BST 2002


Tarjei Knapstad wrote:

>Sometimes when having a lot of files open (>20) KDevelop 2.1 dies if I 
>choose Window -> Close All. KDevelop rapidly closes most of the windows, 
>but three or so tabs are left when the crash occurs (Childframe mode).
>
>I've attached a backtrace, not sure if it's any helpful. What's even worse
>is that I haven't found any way of reproducing the bug, it just happens on
>random occasion. Just opening a bunch of files and then Close All doesn't 
>cut it. 
>
>#2  0x40b671d8 in KCrash::defaultCrashHandler () from /usr/lib/libkdecore.so.3
>#3  <signal handler called>
>#4  0x082439b8 in CClassParser::parseToplevel ()
>#5  0x08243a57 in CClassParser::parseFile ()
>#6  0x08244875 in CClassParser::parse ()
>#7  0x081b2c39 in CClassView::refresh ()
>#8  0x080deee0 in CKDevelop::refreshClassViewByFileList ()
>#9  0x080a5e07 in DocViewMan::checkAndSaveFileOfCurrentEditView ()
>#10 0x080a4242 in DocViewMan::closeView ()
>
The attached patch fixes this crash of KDevelop-2.1. I simply block the 
classparser update which gets confused because of the demizing file.
Please, review, test and confirm to me.
If it's OK, I'll apply it to cvs for KDevelop-2.1.1

Ciao
F at lk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: docviewman.diff
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20020419/c42c0f6f/attachment.ksh>


More information about the KDevelop mailing list