Bug 163951 - segfault in UMLView::removeWidget at exit
Summary: segfault in UMLView::removeWidget at exit
Status: RESOLVED UNMAINTAINED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 10:29 UTC by Marcus Better
Modified: 2014-05-23 18:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
valgrind log of starting umbrello with xmi file and exiting (143.16 KB, text/x-log)
2008-06-14 14:30 UTC, Oliver Kellogg
Details
valgrind log of crash (124.77 KB, text/plain)
2008-06-16 10:35 UTC, Marcus Better
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Better 2008-06-13 10:29:30 UTC
Version:           2.0.72 (using 4.00.80 (KDE 4.0.80 >= (KDE 4.1 Beta1), Debian packages)
Compiler:          cc
OS:                Linux (x86_64) release 2.6.25-melech

Umbrello often crashes when the application is closed, with a document loaded.

Program: Umbrello UML-modellering (umbrello), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0x7fe16afb9780 (LWP 7802)]
[KCrash handler]
#5  0x00000000008107be in UMLView::removeWidget (this=0x122c2d0, o=0x121ca90)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/umlview.cpp:877
#6  0x000000000081284f in UMLView::removeAllWidgets (this=0x122c2d0)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/umlview.cpp:1976
#7  0x00000000007e0dc7 in UMLDoc::removeView (this=0xd0b270, view=0x122c2d0, 
    enforceCurrentView=false)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/umldoc.cpp:178
#8  0x000000000072ab48 in UMLFolder::removeAllViews (this=0xd0bf30)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/folder.cpp:178
#9  0x00000000007c7c27 in UMLDoc::removeAllViews (this=0xd0b270)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/umldoc.cpp:1887
#10 0x00000000007ce419 in UMLDoc::closeDocument (this=0xd0b270)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/umldoc.cpp:290
#11 0x00000000007b4775 in UMLApp::queryExit (this=0xc8b790)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/uml.cpp:858
#12 0x00007fe169f5967f in KMainWindow::closeEvent (this=0xc8b790, 
    e=0x7fff730ef840)
    at /tmp/buildd/kde4libs-4.0.80/kdeui/widgets/kmainwindow.cpp:534
#13 0x00007fe16935c09f in QWidget::event (this=0xc8b790, event=0x7fff730ef840)
    at kernel/qwidget.cpp:7077
#14 0x00007fe169674fa1 in QMainWindow::event (this=0xc8b790, 
    event=0x7fff730ef840) at widgets/qmainwindow.cpp:1252
#15 0x00007fe169f560bb in KMainWindow::event (this=0xc8b790, 
    ev=0x7fff730ef840)
    at /tmp/buildd/kde4libs-4.0.80/kdeui/widgets/kmainwindow.cpp:1002
#16 0x00007fe169f8f708 in KXmlGuiWindow::event (this=0x121ca90, ev=0x121ca90)
    at /tmp/buildd/kde4libs-4.0.80/kdeui/xmlgui/kxmlguiwindow.cpp:122
#17 0x00007fe16930e4df in QApplicationPrivate::notify_helper (this=0xbac370, 
    receiver=0xc8b790, e=0x7fff730ef840) at kernel/qapplication.cpp:3772
#18 0x00007fe1693130b5 in QApplication::notify (this=0x7fff730f0260, 
    receiver=0xc8b790, e=0x7fff730ef840) at kernel/qapplication.cpp:3739
#19 0x00007fe169ea2d2b in KApplication::notify (this=0x7fff730f0260, 
    receiver=0xc8b790, event=0x7fff730ef840)
    at /tmp/buildd/kde4libs-4.0.80/kdeui/kernel/kapplication.cpp:311
#20 0x00007fe1689efbd9 in QCoreApplication::notifyInternal (
    this=0x7fff730f0260, receiver=0xc8b790, event=0x7fff730ef840)
    at kernel/qcoreapplication.cpp:587
#21 0x00007fe16935d108 in QWidgetPrivate::close_helper (this=0xc8bbd0, 
    mode=QWidgetPrivate::CloseWithSpontaneousEvent)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 0x00007fe169363172 in QETWidget::translateCloseEvent (
    this=<value optimized out>) at kernel/qapplication_x11.cpp:4900
#23 0x00007fe1693640cd in QApplication::x11ClientMessage (
    this=<value optimized out>, w=0xc8b790, event=0x7fff730efec0, 
    passive_only=224) at kernel/qapplication_x11.cpp:2829
#24 0x00007fe16937150b in QApplication::x11ProcessEvent (this=0x7fff730f0260, 
    event=0x7fff730efec0) at kernel/qapplication_x11.cpp:3386
#25 0x00007fe1693973c3 in x11EventSourceDispatch (s=0xbafa60, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#26 0x00007fe164aa70f2 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#27 0x00007fe164aaa396 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007fe164aaa82f in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#29 0x00007fe168a18dff in QEventDispatcherGlib::processEvents (this=0xba8bf0, 
    flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325
#30 0x00007fe16939720f in QGuiEventDispatcherGlib::processEvents (
    this=0x121ca90, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007fe1689ef055 in QEventLoop::processEvents (
    this=<value optimized out>, flags=@0x7fff730f0190)
    at kernel/qeventloop.cpp:149
#32 0x00007fe1689ef1ab in QEventLoop::exec (this=0x7fff730f01d0, 
    flags=@0x7fff730f01e0) at kernel/qeventloop.cpp:200
#33 0x00007fe1689f11f9 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:845
#34 0x000000000075ae8a in main (argc=1, argv=0x7fff730f0628)
    at /tmp/buildd/kdesdk-4.0.80/umbrello/umbrello/main.cpp:111
#0  0x00007fe16737a210 in __nanosleep_nocancel () from /lib/libc.so.6
Comment 1 Oliver Kellogg 2008-06-14 14:30:08 UTC
Created attachment 25335 [details]
valgrind log of starting umbrello with xmi file and exiting

On a very primitive test, I do not get the crash at exit but I do get
lots of other valgrind reports. I am using a fresh build of all required
parts (kdesupport, kdelibs, kdepimlibs, umbrello) from KDE SVN trunk
of today.

Are you also seeing these valgrind reports?
Do you have Undo enabled in the Settings menu?
Did you do any actions between loading the file and exiting?
Could you attach a file for which the crash happens?

Thanks.
Comment 2 Marcus Better 2008-06-16 10:35:08 UTC
Now I got the crash under Valgrind. It printed this to the console:
  QObject: Do not delete object, 'unnamed', during its event handler!
  KCrash: Application 'umbrello' crashing...

I only started Umbrello, loaded the file, maximised the window and closed it. Sorry I cannot attach the file.

Undo is enabled.
Comment 3 Marcus Better 2008-06-16 10:35:59 UTC
Created attachment 25372 [details]
valgrind log of crash

Valgrind log of a session that crashed.
Comment 4 Christoph Feck 2013-09-12 21:48:59 UTC
This crash report is at least 3 years old and there were no further comments or status updates since then.

Therefore we believe that this crash is already fixed in recent KDE 4 versions or the backtrace is no longer applicable to the current KDE 4 sources.

If the crash still happens with a recent KDE version (4.10.5 or 4.11), please add an updated backtrace or provide steps to reproduce. For more information, see http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

(To prevent automatic closing of this bug in the future, please set the bug status to ASSIGNED or CONFIRMED)