Bug 88245 - [testcase]crash when importing class with enum
Summary: [testcase]crash when importing class with enum
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Solaris Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 18:25 UTC by Martin Koller
Modified: 2004-08-28 21:42 UTC (History)
0 users

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 Martin Koller 2004-08-27 18:25:33 UTC
Version:           1.3.0 (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.2.3
OS:                Linux (i686) release 2.6.7

Using the latest 3.3 branch, umbrello crashes when importing the following class:

class Test
{
      enum { FIXLEN };
};

The bt is:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 18302)]
[KCrash handler]
#4  CppTree2Uml::parseEnumSpecifier (this=0xbfffe820, ast=0x8565a50)
    at memory:296
#5  0x081e9eca in TreeParser::parseTypeSpecifier (this=0xbfffe820, 
    typeSpec=0x8565a50) at tree_parser.cpp:172
#6  0x081de06c in CppTree2Uml::parseSimpleDeclaration (this=0xbfffe820, 
    ast=0x8544870) at cpptree2uml.cpp:159
#7  0x081e9c6c in TreeParser::parseDeclaration (this=0xbfffe820, 
    declaration=0x8565a50) at tree_parser.cpp:81
#8  0x081e9f44 in TreeParser::parseClassSpecifier (this=0xbfffe820, 
    classSpec=0x84f6f50) at qptrlist.h:174
#9  0x081decac in CppTree2Uml::parseClassSpecifier (this=0xbfffe820, 
    ast=0x84f6f50) at cpptree2uml.cpp:281
#10 0x081e9e92 in TreeParser::parseTypeSpecifier (this=0xbfffe820, 
    typeSpec=0x8565a50) at tree_parser.cpp:168
#11 0x081de06c in CppTree2Uml::parseSimpleDeclaration (this=0xbfffe820, 
    ast=0x85f5b90) at cpptree2uml.cpp:159
#12 0x081e9c6c in TreeParser::parseDeclaration (this=0xbfffe820, 
    declaration=0x8565a50) at tree_parser.cpp:81
#13 0x081e9b84 in TreeParser::parseTranslationUnit (this=0xbfffe820, 
    translationUnit=0x85f6cb8) at qptrlist.h:174
#14 0x081dd666 in CppTree2Uml::parseTranslationUnit (this=0xbfffe820, 
    ast=0x85f6cb8) at cpptree2uml.cpp:48
#15 0x08106cd8 in ClassImport::importCPP (this=0x841d8b8, headerFileList=
        {<QValueList<QString>> = {sh = 0x83dd770}, <No data fields>})
    at classimport.cpp:203
#16 0x08158c9e in UMLApp::slotImportClasses (this=0x83d66d0) at qshared.h:49
#17 0x08159cb0 in UMLApp::qt_invoke (this=0x83d66d0, _id=112, _o=0xbfffeae0)
    at uml.moc:271
#18 0x40d1932d in QObject::activate_signal (this=0x84025e0, clist=0x843ebf0, 
    o=0xbfffeae0) at kernel/qobject.cpp:2357
#19 0x40d191cc in QObject::activate_signal (this=0x84025e0, signal=2)
    at kernel/qobject.cpp:2326
#20 0x405886b6 in KAction::activated (this=0x84025e0) at qmetaobject.h:261
#21 0x40587c8c in KAction::slotActivated (this=0x84025e0) at kaction.cpp:1057
#22 0x40588870 in KAction::qt_invoke (this=0x84025e0, _id=14, _o=0xbfffebf0)
    at kaction.moc:181
#23 0x40d1932d in QObject::activate_signal (this=0x83fc8e8, clist=0x83fc970, 
    o=0xbfffebf0) at kernel/qobject.cpp:2357
#24 0x41070fd2 in QSignal::signal (this=0x83fc8e8, t0=@0x83fc910)
    at .moc/debug-shared-mt/moc_qsignal.cpp:100
#25 0x40d36577 in QSignal::activate (this=0x83fc8e8) at kernel/qsignal.cpp:212
#26 0x40e2df2a in QPopupMenu::mouseReleaseEvent (this=0x83fbdd0, e=0xbffff010)
    at widgets/qpopupmenu.cpp:1690
#27 0x40d5106b in QWidget::event (this=0x83fbdd0, e=0xbffff010)
    at kernel/qwidget.cpp:4673
#28 0x40cb665b in QApplication::internalNotify (this=0xbffff510, 
    receiver=0x83fbdd0, e=0xbffff010) at kernel/qapplication.cpp:2635
#29 0x40cb5e11 in QApplication::notify (this=0xbffff510, receiver=0x83fbdd0, 
    e=0xbffff010) at kernel/qapplication.cpp:2421
#30 0x407f3ebf in KApplication::notify (this=0xbffff510, receiver=0x83fbdd0, 
    event=0xbffff010) at kapplication.cpp:495
#31 0x40c4bf67 in QApplication::sendSpontaneousEvent (receiver=0x83fbdd0, 
    event=0xbffff010) at qapplication.h:494
#32 0x40c44d98 in QETWidget::translateMouseEvent (this=0x83fbdd0, 
    event=0xbffff3a0) at kernel/qapplication_x11.cpp:4230
#33 0x40c42c5d in QApplication::x11ProcessEvent (this=0xbffff510, 
    event=0xbffff3a0) at kernel/qapplication_x11.cpp:3439
#34 0x40c5d34a in QEventLoop::processEvents (this=0x8362d60, flags=4)
    at kernel/qeventloop_x11.cpp:192
#35 0x40cca94e in QEventLoop::enterLoop (this=0x8362d60)
    at kernel/qeventloop.cpp:198
#36 0x40cca86a in QEventLoop::exec (this=0x8362d60)
    at kernel/qeventloop.cpp:145
#37 0x40cb67df in QApplication::exec (this=0xbffff510)
    at kernel/qapplication.cpp:2758
#38 0x0813979f in main (argc=1, argv=0xbffff694) at main.cpp:86
Comment 1 Oliver Kellogg 2004-08-27 19:00:24 UTC
Fixed in cvs HEAD but I don't have time to backport just now
Comment 2 Jonathan Riddell 2004-08-28 21:42:40 UTC
Works for me in head and 3.3 branch.  3.3 release crashes.