Bug 191398 - In Entity's "Properties" window, adding then deleting attribute causes SEGV
Summary: In Entity's "Properties" window, adding then deleting attribute causes SEGV
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 23:23 UTC by Erik Anderson
Modified: 2009-05-28 17:43 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
SEGV backtrace (7.00 KB, text/plain)
2009-05-02 23:23 UTC, Erik Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Anderson 2009-05-02 23:23:11 UTC
Version:           2.2.2 (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

Using versions:
- Kubuntu 9.04 (Jaunty)
- Umbrello 2.2.2
- KDE 4.2.2

Not sure if it's relevant, but I have set the 'Default Language' to PostgreSQL.

** Steps to Reproduce:
- Create new Entity Relationship Model, or open existing one.
- Create new Entity, or use existing one.
- Open Entity's "Properties" dialog.
- Click "Entity Attributes".
- Add an attribute.  Click "OK" to close the "Entity Attribute Properties" window, but *DO NOT* click "OK" to close the "Entity Properties" window.
- Select the attribute you just created, and click "Delete".
- Watch the SEGV.

Attaching backtrace separately.
Comment 1 Erik Anderson 2009-05-02 23:23:49 UTC
Created attachment 33305 [details]
SEGV backtrace
Comment 2 Dario Andres 2009-05-03 00:01:50 UTC
Pasted backtrace from comment 1:
-----

Application: Umbrello UML Modeller (umbrello), signal SIGSEGV
0x00007f707503acf0 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7f70796cb750 (LWP 13460)):
[KCrash Handler]
#5  0x00007f707608b320 in QString::operator= () from /usr/lib/libQtCore.so.4
#6  0x0000000000460718 in ClassifierListPage::slotActivateItem (this=0x251ab40, item=0x26b1190) at /build/buildd/kdesdk-4.2.2/umbrello/umbrello/dialogs/classifierlistpage.cpp:265
#7  0x000000000046253f in ClassifierListPage::qt_metacall (this=0x251ab40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff81702e40)
    at /build/buildd/kdesdk-4.2.2/obj-x86_64-linux-gnu/umbrello/umbrello/classifierlistpage.moc:88
#8  0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#9  0x00007f70772514fb in QListWidget::currentItemChanged () from /usr/lib/libQtGui.so.4
#10 0x00007f7077254d2c in ?? () from /usr/lib/libQtGui.so.4
#11 0x00007f707725776e in QListWidget::qt_metacall () from /usr/lib/libQtGui.so.4
#12 0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0x00007f707723f56a in QItemSelectionModel::currentChanged () from /usr/lib/libQtGui.so.4
#14 0x00007f707723f6b4 in QItemSelectionModel::setCurrentIndex () from /usr/lib/libQtGui.so.4
#15 0x00007f70771f20af in QAbstractItemView::setCurrentIndex () from /usr/lib/libQtGui.so.4
#16 0x00007f70771f30eb in QAbstractItemView::rowsAboutToBeRemoved () from /usr/lib/libQtGui.so.4
#17 0x00007f707720c531 in QListView::rowsAboutToBeRemoved () from /usr/lib/libQtGui.so.4
#18 0x00007f70771f3f67 in QAbstractItemView::qt_metacall () from /usr/lib/libQtGui.so.4
#19 0x00007f7077324265 in QListView::qt_metacall () from /usr/lib/libQtGui.so.4
#20 0x00007f7077257565 in QListWidget::qt_metacall () from /usr/lib/libQtGui.so.4
#21 0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0x00007f707617cb64 in QAbstractItemModel::rowsAboutToBeRemoved () from /usr/lib/libQtCore.so.4
#23 0x00007f707612832c in QAbstractItemModel::beginRemoveRows () from /usr/lib/libQtCore.so.4
#24 0x00007f7077251f9f in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f7077255789 in QListWidget::takeItem () from /usr/lib/libQtGui.so.4
#26 0x0000000000460bef in ClassifierListPage::slotDelete (this=0x251ab40) at /build/buildd/kdesdk-4.2.2/umbrello/umbrello/dialogs/classifierlistpage.cpp:617
#27 0x0000000000462468 in ClassifierListPage::qt_metacall (this=0x251ab40, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff817037e0)
    at /build/buildd/kdesdk-4.2.2/obj-x86_64-linux-gnu/umbrello/umbrello/classifierlistpage.moc:99
#28 0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#29 0x00007f707731e547 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#30 0x00007f707707c0cb in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f707707dd32 in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007f707707df85 in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#33 0x00007f7076d2a97f in QWidget::event () from /usr/lib/libQtGui.so.4
#34 0x00007f7076cd983d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#35 0x00007f7076ce218a in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0x00007f707810e26b in KApplication::notify () from /usr/lib/libkdeui.so.5
#37 0x00007f707613075c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#38 0x00007f7076ce13d8 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#39 0x00007f7076d4aec9 in ?? () from /usr/lib/libQtGui.so.4
#40 0x00007f7076d49b38 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#41 0x00007f7076d72514 in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007f70716b820a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0x00007f70716bb8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0x00007f70716bba7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0x00007f7076159e6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#46 0x00007f7076d71c9f in ?? () from /usr/lib/libQtGui.so.4
#47 0x00007f707612f002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#48 0x00007f707612f3cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#49 0x00007f70771973ee in QDialog::exec () from /usr/lib/libQtGui.so.4
#50 0x0000000000c7c6ce in UMLWidget::showProperties (this=0x2556dc0) at /build/buildd/kdesdk-4.2.2/umbrello/umbrello/umlwidget.cpp:647
#51 0x0000000000c7df1a in UMLWidget::slotMenuSelection (this=0x2556dc0, action=<value optimized out>) at /build/buildd/kdesdk-4.2.2/umbrello/umbrello/umlwidget.cpp:291
#52 0x0000000000c7bb75 in UMLWidget::qt_metacall (this=0x2556dc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff817050e0)
    at /build/buildd/kdesdk-4.2.2/obj-x86_64-linux-gnu/umbrello/umbrello/umlwidget.moc:87
#53 0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#54 0x00007f7077101862 in QMenu::triggered () from /usr/lib/libQtGui.so.4
#55 0x00007f7077102de0 in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007f707710aff9 in QMenu::qt_metacall () from /usr/lib/libQtGui.so.4
#57 0x00007f70781e1045 in KMenu::qt_metacall () from /usr/lib/libkdeui.so.5
#58 0x00007f70761461f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#59 0x00007f7076cd3897 in QAction::triggered () from /usr/lib/libQtGui.so.4
#60 0x00007f7076cd4d10 in QAction::activate () from /usr/lib/libQtGui.so.4
#61 0x00007f7077102d1c in ?? () from /usr/lib/libQtGui.so.4
#62 0x00007f7077108cee in ?? () from /usr/lib/libQtGui.so.4
#63 0x00007f70781dfb71 in KMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.5
#64 0x00007f7076d2a97f in QWidget::event () from /usr/lib/libQtGui.so.4
#65 0x00007f707710b4ab in QMenu::event () from /usr/lib/libQtGui.so.4
#66 0x00007f7076cd983d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#67 0x00007f7076ce218a in QApplication::notify () from /usr/lib/libQtGui.so.4
#68 0x00007f707810e26b in KApplication::notify () from /usr/lib/libkdeui.so.5
#69 0x00007f707613075c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#70 0x00007f7076ce13d8 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#71 0x00007f7076d4b084 in ?? () from /usr/lib/libQtGui.so.4
#72 0x00007f7076d49b38 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#73 0x00007f7076d72514 in ?? () from /usr/lib/libQtGui.so.4
#74 0x00007f70716b820a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#75 0x00007f70716bb8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#76 0x00007f70716bba7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#77 0x00007f7076159e6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#78 0x00007f7076d71c9f in ?? () from /usr/lib/libQtGui.so.4
#79 0x00007f707612f002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#80 0x00007f707612f3cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#81 0x00007f7076131694 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#82 0x0000000000bc92d5 in main (argc=3, argv=0x7fff817070a8) at /build/buildd/kdesdk-4.2.2/umbrello/umbrello/main.cpp:110
Comment 3 Erik Anderson 2009-05-03 00:21:41 UTC
@Dario -

Should I paste in backtraces in future, instead of adding as attachments?
Comment 4 Dario Andres 2009-05-03 00:24:06 UTC
@Erik Anderson: if you are posting the original backtrace of the report, yes, it is best to past it directly (as it allows to search for similar backtraces on the bug tracker).
However when adding different backtraces to a report which already has an original backtrace, it can be different (and therefore a different bug), so I recommend to just attach the file in that case. Later, the bugtracker assistants can check if it is the same crash or not
Thanks!
Comment 5 Kevin Kofler 2009-05-05 15:35:31 UTC
See also https://bugzilla.redhat.com/show_bug.cgi?id=498921 for what I believe to be a duplicate (there's a .xmi file attached, opening it and removing the indicated property reproduces the crash).
Comment 6 Dario Andres 2009-05-07 23:34:46 UTC
Also, some parts of the backtrace posted here seems related to bug 191396
Comment 7 Andi Fischer 2009-05-28 09:38:30 UTC
Also fixed with revision 973906.
Comment 8 Erik Anderson 2009-05-28 16:02:33 UTC
Great news, Andi.  How does this relate to Bug 191396?  Both have to do with the "Properties" window, which seems to be (have been?) rather instable.
Comment 9 Andi Fischer 2009-05-28 17:43:01 UTC
(In reply to comment #8)
Both bugs end in ClassifierListPage which is fixed now.