Application: umbrello (2.11.5) KDE Platform Version: 4.11.5 Qt Version: 4.8.4 Operating System: Linux 3.11.0-12-generic x86_64 Distribution: Linux Mint 16 Petra -- Information about the crash: When i clicked option generate code, application autoclose and i was informed of application error. The crash can be reproduced sometimes. -- Backtrace: Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7fcfe61c07c0 (LWP 14690))] Thread 3 (Thread 0x7fcfd4b4e700 (LWP 14691)): #0 0x00007fcfe26b9f7d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fcfdf40f6a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fcfdf40f7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fcfe400ba76 in QEventDispatcherGlib::processEvents (this=0x7fcfd00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #4 0x00007fcfe3fdd5ef in QEventLoop::processEvents (this=this@entry=0x7fcfd4b4dd70, flags=...) at kernel/qeventloop.cpp:149 #5 0x00007fcfe3fdd8e5 in QEventLoop::exec (this=this@entry=0x7fcfd4b4dd70, flags=...) at kernel/qeventloop.cpp:204 #6 0x00007fcfe3edc88f in QThread::exec (this=this@entry=0x249cff0) at thread/qthread.cpp:542 #7 0x00007fcfe3fbed13 in QInotifyFileSystemWatcherEngine::run (this=0x249cff0) at io/qfilesystemwatcher_inotify.cpp:265 #8 0x00007fcfe3edef2f in QThreadPrivate::start (arg=0x249cff0) at thread/qthread_unix.cpp:338 #9 0x00007fcfdf8d4f6e in start_thread (arg=0x7fcfd4b4e700) at pthread_create.c:311 #10 0x00007fcfe26c69cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 2 (Thread 0x7fcfcca64700 (LWP 17192)): #0 0x00007fcfdf44f0ed in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007fcfdf44f399 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fcfdf40ed59 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fcfdf40f5c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fcfdf40f7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fcfe400ba76 in QEventDispatcherGlib::processEvents (this=0x7fcfc80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #6 0x00007fcfe3fdd5ef in QEventLoop::processEvents (this=this@entry=0x7fcfcca63d70, flags=...) at kernel/qeventloop.cpp:149 #7 0x00007fcfe3fdd8e5 in QEventLoop::exec (this=this@entry=0x7fcfcca63d70, flags=...) at kernel/qeventloop.cpp:204 #8 0x00007fcfe3edc88f in QThread::exec (this=this@entry=0x297e440) at thread/qthread.cpp:542 #9 0x00007fcfe3fbed13 in QInotifyFileSystemWatcherEngine::run (this=0x297e440) at io/qfilesystemwatcher_inotify.cpp:265 #10 0x00007fcfe3edef2f in QThreadPrivate::start (arg=0x297e440) at thread/qthread_unix.cpp:338 #11 0x00007fcfdf8d4f6e in start_thread (arg=0x7fcfcca64700) at pthread_create.c:311 #12 0x00007fcfe26c69cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7fcfe61c07c0 (LWP 14690)): [KCrash Handler] #6 ref (this=0xffffffff00000001) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121 #7 QString (other=..., this=0x7fff18ea3c40, this@entry=0x7fff18ea3c10) at /usr/include/qt4/QtCore/qstring.h:726 #8 UMLObject::name (this=0x297fe10) at ../../umbrello/umlobject.cpp:187 #9 0x00000000006d8239 in ClassifierCodeDocument::syncNamesToParent (this=this@entry=0x2bae6c0) at ../../umbrello/classifiercodedocument.cpp:450 #10 0x00000000006d8dc1 in ClassifierCodeDocument::synchronize (this=0x2bae6c0) at ../../umbrello/classifiercodedocument.cpp:465 #11 0x0000000000584dd0 in CPPCodeGenerator::syncCodeToDocument (this=0x2ba5da0) at ../../umbrello/codegenerators/cpp/cppcodegenerator.cpp:214 #12 0x00007fcfe3ff2a58 in QMetaObject::activate (sender=0x2449400, m=m@entry=0x7d48a0 <CodeGenerationPolicy::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539 #13 0x0000000000551e0a in modifiedCodeContent (this=<optimized out>) at ./codegenerationpolicy.moc:98 #14 CodeGenerationPolicy::emitModifiedCodeContentSig (this=<optimized out>) at ../../umbrello/codegenerators/codegenerationpolicy.cpp:423 #15 0x000000000059d584 in CPPCodeGenerationPolicy::setAutoGenerateAccessors (this=this@entry=0x2aea220, var=<optimized out>) at ../../umbrello/codegenerators/cpp/cppcodegenerationpolicy.cpp:150 #16 0x000000000059ea88 in CPPCodeGenerationPolicy::init (this=this@entry=0x2aea220) at ../../umbrello/codegenerators/cpp/cppcodegenerationpolicy.cpp:398 #17 0x000000000059eea7 in CPPCodeGenerationPolicy::CPPCodeGenerationPolicy (this=0x2aea220) at ../../umbrello/codegenerators/cpp/cppcodegenerationpolicy.cpp:37 #18 0x000000000054845d in CodeGenFactory::newCodeGenPolicyExt (pl=Uml::ProgrammingLanguage::Cpp) at ../../umbrello/codegenerators/codegenfactory.cpp:440 #19 0x00000000004a8ecb in CodeGenOptionsPage::updateCodeGenerationPolicyTab (this=this@entry=0x2d21150) at ../../umbrello/codegenwizard/codegenoptionspage.cpp:187 #20 0x00000000004aa90e in CodeGenOptionsPage::CodeGenOptionsPage (this=0x2d21150, parent=<optimized out>) at ../../umbrello/codegenwizard/codegenoptionspage.cpp:71 #21 0x0000000000484d9e in SettingsDlg::setupCodeGenPage (this=this@entry=0x27af800) at ../../umbrello/dialogs/settingsdlg.cpp:215 #22 0x0000000000485f24 in SettingsDlg::SettingsDlg (this=0x27af800, parent=<optimized out>, state=0x2428ee0) at ../../umbrello/dialogs/settingsdlg.cpp:53 #23 0x00000000007355ca in UMLApp::slotPrefs (this=0x243b730) at ../../umbrello/uml.cpp:1803 #24 0x00007fcfe3ff2a58 in QMetaObject::activate (sender=sender@entry=0x2547b20, m=m@entry=0x7fcfe3e24de0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff18ea4500) at kernel/qobject.cpp:3539 #25 0x00007fcfe3375a32 in QAction::triggered (this=this@entry=0x2547b20, _t1=false) at .moc/release-shared/moc_qaction.cpp:277 #26 0x00007fcfe3377403 in QAction::activate (this=this@entry=0x2547b20, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257 #27 0x00007fcfe37a47f9 in QMenuPrivate::activateCausedStack (this=this@entry=0x25f6680, causedStack=..., action=action@entry=0x2547b20, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038 #28 0x00007fcfe37a8d19 in QMenuPrivate::activateAction (this=0x25f6680, action=0x2547b20, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130 #29 0x00007fcfe37ac6e5 in QMenu::mouseReleaseEvent (this=this@entry=0x25f3490, e=e@entry=0x7fff18ea4c30) at widgets/qmenu.cpp:2372 #30 0x00007fcfe4d35155 in KMenu::mouseReleaseEvent (this=0x25f3490, e=0x7fff18ea4c30) at ../../kdeui/widgets/kmenu.cpp:464 #31 0x00007fcfe33cb31e in QWidget::event (this=this@entry=0x25f3490, event=event@entry=0x7fff18ea4c30) at kernel/qwidget.cpp:8375 #32 0x00007fcfe37acaeb in QMenu::event (this=0x25f3490, e=0x7fff18ea4c30) at widgets/qmenu.cpp:2481 #33 0x00007fcfe337bdfc in QApplicationPrivate::notify_helper (this=this@entry=0x229f8e0, receiver=receiver@entry=0x25f3490, e=e@entry=0x7fff18ea4c30) at kernel/qapplication.cpp:4567 #34 0x00007fcfe33825ad in QApplication::notify (this=this@entry=0x7fff18ea55f0, receiver=receiver@entry=0x25f3490, e=e@entry=0x7fff18ea4c30) at kernel/qapplication.cpp:4110 #35 0x00007fcfe4c7ea6a in KApplication::notify (this=0x7fff18ea55f0, receiver=0x25f3490, event=0x7fff18ea4c30) at ../../kdeui/kernel/kapplication.cpp:311 #36 0x00007fcfe3fde8bd in QCoreApplication::notifyInternal (this=0x7fff18ea55f0, receiver=receiver@entry=0x25f3490, event=event@entry=0x7fff18ea4c30) at kernel/qcoreapplication.cpp:946 #37 0x00007fcfe3381d63 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #38 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x25f3490, event=event@entry=0x7fff18ea4c30, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x25f3490, buttonDown=buttonDown@entry=0x7fcfe3e602f8 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178 #39 0x00007fcfe33f6b0c in QETWidget::translateMouseEvent (this=this@entry=0x25f3490, event=event@entry=0x7fff18ea4f80) at kernel/qapplication_x11.cpp:4565 #40 0x00007fcfe33f6079 in QApplication::x11ProcessEvent (this=0x7fff18ea55f0, event=event@entry=0x7fff18ea4f80) at kernel/qapplication_x11.cpp:3624 #41 0x00007fcfe341d922 in x11EventSourceDispatch (s=0x228e3a0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #42 0x00007fcfdf40f3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #43 0x00007fcfdf40f708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #44 0x00007fcfdf40f7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #45 0x00007fcfe400ba55 in QEventDispatcherGlib::processEvents (this=0x2269760, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #46 0x00007fcfe341d9d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #47 0x00007fcfe3fdd5ef in QEventLoop::processEvents (this=this@entry=0x7fff18ea5360, flags=...) at kernel/qeventloop.cpp:149 #48 0x00007fcfe3fdd8e5 in QEventLoop::exec (this=this@entry=0x7fff18ea5360, flags=...) at kernel/qeventloop.cpp:204 #49 0x00007fcfe3fe2e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218 #50 0x00007fcfe337a34c in QApplication::exec () at kernel/qapplication.cpp:3828 #51 0x00000000004380bb in main (argc=<optimized out>, argv=<optimized out>) at ../../umbrello/main.cpp:113 Reported using DrKonqi
Please append a test case as xmi file.
Fixed by commit "Coverity check on master@bd16929, CID 71414: Dereference after null check (FORWARD_NULL)." of bug 340646.