Bug 207690

Summary: Umbrello segfaults when attempting to rename class in Ubuntu Karmic Alpha 5 (QUndoCommand::text, QUndoStack::undoText,QUndoStackPrivate::setIndex)
Product: [Applications] umbrello Reporter: Keith <hughitt1.public>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED DUPLICATE    
Severity: crash CC: abhijeet.linux, andresbajotierra, b.durai, inbox, lee_b, mehmedb, puxarbk, ralf.habacker, sanachori, underline
Priority: NOR    
Version: 2.7.2   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.3
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Keith 2009-09-17 16:23:12 UTC
Application that crashed: umbrello
Version of the application: 2.3.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-10-generic-pae i686
Distribution: Ubuntu karmic (development branch)

What I was doing when the application crashed:
Description:

Umbrello crashed (segfault) during normal usage when attempting to rename a class. The overall usage was not that different from other reports in Launchpad:

https://bugs.edge.launchpad.net/ubuntu/+source/kdesdk/+bug/296715

System:

Ubuntu 9.10
Umbrello 4:4.3.1-0ubuntu1



 -- Backtrace:
Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
[Current thread is 1 (Thread 0xb5a7f700 (LWP 5407))]

Thread 2 (Thread 0xb1e4fb70 (LWP 5421)):
#0  0xb5bdce06 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0xb6995be3 in QTimerInfoList::getTime (this=0xb2c0127c, t=...) at kernel/qeventdispatcher_unix.cpp:339
#2  0xb6995dd1 in QTimerInfoList::updateCurrentTime (this=0xb2c0127c) at kernel/qeventdispatcher_unix.cpp:297
#3  0xb699687c in QTimerInfoList::timerWait (this=0xb2c0127c, tm=...) at kernel/qeventdispatcher_unix.cpp:420
#4  0xb6994200 in timerSourcePrepare (source=0xb2c01248, timeout=0xb1e4f0dc) at kernel/qeventdispatcher_glib.cpp:141
#5  0xb5c98020 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb5c983e1 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb5c988f3 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb6994057 in QEventDispatcherGlib::processEvents (this=0x8d628f0, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#9  0xb6967c69 in QEventLoop::processEvents (this=0xb1e4f2a4, flags=) at kernel/qeventloop.cpp:149
#10 0xb69680ba in QEventLoop::exec (this=0xb1e4f2a4, flags=...) at kernel/qeventloop.cpp:201
#11 0xb6875b73 in QThread::exec (this=0x8ef6f80) at thread/qthread.cpp:487
#12 0xb694a6ab in QInotifyFileSystemWatcherEngine::run (this=0x8ef6f80) at io/qfilesystemwatcher_inotify.cpp:214
#13 0xb6878e22 in QThreadPrivate::start (arg=0x8ef6f80) at thread/qthread_unix.cpp:188
#14 0xb628e80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb636f7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5a7f700 (LWP 5407)):
[KCrash Handler]
#6  0xb747b63c in QString (this=0x9575748) at ../../include/QtCore/../../src/corelib/tools/qstring.h:711
#7  QUndoCommand::text (this=0x9575748) at util/qundostack.cpp:242
#8  0xb747b7e8 in QUndoStack::undoText (this=0x8d90a90) at util/qundostack.cpp:797
#9  0xb747c982 in QUndoStackPrivate::setIndex (this=0x8d90aa0, idx=<value optimized out>, clean=false) at util/qundostack.cpp:403
#10 0xb747cc7d in QUndoStack::redo (this=0x8d90a90) at util/qundostack.cpp:687
#11 0xb748fbd3 in QUndoStack::qt_metacall (this=0x8d90a90, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfc56758) at .moc/release-shared/moc_qundostack.cpp:100
#12 0xb7980052 in KUndoStack::qt_metacall (this=0x8d90a90, _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0xbfc56758) at ./kundostack.moc:58
#13 0xb697f253 in QMetaObject::activate (sender=0x8d80810, from_signal_index=5, to_signal_index=6, argv=0xbfc56758) at kernel/qobject.cpp:3113
#14 0xb697f6c8 in QMetaObject::activate (sender=0x8d80810, m=0xb765ae48, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfc56758) at kernel/qobject.cpp:3207
#15 0xb6df29a1 in QAction::triggered (this=0x8d80810, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#16 0xb6df3f22 in QAction::activate (this=0x8d80810, event=QAction::Trigger) at kernel/qaction.cpp:1160
#17 0xb724169c in QMenuPrivate::activateCausedStack (this=0x8e9cd30, causedStack=..., action=0x8d80810, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#18 0xb7247d1b in QMenuPrivate::activateAction (this=0x8e9cd30, action=0x8d80810, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1060
#19 0xb72488d7 in QMenu::mouseReleaseEvent (this=0x8e9ca18, e=0xbfc56eb0) at widgets/qmenu.cpp:2254
#20 0xb79ca495 in KMenu::mouseReleaseEvent (this=0x8e9ca18, e=0xbfc56eb0) at ../../kdeui/widgets/kmenu.cpp:456
#21 0xb6e4df92 in QWidget::event (this=0x8e9ca18, event=0xbfc56eb0) at kernel/qwidget.cpp:7549
#22 0xb724ab14 in QMenu::event (this=0x8e9ca18, e=0xbfc56eb0) at widgets/qmenu.cpp:2353
#23 0xb6df8f44 in QApplicationPrivate::notify_helper (this=0x8bda230, receiver=0x8e9ca18, e=0xbfc56eb0) at kernel/qapplication.cpp:4056
#24 0xb6e01023 in QApplication::notify (this=0xbfc58890, receiver=0x8e9ca18, e=0xbfc56eb0) at kernel/qapplication.cpp:3758
#25 0xb78dff7a in KApplication::notify (this=0xbfc58890, receiver=0x8e9ca18, event=0xbfc56eb0) at ../../kdeui/kernel/kapplication.cpp:302
#26 0xb69696bb in QCoreApplication::notifyInternal (this=0xbfc58890, receiver=0x8e9ca18, event=0xbfc56eb0) at kernel/qcoreapplication.cpp:610
#27 0xb6dfff5e in QCoreApplication::sendSpontaneousEvent (receiver=0x8e9ca18, event=0xbfc56eb0, alienWidget=0x0, nativeWidget=0x8e9ca18, buttonDown=0xb7673aa0, lastMouseReceiver=...)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#28 QApplicationPrivate::sendMouseEvent (receiver=0x8e9ca18, event=0xbfc56eb0, alienWidget=0x0, nativeWidget=0x8e9ca18, buttonDown=0xb7673aa0, lastMouseReceiver=...) at kernel/qapplication.cpp:2924
#29 0xb6e6eba7 in QETWidget::translateMouseEvent (this=0x8e9ca18, event=0xbfc584fc) at kernel/qapplication_x11.cpp:4343
#30 0xb6e6db6b in QApplication::x11ProcessEvent (this=0xbfc58890, event=0xbfc584fc) at kernel/qapplication_x11.cpp:3428
#31 0xb6e9a3f2 in x11EventSourceDispatch (s=0x8bdd400, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0xb5c94f18 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0xb5c987c0 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0xb5c988f3 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0xb699401c in QEventDispatcherGlib::processEvents (this=0x8bbd4e0, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#36 0xb6e99ad5 in QGuiEventDispatcherGlib::processEvents (this=0x8bbd4e0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#37 0xb6967c69 in QEventLoop::processEvents (this=0xbfc587f4, flags=) at kernel/qeventloop.cpp:149
#38 0xb69680ba in QEventLoop::exec (this=0xbfc587f4, flags=...) at kernel/qeventloop.cpp:201
#39 0xb696a52f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#40 0xb6df8dc7 in QApplication::exec () at kernel/qapplication.cpp:3525
#41 0x086ec2a5 in ?? ()
#42 0xb62b9b56 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#43 0x08073461 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-10-28 17:23:12 UTC
From bug 212071:
---
What I was doing when the application crashed:
I was doing some operations on one file, then I went back with undo and then
wanted to redo the operations again, I hit the redo button several times pretty
fast and it crashed
Comment 2 Dario Andres 2009-10-28 17:23:17 UTC
*** Bug 212071 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-11-12 22:40:28 UTC
From bug 214309:
---
What I was doing when the application crashed:
when I was trying to redo an operation in umbrello, it crashed ;)
I was doing some moving of classes and connecting classes with arrows before,
then wanted to undo a connection which didn't work, so I redid it and it
crashed
Comment 4 Dario Andres 2009-11-12 22:40:33 UTC
*** Bug 214309 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2010-09-13 12:34:30 UTC
*** Bug 245286 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2010-09-13 12:35:09 UTC
*** Bug 229635 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2011-01-31 01:09:28 UTC
From bug 237583:
-- Information about the crash:
What happened: I was working with a relatively simple class diagram, involving
2 boxes, 2 labels, about 14 classes, and about 6 packages.  Having accidentally
deleted a box rather than an association, I pressed undo.  Nothing happened in
the diagram.  I noticed the undo history seemed to be changing in the middle of
the history, rather than at the bottom or top.  Pressed undo a few more times,
no diagram change for about 6 goes, then stuff I did much earlier began to
disappear as I kept pressing undo.  Switched to redo, and it crashed
immediately on the first redo.

It may or may not be related, but prior to this, I had noticed that clicking
the dependency toolbar button had no effect for a few clicks (button seemed
non-responsive), then suddenly worked with no actions taken to fix it. 
Computer was not lagging.
Comment 8 Dario Andres 2011-01-31 01:09:37 UTC
*** Bug 237583 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2011-01-31 01:09:41 UTC
*** Bug 262848 has been marked as a duplicate of this bug. ***
Comment 10 darkfish 2011-07-17 05:55:46 UTC
Created attachment 61935 [details]
New crash information added by DrKonqi

umbrello (2.6.2) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed:

I was trying to undo and redo my previous changes. Though undoing the actions did not make any real change to the diagram. Even after undoing 5-7 steps, the diagram remained the same.

-- Backtrace (Reduced):
#7  0x01b38d3c in QString (this=0xa518830) at ../../include/QtCore/../../src/corelib/tools/qstring.h:728
#8  QUndoCommand::text (this=0xa518830) at util/qundostack.cpp:241
#9  0x01b39158 in QUndoStack::undoText (this=0x9e59258) at util/qundostack.cpp:795
#10 0x01b3926e in QUndoStackPrivate::setIndex (this=0x9e36348, idx=136, clean=false) at util/qundostack.cpp:401
#11 0x01b3953d in QUndoStack::redo (this=0x9e59258) at util/qundostack.cpp:685
Comment 11 Jekyll Wu 2012-07-05 23:23:41 UTC
*** Bug 281384 has been marked as a duplicate of this bug. ***
Comment 12 Jekyll Wu 2012-07-05 23:23:48 UTC
*** Bug 286249 has been marked as a duplicate of this bug. ***
Comment 13 Ralf Habacker 2013-09-07 22:07:21 UTC

*** This bug has been marked as a duplicate of bug 153805 ***