Bug 304884

Summary: Umbrello crashing when giving foreign key references in ER diagram
Product: [Applications] umbrello Reporter: Sandeep <sandeep.ps4>
Component: generalAssignee: Joris Steyn <kde>
Status: RESOLVED FIXED    
Severity: crash CC: kde, ralf.habacker
Priority: NOR    
Version: 2.4.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.12.0
Sentry Crash Report:

Description Sandeep 2012-08-09 20:04:21 UTC
Application: umbrello (2.4.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-41-generic x86_64
Distribution: Ubuntu 10.04.4 LTS

-- Information about the crash:
Whenever I am giving foreign key reference between entities in ER diagram, Umbrello is crashing. I am using Ubuntu 10.04 

The crash can be reproduced every time.

 -- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[KCrash Handler]
#5  QString (this=0x30) at /usr/include/qt4/QtCore/qstring.h:714
#6  UMLObject::getDoc (this=0x30) at ../../../umbrello/umbrello/umlobject.cpp:408
#7  0x00000000004641bd in ClassifierListPage::slotActivateItem (this=0x351ba70, item=<value optimized out>) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:354
#8  0x000000000046785c in ClassifierListPage::qt_metacall (this=0x351ba70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb528fa70) at ./classifierlistpage.moc:94
#9  0x0000000000467d48 in ConstraintListPage::qt_metacall (this=0x7fffb528f8b0, _c=48, _id=-48, _a=0x333d700) at ./constraintlistpage.moc:73
#10 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x351b530, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#11 0x00007fb46f33b48b in QListWidget::currentItemChanged (this=0x7fffb528f8b0, _t1=0x3850ba0, _t2=0x0) at .moc/release-shared/moc_qlistwidget.cpp:233
#12 0x00007fb46f33cc30 in QListWidgetPrivate::_q_emitCurrentItemChanged (this=0x34fefa0, current=<value optimized out>, previous=<value optimized out>) at itemviews/qlistwidget.cpp:1112
#13 0x00007fb46f33fdbd in QListWidget::qt_metacall (this=0x351b530, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb528fc20) at .moc/release-shared/moc_qlistwidget.cpp:147
#14 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x3528c20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#15 0x00007fb46f32800a in QItemSelectionModel::currentChanged (this=0x7fffb528f8b0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:159
#16 0x00007fb46f328152 in QItemSelectionModel::setCurrentIndex (this=0x3528c20, index=..., command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1167
#17 0x00007fb46f33caf8 in QListWidget::setCurrentRow (this=0x351b530, row=1) at itemviews/qlistwidget.cpp:1484
#18 0x00000000004647ee in ClassifierListPage::slotListItemCreated (this=0x351ba70, object=0x373ed50) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:400
#19 0x000000000046789c in ClassifierListPage::qt_metacall (this=0x351ba70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb528ff90) at ./classifierlistpage.moc:96
#20 0x0000000000467d48 in ConstraintListPage::qt_metacall (this=0x7fffb528f8b0, _c=48, _id=-48, _a=0x333d700) at ./constraintlistpage.moc:73
#21 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x2f79010, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#22 0x0000000000ba0a80 in UMLDoc::sigObjectCreated (this=0x7fffb528f8b0, _t1=0x373ed50) at ./umldoc.moc:153
#23 0x0000000000b4612d in UMLEntity::createForeignKeyConstraint (this=0x364c320, name=<value optimized out>) at ../../../umbrello/umbrello/entity.cpp:244
#24 0x0000000000b747fe in Object_Factory::createChildObject (parent=<value optimized out>, type=<value optimized out>) at ../../../umbrello/umbrello/object_factory.cpp:285
#25 0x0000000000463c52 in ClassifierListPage::slotNewListItem (this=0x351ba70) at ../../../umbrello/umbrello/dialogs/classifierlistpage.cpp:735
#26 0x0000000000467b63 in ConstraintListPage::slotNewForeignKeyConstraint (this=0x7fffb528f8b0) at ../../../umbrello/umbrello/dialogs/constraintlistpage.cpp:119
#27 0x0000000000467da4 in ConstraintListPage::qt_metacall (this=0x351ba70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at ./constraintlistpage.moc:80
#28 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x3575050, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#29 0x00007fb46eda9032 in QAction::triggered (this=0x7fffb528f8b0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#30 0x00007fb46edab0ab in QAction::activate (this=0x3575050, event=<value optimized out>) at kernel/qaction.cpp:1255
#31 0x00007fb46f1eabad in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x3575050, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#32 0x00007fb46f1f05ea in QMenuPrivate::activateAction (this=0x3575970, action=0x3575050, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#33 0x00007fb47029248e in KMenu::mouseReleaseEvent (this=0x35758c0, e=0x30) at ../../kdeui/widgets/kmenu.cpp:471
#34 0x00007fb46ee05632 in QWidget::event (this=0x35758c0, event=0x7fffb5290fb0) at kernel/qwidget.cpp:7998
#35 0x00007fb46f1f27ab in QMenu::event (this=0x35758c0, e=0x7fffb5290fb0) at widgets/qmenu.cpp:2414
#36 0x00007fb46edaf22c in QApplicationPrivate::notify_helper (this=0x2dceee0, receiver=0x35758c0, e=0x7fffb5290fb0) at kernel/qapplication.cpp:4300
#37 0x00007fb46edb5e6b in QApplication::notify (this=0x7fffb5295140, receiver=0x35758c0, e=0x7fffb5290fb0) at kernel/qapplication.cpp:3865
#38 0x00007fb4701b5a16 in KApplication::notify (this=0x7fffb5295140, receiver=0x35758c0, event=0x7fffb5290fb0) at ../../kdeui/kernel/kapplication.cpp:302
#39 0x00007fb46e8dc2fc in QCoreApplication::notifyInternal (this=0x7fffb5295140, receiver=0x35758c0, event=0x7fffb5290fb0) at kernel/qcoreapplication.cpp:704
#40 0x00007fb46edb504e in QCoreApplication::sendEvent (receiver=0x35758c0, event=0x7fffb5290fb0, alienWidget=0x0, nativeWidget=0x35758c0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QApplicationPrivate::sendMouseEvent (receiver=0x35758c0, event=0x7fffb5290fb0, alienWidget=0x0, nativeWidget=0x35758c0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#42 0x00007fb46ee3549d in QETWidget::translateMouseEvent (this=0x35758c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#43 0x00007fb46ee3396c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffb52918d0) at kernel/qapplication_x11.cpp:3501
#44 0x00007fb46ee5f942 in x11EventSourceDispatch (s=0x2dd2bb0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007fb46a12a8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0x00007fb46a12e748 in ?? () from /lib/libglib-2.0.so.0
#47 0x00007fb46a12e8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0x00007fb46e9057e3 in QEventDispatcherGlib::processEvents (this=0x2da77c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#49 0x00007fb46ee5f52e in QGuiEventDispatcherGlib::processEvents (this=0x7fffb528f8b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007fb46e8dac22 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#51 0x00007fb46e8daffc in QEventLoop::exec (this=0x7fffb5291c00, flags=) at kernel/qeventloop.cpp:201
#52 0x00007fb46f1edcf5 in QMenu::exec (this=0x35758c0, p=<value optimized out>, action=0x0) at widgets/qmenu.cpp:2063
#53 0x00007fb46f1fcf02 in QPushButtonPrivate::_q_popupPressed (this=0x34f0420) at widgets/qpushbutton.cpp:588
#54 0x00007fb46f1fe42a in QPushButton::qt_metacall (this=0x34ef3c0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffb5291d60) at .moc/release-shared/moc_qpushbutton.cpp:80
#55 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x34ef3c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#56 0x00007fb46f164c2e in QAbstractButtonPrivate::emitPressed (this=0x34f0420) at widgets/qabstractbutton.cpp:560
#57 0x00007fb46f164e0c in QAbstractButton::mousePressEvent (this=0x34ef3c0, e=0x7fffb52926b0) at widgets/qabstractbutton.cpp:1096
#58 0x00007fb46ee05619 in QWidget::event (this=0x34ef3c0, event=0x7fffb52926b0) at kernel/qwidget.cpp:7994
#59 0x00007fb46edaf22c in QApplicationPrivate::notify_helper (this=0x2dceee0, receiver=0x34ef3c0, e=0x7fffb52926b0) at kernel/qapplication.cpp:4300
#60 0x00007fb46edb5e6b in QApplication::notify (this=0x7fffb5295140, receiver=0x34ef3c0, e=0x7fffb52926b0) at kernel/qapplication.cpp:3865
#61 0x00007fb4701b5a16 in KApplication::notify (this=0x7fffb5295140, receiver=0x34ef3c0, event=0x7fffb52926b0) at ../../kdeui/kernel/kapplication.cpp:302
#62 0x00007fb46e8dc2fc in QCoreApplication::notifyInternal (this=0x7fffb5295140, receiver=0x34ef3c0, event=0x7fffb52926b0) at kernel/qcoreapplication.cpp:704
#63 0x00007fb46edb504e in QCoreApplication::sendEvent (receiver=0x34ef3c0, event=0x7fffb52926b0, alienWidget=0x34ef3c0, nativeWidget=0x3269240, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#64 QApplicationPrivate::sendMouseEvent (receiver=0x34ef3c0, event=0x7fffb52926b0, alienWidget=0x34ef3c0, nativeWidget=0x3269240, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2965
#65 0x00007fb46ee35025 in QETWidget::translateMouseEvent (this=0x3269240, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#66 0x00007fb46ee3396c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffb5292fd0) at kernel/qapplication_x11.cpp:3501
#67 0x00007fb46ee5f942 in x11EventSourceDispatch (s=0x2dd2bb0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#68 0x00007fb46a12a8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#69 0x00007fb46a12e748 in ?? () from /lib/libglib-2.0.so.0
#70 0x00007fb46a12e8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#71 0x00007fb46e9057e3 in QEventDispatcherGlib::processEvents (this=0x2da77c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#72 0x00007fb46ee5f52e in QGuiEventDispatcherGlib::processEvents (this=0x7fffb528f8b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#73 0x00007fb46e8dac22 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#74 0x00007fb46e8daffc in QEventLoop::exec (this=0x7fffb5293300, flags=) at kernel/qeventloop.cpp:201
#75 0x00007fb46f27986e in QDialog::exec (this=0x3269240) at dialogs/qdialog.cpp:546
#76 0x0000000000b1dacb in UMLWidget::showProperties (this=0x35d9960) at ../../../umbrello/umbrello/widgets/umlwidget.cpp:648
#77 0x0000000000b1f4db in UMLWidget::slotMenuSelection (this=0x35d9960, action=<value optimized out>) at ../../../umbrello/umbrello/widgets/umlwidget.cpp:292
#78 0x0000000000b1cfac in UMLWidget::qt_metacall (this=0x35d9960, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb52935e0) at ./umlwidget.moc:93
#79 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x30b0110, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#80 0x00007fb46f1e9812 in QMenu::triggered (this=0x7fffb528f8b0, _t1=0x36aafe0) at .moc/release-shared/moc_qmenu.cpp:164
#81 0x00007fb46f1ebe6d in QMenuPrivate::_q_actionTriggered (this=<value optimized out>) at widgets/qmenu.cpp:1129
#82 0x00007fb46f1efd52 in QMenu::qt_metacall (this=0x30b0110, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb52937e0) at .moc/release-shared/moc_qmenu.cpp:105
#83 0x00007fb470293ca0 in KMenu::qt_metacall (this=0x7fffb528f8b0, _c=48, _id=-48, _a=0x333d700) at ./kmenu.moc:76
#84 0x00007fb46e8ef06f in QMetaObject::activate (sender=0x36aafe0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x333d700) at kernel/qobject.cpp:3293
#85 0x00007fb46eda9032 in QAction::triggered (this=0x7fffb528f8b0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#86 0x00007fb46edab0ab in QAction::activate (this=0x36aafe0, event=<value optimized out>) at kernel/qaction.cpp:1255
#87 0x00007fb46f1eabad in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x36aafe0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#88 0x00007fb46f1f05ea in QMenuPrivate::activateAction (this=0x320eb30, action=0x36aafe0, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#89 0x00007fb47029248e in KMenu::mouseReleaseEvent (this=0x30b0110, e=0x30) at ../../kdeui/widgets/kmenu.cpp:471
#90 0x00007fb46ee05632 in QWidget::event (this=0x30b0110, event=0x7fffb5294430) at kernel/qwidget.cpp:7998
#91 0x00007fb46f1f27ab in QMenu::event (this=0x30b0110, e=0x7fffb5294430) at widgets/qmenu.cpp:2414
#92 0x00007fb46edaf22c in QApplicationPrivate::notify_helper (this=0x2dceee0, receiver=0x30b0110, e=0x7fffb5294430) at kernel/qapplication.cpp:4300
#93 0x00007fb46edb5e6b in QApplication::notify (this=0x7fffb5295140, receiver=0x30b0110, e=0x7fffb5294430) at kernel/qapplication.cpp:3865
#94 0x00007fb4701b5a16 in KApplication::notify (this=0x7fffb5295140, receiver=0x30b0110, event=0x7fffb5294430) at ../../kdeui/kernel/kapplication.cpp:302
#95 0x00007fb46e8dc2fc in QCoreApplication::notifyInternal (this=0x7fffb5295140, receiver=0x30b0110, event=0x7fffb5294430) at kernel/qcoreapplication.cpp:704
#96 0x00007fb46edb504e in QCoreApplication::sendEvent (receiver=0x30b0110, event=0x7fffb5294430, alienWidget=0x0, nativeWidget=0x30b0110, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#97 QApplicationPrivate::sendMouseEvent (receiver=0x30b0110, event=0x7fffb5294430, alienWidget=0x0, nativeWidget=0x30b0110, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#98 0x00007fb46ee3549d in QETWidget::translateMouseEvent (this=0x30b0110, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#99 0x00007fb46ee3396c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffb5294d50) at kernel/qapplication_x11.cpp:3501
#100 0x00007fb46ee5f942 in x11EventSourceDispatch (s=0x2dd2bb0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#101 0x00007fb46a12a8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#102 0x00007fb46a12e748 in ?? () from /lib/libglib-2.0.so.0
#103 0x00007fb46a12e8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#104 0x00007fb46e9057e3 in QEventDispatcherGlib::processEvents (this=0x2da77c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#105 0x00007fb46ee5f52e in QGuiEventDispatcherGlib::processEvents (this=0x7fffb528f8b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#106 0x00007fb46e8dac22 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#107 0x00007fb46e8daffc in QEventLoop::exec (this=0x7fffb5295080, flags=) at kernel/qeventloop.cpp:201
#108 0x00007fb46e8ded3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#109 0x0000000000b6c6c5 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../umbrello/umbrello/main.cpp:111

Reported using DrKonqi
Comment 1 Joris Steyn 2013-09-29 10:10:49 UTC
This specific crash has been fixed in master (8eb9a54).