Bug 68117

Summary: crash on import class
Product: [Applications] umbrello Reporter: Caleb Tennis <caleb>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Class causing the crash

Description Caleb Tennis 2003-11-13 14:25:26 UTC
Version:            (using KDE KDE 3.1.92)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2 
OS:          Linux

I get the following crash when importing a class.  I recompiled from the snapshot of 11-12-03, but the crash persists:

[New Thread 16384 (LWP 18937)]
0x4123b359 in waitpid () from /lib/libpthread.so.0
#0  0x4123b359 in waitpid () from /lib/libpthread.so.0
#1  0x408b5d9d in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x4123a17c in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0xb7a00816 in ?? ()
#5  0x081395e5 in OwnedCodeBlock::setAttributesOnNode(QDomDocument&, QDomElement&) (this=0x4123ecc0, elem=@0xbfffe470) at ownedcodeblock.cpp:78
#6  0x080fc4ab in CodeClassFieldDeclarationBlock::saveToXMI(QDomDocument&, QDomElement&) (this=0x17837730, doc=@0xbfffe7f0, elem=@0xbfffe510)
    at codeclassfielddeclarationblock.cpp:85
#7  0x080fa671 in CodeClassField::setAttributesOnNode(QDomDocument&, QDomElement&) (this=0x17b89268, doc=@0xbfffe7f0, cfElem=@0xbfffe510)
    at codeclassfield.cpp:257
#8  0x080fafc7 in CodeClassField::saveToXMI(QDomDocument&, QDomElement&) (
    this=0x17b89268, doc=@0xbfffe7f0, root=@0xbfffe550)
    at codeclassfield.cpp:324
#9  0x080f2850 in ClassifierCodeDocument::setAttributesOnNode(QDomDocument&, QDomElement&) (this=0xbfffe460, doc=@0xbfffe7f0, docElement=@0xbfffe5d0)
    at classifiercodedocument.cpp:624
#10 0x0824439d in CPPSourceCodeDocument::setAttributesOnNode(QDomDocument&, QDomElement&) (this=0xfffffe00, doc=@0xfffffe00, docElement=@0xfffffe00)
    at cppsourcecodedocument.cpp:90
#11 0x0824432f in CPPSourceCodeDocument::saveToXMI(QDomDocument&, QDomElement&)
    (this=0x84d25e0, doc=@0xbfffe7f0, root=@0xbfffe630)
    at cppsourcecodedocument.cpp:76
#12 0x08104323 in CodeGenerator::saveToXMI(QDomDocument&, QDomElement&) (
    this=0xbfffe460, doc=@0xbfffe7f0, root=@0xbfffe6f0)
    at codegenerator.cpp:263
#13 0x0815804d in UMLDoc::saveToXMI(QIODevice&) (this=0x83c6598, 
    file=@0x1782c8b0) at qdict.h:111
#14 0x0815cdec in UMLDoc::addToUndoStack() (this=0x83c6598) at umldoc.cpp:2243
#15 0x0815b96a in UMLDoc::setModified(bool, bool) (this=0xbfffe460, 
    modified=true, addToUndo=true) at umldoc.cpp:1976
#16 0x08154e6e in UMLDoc::addAssociation(UMLAssociation*) (this=0x83c6598, 
    Assoc=0xbfffe460) at umldoc.cpp:977
#17 0x080f46d5 in ClassImport::importCPP(QStringList) (this=0x83c6598, 
    headerFileList=
        {<QValueList<QString>> = {sh = 0x829b628}, <No data fields>})
    at classimport.cpp:196
#18 0x0814db29 in UMLApp::slotImportClasses() (this=0x83578d8) at qshared.h:49
#19 0x0814eb89 in UMLApp::qt_invoke(int, QUObject*) (this=0x83578d8, 
    _id=398819824, _o=0x8629148) at uml.moc:271
#20 0x40ca0880 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x40ca06b4 in QObject::activate_signal(int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x40599d7b in KAction::slotActivated() ()
   from /usr/kde/3.2/lib/libkdeui.so.4
#23 0x4059a861 in KAction::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkdeui.so.4
#24 0x40ca0880 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#25 0x40fbaeb2 in QSignal::signal(QVariant const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#26 0x40cba7f8 in QSignal::activate() () from /usr/qt/3/lib/libqt-mt.so.3
#27 0x40d9f6bd in QPopupMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#28 0x40cd509c in QWidget::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#29 0x40c45a65 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#30 0x40c44f48 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#31 0x40809fde in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#32 0x40bde6d6 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#33 0x40bdc2db in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#34 0x40bf31a7 in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#35 0x40c58c36 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#36 0x40c58ad8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#37 0x40c45cb1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#38 0x0812fe9e in main (argc=-512, argv=0xfffffe00) at main.cpp:86
#39 0x413a6ba7 in __libc_start_main () from /lib/libc.so.6
Comment 1 Sebastian Stein 2003-11-13 15:07:27 UTC
Subject: Re: [Uml-devel]  New: crash on import class

Caleb Tennis <caleb@aei-tech.com> [031113 14:51]:
> ...

Could you please attach the source file with the class it crashes on?

Steinchen
Comment 2 Caleb Tennis 2003-11-13 15:45:05 UTC
Created attachment 3196 [details]
Class causing the crash
Comment 3 Sebastian Stein 2003-11-13 16:04:37 UTC
I can't reproduce the crash. Please make sure, if you compile Umbrello to use a new version of flex, I have 2.5.27.