[Uml-devel] crash when creating attribute

Luis De la Parra Blum lparrab at gmx.net
Sun Mar 9 13:21:03 UTC 2003


hi all,
I have a bug here, and am not sure if it's thanks to some of the 
diagram/dialog code I am doing or not.
I really dont see why my code could be interfering, but I just happend to 
discover it after doing some changes to my dialog pages.

could you please test and see if you can reproduce it?
1. start umbrello
2. create a class in the default diagram
3. right click on the listview->properties
4. switch to the attributes page and click new
5. accept the defaults (name and everything) and just click ok
6. you get a nice dump:

[New Thread 1024 (LWP 1594)]
0x40fc4099 in wait4 () from /lib/libc.so.6
#0  0x40fc4099 in wait4 () from /lib/libc.so.6
#1  0x4103ebd8 in __DTOR_END__ () from /lib/libc.so.6
#2  0x40e78072 in waitpid () from /lib/libpthread.so.0
#3  0x406294bb in KCrash::defaultCrashHandler ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x40e75a74 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x40b6e600 in QGDict::look_string () from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0x40b23d47 in QDomNamedNodeMapPrivate::namedItem ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0x40b2697a in QDomElementPrivate::attribute ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#9  0x40b2782c in QDomElement::attribute () from 
/usr/lib/qt3/lib/libqt-mt.so.3
#10 0x0809319a in UMLObject::loadFromXMI (this=0x8340ca0, element=@0xbfffdec4)
    at umlobject.cpp:205
#11 0x080d1049 in UMLAttribute::loadFromXMI () at concept.cpp:402
#12 0x080d0452 in UMLConcept::saveToXMI (this=0x8304ca0, qDoc=@0xbfffdec4, 
    qElement=@0xbfffde60) at concept.cpp:318
#13 0x0809a134 in UMLDoc::saveToXMI (this=0x82a2058, file=@0x834f188)
    at umldoc.cpp:1317
#14 0x0809dbbe in UMLDoc::addToUndoStack (this=0x82a2058) at umldoc.cpp:1877
#15 0x0809c5a1 in UMLDoc::setModified (this=0x82a2058, modified=true, 
    addToUndo=true) at umldoc.cpp:1605
#16 0x08096341 in UMLDoc::createAttribute (this=0x82a2058, 
umlobject=0x8304ca0)
    at umldoc.cpp:593
#17 0x08095f81 in UMLDoc::createUMLObject (this=0x82a2058, 
    umlobject=0x8304ca0, type=ot_Attribute) at umldoc.cpp:554
#18 0x08161642 in ClassAttPage::slotNewAttribute (this=0x832e858)
    at classattpage.cpp:311
#19 0x08161979 in ClassAttPage::qt_invoke (this=0x832e858, _id=54, 
    _o=0xbfffe1c8) at classattpage.moc:149
#20 0x40978b74 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40978aae in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40bd924c in QButton::clicked () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x409de604 in QButton::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x409a2a66 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x4092d8da in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4092d14e in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x405c7e6b in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#28 0x408dba7b in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x408d9cd9 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x408e9d3a in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x4093dc80 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x4092dac6 in QApplication::enter_loop ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x40a97f29 in QDialog::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x08098672 in UMLDoc::showProperties (this=0x82a2058, object=0x8304ca0, 
    page=0, assoc=false) at umldoc.cpp:1026
#35 0x0806f65f in UMLListView::popupMenuSel (this=0x82abc38, sel=1952)
    at umllistview.cpp:294
#36 0x08075b33 in UMLListView::qt_invoke (this=0x82abc38, _id=109, 
    _o=0xbfffeb64) at umllistview.moc:217
#37 0x40978b74 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x40978cfb in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x40be661d in QPopupMenu::activated () from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x40a3548b in QPopupMenu::actSig () from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0x40a39120 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#42 0x409a2a66 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0x4092d8da in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#44 0x4092d14e in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#45 0x405c7e6b in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#46 0x408db74b in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#47 0x408d9cd9 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#48 0x408e9d3a in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#49 0x4093dc80 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#50 0x4093dbc7 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#51 0x4092da56 in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#52 0x080b3adb in main () at notewidget.cpp:225
#53 0x40f399ed in __libc_start_main () from /lib/libc.so.6

regards,

luis




More information about the umbrello-devel mailing list