Bug 293476

Summary: Umbrello crashed while reopening a document
Product: [Applications] umbrello Reporter: greatbunzinni
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: crash CC: god, ralf.habacker
Priority: NOR    
Version: 2.7.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.1
Sentry Crash Report:

Description greatbunzinni 2012-02-06 21:28:13 UTC
Application: umbrello (2.7.4)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-15-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:

changed a class type from interface to generic
saved a document
reloaded the document
crashed

The crash can be reproduced some of the time.

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

Thread 3 (Thread 0x7f4e4f24d700 (LWP 3549)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f4e4f24caf0 in ?? ()
#2  0x00007fffcc9937e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f4e4e09f700 (LWP 3550)):
#0  0x00007f4e6018f773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f4e5c8b1f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4e5c8b2429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4e61283f3e in QEventDispatcherGlib::processEvents (this=0x16b6ce0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f4e61257cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4e61257ef7 in QEventLoop::exec (this=0x7f4e4e09edd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f4e6116f27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f4e6123acbf in QInotifyFileSystemWatcherEngine::run (this=0x17c45e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f4e61171d05 in QThreadPrivate::start (arg=0x17c45e0) at thread/qthread_unix.cpp:331
#9  0x00007f4e5fea4efc in start_thread (arg=0x7f4e4e09f700) at pthread_create.c:304
#10 0x00007f4e6019b89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4e643f9780 (LWP 3548)):
[KCrash Handler]
#6  __memcpy_sse2 () at ../sysdeps/x86_64/multiarch/../memcpy.S:161
#7  0x00007f4e611b884e in QString::realloc (this=0x7fffcc80a4a0, alloc=19223360) at /usr/include/x86_64-linux-gnu/bits/string3.h:52
#8  0x00007f4e611bd7b0 in QString::replace (this=0x7fffcc80a4a0, rx=<optimized out>, after=...) at tools/qstring.cpp:2767
#9  0x000000000053d192 in CodeGenerator::cleanName (name=<optimized out>) at ../../../umbrello/umbrello/codegenerators/codegenerator.cpp:608
#10 0x00000000006afad6 in ClassifierCodeDocument::syncNamesToParent (this=0x26a38c0) at ../../../umbrello/umbrello/classifiercodedocument.cpp:454
#11 0x00000000006b28d1 in ClassifierCodeDocument::synchronize (this=0x26a38c0) at ../../../umbrello/umbrello/classifiercodedocument.cpp:469
#12 0x000000000056ece1 in CPPCodeGenerator::syncCodeToDocument (this=0x1897010) at ../../../umbrello/umbrello/codegenerators/cpp/cppcodegenerator.cpp:210
#13 0x000000000056d621 in CPPCodeGenerator::qt_metacall (this=0x1897010, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffcc80a580) at ./cppcodegenerator.moc:79
#14 0x00007f4e6126beba in QMetaObject::activate (sender=0x15b4f10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#15 0x0000000000587278 in CPPCodeGenerationPolicy::init (this=0x1d3a7f0) at ../../../umbrello/umbrello/codegenerators/cpp/cppcodegenerationpolicy.cpp:399
#16 0x0000000000587666 in CPPCodeGenerationPolicy::CPPCodeGenerationPolicy (this=<optimized out>) at ../../../umbrello/umbrello/codegenerators/cpp/cppcodegenerationpolicy.cpp:38
#17 0x000000000056e34e in CPPCodeGenerator::initAttributes (this=<optimized out>) at ../../../umbrello/umbrello/codegenerators/cpp/cppcodegenerator.cpp:390
#18 0x000000000056e3ae in CPPCodeGenerator::CPPCodeGenerator (this=0x1c137e0) at ../../../umbrello/umbrello/codegenerators/cpp/cppcodegenerator.cpp:39
#19 0x00000000005300a8 in CodeGenFactory::createObject (pl=Uml::pl_Cpp) at ../../../umbrello/umbrello/codegenerators/codegenfactory.cpp:110
#20 0x000000000070f6f7 in UMLApp::setGenerator (this=0x12d0320, pl=Uml::pl_Cpp) at ../../../umbrello/umbrello/uml.cpp:1993
#21 0x0000000000729fec in UMLDoc::newDocument (this=0x1321d90) at ../../../umbrello/umbrello/umldoc.cpp:380
#22 0x000000000071a5fb in UMLApp::slotFileNew (this=0x12d0320) at ../../../umbrello/umbrello/uml.cpp:1019
#23 0x000000000071a738 in UMLApp::slotFileClose (this=0x12d0320) at ../../../umbrello/umbrello/uml.cpp:1170
#24 0x000000000071c1a9 in UMLApp::qt_metacall (this=0x12d0320, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffcc80ae80) at ./uml.moc:227
#25 0x00007f4e6126beba in QMetaObject::activate (sender=0x1345dd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcc80ae80) at kernel/qobject.cpp:3278
#26 0x00007f4e61782bb2 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#27 0x00007f4e61782d9f in QAction::activate (this=0x1345dd0, event=<optimized out>) at kernel/qaction.cpp:1257
#28 0x00007f4e61bbd6c9 in QMenuPrivate::activateCausedStack (this=0x147cf20, causedStack=..., action=0x1345dd0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1005
#29 0x00007f4e61bc3312 in QMenuPrivate::activateAction (this=0x147cf20, action=0x1345dd0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1097
#30 0x00007f4e62c880d0 in KMenu::mouseReleaseEvent (this=0x145e250, e=0x7fffcc80b890) at ../../kdeui/widgets/kmenu.cpp:464
#31 0x00007f4e617d9cea in QWidget::event (this=0x145e250, event=0x7fffcc80b890) at kernel/qwidget.cpp:8295
#32 0x00007f4e61bc48bb in QMenu::event (this=0x145e250, e=0x7fffcc80b890) at widgets/qmenu.cpp:2405
#33 0x00007f4e61789474 in notify_helper (e=0x7fffcc80b890, receiver=0x145e250, this=0x11b4eb0) at kernel/qapplication.cpp:4486
#34 QApplicationPrivate::notify_helper (this=0x11b4eb0, receiver=0x145e250, e=0x7fffcc80b890) at kernel/qapplication.cpp:4458
#35 0x00007f4e6178ecbb in QApplication::notify (this=<optimized out>, receiver=0x145e250, e=0x7fffcc80b890) at kernel/qapplication.cpp:4047
#36 0x00007f4e62bc6466 in KApplication::notify (this=0x7fffcc80c510, receiver=0x145e250, event=0x7fffcc80b890) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007f4e61258afc in QCoreApplication::notifyInternal (this=0x7fffcc80c510, receiver=0x145e250, event=0x7fffcc80b890) at kernel/qcoreapplication.cpp:787
#38 0x00007f4e6178a442 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QApplicationPrivate::sendMouseEvent (receiver=0x145e250, event=0x7fffcc80b890, alienWidget=0x0, nativeWidget=0x145e250, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#40 0x00007f4e6180a091 in QETWidget::translateMouseEvent (this=0x145e250, event=<optimized out>) at kernel/qapplication_x11.cpp:4505
#41 0x00007f4e6180894e in QApplication::x11ProcessEvent (this=0x7fffcc80c510, event=0x7fffcc80c0b0) at kernel/qapplication_x11.cpp:3693
#42 0x00007f4e618314a2 in x11EventSourceDispatch (s=0x11b8d90, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#43 0x00007f4e5c8b1a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f4e5c8b2258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f4e5c8b2429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f4e61283ed6 in QEventDispatcherGlib::processEvents (this=0x116df40, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#47 0x00007f4e6183110e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x00007f4e61257cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#49 0x00007f4e61257ef7 in QEventLoop::exec (this=0x7fffcc80c480, flags=...) at kernel/qeventloop.cpp:201
#50 0x00007f4e6125c789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#51 0x000000000043aba6 in main (argc=3, argv=0x7fffcc80c918) at ../../../umbrello/umbrello/main.cpp:111

Reported using DrKonqi
Comment 1 Denis M. (Phr33d0m) 2012-02-08 21:09:06 UTC
I can confirm this issue on umbrello 4.8 with kde 4.8.0
Comment 2 Ralf Habacker 2014-07-25 06:41:03 UTC
do not crash in 4.13.1