Bug 51531 - A crash and two bugs in the Classes view
Summary: A crash and two bugs in the Classes view
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
: 34763 51696 52393 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-05 15:44 UTC by András Manţia
Modified: 2003-01-07 04:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2002-12-05 15:44:39 UTC
Version:           cvs (using KDE Devel)
Installed from:    Compiled sources
Compiler:          g++ 2.95.3 
OS:          Linux

Hi, a crash and a bug in the Classes view.

The bug:
After manually editing a class method declaration
in the header file (like the return type of the method)
and save the file, the Classes view will show two more
times all the elements (methods/attributes) which are
below the edited line. So if you have an attribute "name",
you will see it 3 times after the first save, and 5 times
if you edit once more the class.

The crash (and a releated bug):

static KURL::List allFiles( const KURL& path, const QString &mask);

like methods (the "::List" is the important part) do not appear in 
the Classes view. More, if you try to
edit (e.g remove the ::List, but you can do anything) and save 
the header file, Gideon will crash with the attached backtrace. 
You can test it with the quanta/quanta/qextfileinfo.h (and .cpp)
from the kde cvs.

[New Thread 1024 (LWP 10044)]
[New Thread 2049 (LWP 10046)]
0x413e3079 in wait4 () from /lib/libc.so.6
#0  0x413e3079 in wait4 () from /lib/libc.so.6
#1  0x4145db98 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41297072 in waitpid () from /lib/libpthread.so.0
#3  0x40a0948b in KCrash::defaultCrashHandler ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#4  0x41294a74 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x40f85599 in QString::QString () from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x403d33a8 in ParsedItem::name (this=0x0)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/lib/sourceinfo/parseditem.h:130
#8  0x42031f36 in ClassTreeMethodItem::text (this=0x86aec78)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/classview/classtreebase.cpp:338
#9  0x40e01344 in QListViewItem::paintCell ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#10 0x40e03632 in QListView::drawContentsOffset ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0x40e2d8ce in QScrollView::viewportPaintEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#12 0x407ee878 in KListView::viewportPaintEvent ()
   from /opt/kde-cvs/lib/libkdeui.so.4
#13 0x40e2d53a in QScrollView::eventFilter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40e05e83 in QListView::eventFilter () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40d4fe68 in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x40d4fd61 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40d7e1b5 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40d01406 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x40d01206 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0x40993030 in KApplication::notify () from /opt/kde-cvs/lib/libkdecore.so.4
#21 0x40cdff7d in QWidget::repaint () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40e04e01 in QListView::updateContents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40ff0d09 in QListView::qt_invoke () from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x407f15de in KListView::qt_invoke () from /opt/kde-cvs/lib/libkdeui.so.4
#25 0x420335a1 in ClassTreeBase::qt_invoke (this=0x84d1638, _id=68, 
    _o=0xbfffe3d8) at classtreebase.moc:123
#26 0x4202e861 in ClassViewWidget::qt_invoke (this=0x84d1638, _id=68, 
    _o=0xbfffe3d8) at classviewwidget.moc:97
#27 0x40d51d54 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40d51c8e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40fdb584 in QTimer::timeout () from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40d6fedf in QTimer::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40d01406 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40d01206 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x40993030 in KApplication::notify () from /opt/kde-cvs/lib/libkdecore.so.4
#34 0x40ce5159 in QEventLoop::activateTimers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x40cc662d in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x40d1350c in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x40d03647 in QApplication::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x41f38d44 in CClassParser::parseToplevel (this=0x8218160)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/cppsupport/classparser.cpp:2413
#39 0x41f38e18 in CClassParser::parseFile (this=0x8218160, file=@0xbfffe824)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/cppsupport/classparser.cpp:2452
#40 0x41f38f92 in CClassParser::parse (this=0x8218160, file=@0xbfffe97c)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/cppsupport/classparser.cpp:2483
#41 0x41f2fb40 in CppSupportPart::maybeParse (this=0x85022d0, fileName=
      {static null = {static null = <same as static member of an already seen type>, d = 0x80a5868, static shared_null = 0x80a5868}, d = 0xbfffe97c, static shared_null = 0x80a5868}, store=0x8153ad0, parser=0x8218160)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/cppsupport/cppsupportpart.cpp:983
#42 0x41f2ba2c in CppSupportPart::savedFile (this=0x85022d0, 
    fileName=@0x88045e8)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/parts/cppsupport/cppsupportpart.cpp:465
#43 0x41f3101a in CppSupportPart::qt_invoke (this=0x85022d0, _id=5, 
    _o=0xbfffea44) at cppsupportpart.moc:154
#44 0x40d51df5 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x40d5206b in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#46 0x0808845f in KDevPartController::savedFile (this=0x817f8a8, 
    t0=@0xbfffeafc) at kdevpartcontroller.moc:91
#47 0x0806d999 in PartController::slotUploadFinished (this=0x817f8a8)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/src/partcontroller.cpp:275
#48 0x0806f4f9 in PartController::qt_invoke (this=0x817f8a8, _id=13, 
    _o=0xbfffebc8) at partcontroller.moc:115
#49 0x40d51df5 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#50 0x40d51c8e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x4042b61a in KParts::ReadOnlyPart::completed ()
   from /opt/kde-cvs/lib/libkparts.so.2
#52 0x40429dbc in KParts::ReadWritePart::saveToURL ()
   from /opt/kde-cvs/lib/libkparts.so.2
#53 0x4042b12c in KParts::ReadWritePart::save ()
   from /opt/kde-cvs/lib/libkparts.so.2
#54 0x421f7f58 in KateView::save () from /opt/kde-cvs/lib/kde3/libkatepart.so
#55 0x421f3423 in KateView::qt_invoke ()
   from /opt/kde-cvs/lib/kde3/libkatepart.so
#56 0x40d51d54 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#57 0x40d51c8e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#58 0x407ccfde in KAction::activated () from /opt/kde-cvs/lib/libkdeui.so.4
#59 0x407c804f in KAction::slotActivated () from /opt/kde-cvs/lib/libkdeui.so.4
#60 0x407c2e12 in KAction::qt_invoke () from /opt/kde-cvs/lib/libkdeui.so.4
#61 0x40d51d54 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#62 0x40d51c8e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#63 0x409fff39 in KAccelPrivate::menuItemActivated ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#64 0x409fd3a2 in KAccelPrivate::eventFilter ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#65 0x40d4fe68 in QObject::activate_filters ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#66 0x40d4fd61 in QObject::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#67 0x40d7e1b5 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#68 0x40e158fd in QMainWindow::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#69 0x40d01406 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#70 0x40d00d78 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#71 0x40993030 in KApplication::notify () from /opt/kde-cvs/lib/libkdecore.so.4
#72 0x409fade5 in KAccelEventHandler::x11Event ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#73 0x40996ca5 in KApplication::x11EventFilter ()
   from /opt/kde-cvs/lib/libkdecore.so.4
#74 0x40cb320c in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#75 0x40cc60da in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#76 0x40d131a0 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#77 0x40d13427 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#78 0x40d03746 in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#79 0x08065de3 in main (argc=7, argv=0xbffff704)
    at /home/andris/cvs-developement/head/kde-cvs/kdevelop/src/main.cpp:78
#80 0x413589ed in __libc_start_main () from /lib/libc.so.6
Comment 1 András Manţia 2002-12-05 15:59:23 UTC
PS: In order to crash, you must have the class "opened" in the Classes view. 
Comment 2 Caleb Tennis 2003-01-01 01:32:34 UTC
*** Bug 52393 has been marked as a duplicate of this bug. ***
Comment 3 Caleb Tennis 2003-01-01 01:33:11 UTC
*** Bug 51696 has been marked as a duplicate of this bug. ***
Comment 4 Caleb Tennis 2003-01-01 04:15:51 UTC
*** Bug 34763 has been marked as a duplicate of this bug. ***
Comment 5 Caleb Tennis 2003-01-02 00:53:05 UTC
I believe the crash has been fixed in CVS.  Still working on the classview 
bug. 
Comment 6 Caleb Tennis 2003-01-07 04:11:57 UTC
The crash has *finally* been fixed in CVS, as has the update bug...thanks to 
Harry Fernengel for digging this one out.  Will be released with Alpha3.