[umbrello-devel] [umbrello] [Bug 300004] Umbrello crashes while loading XMI file.

Oliver Kellogg okellogg at users.sourceforge.net
Mon Jun 16 20:10:23 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=300004

--- Comment #5 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit afa2b621fad60ee7b7d981830841f697763eb550 by Oliver Kellogg.
Committed on 07/06/2014 at 05:48.
Pushed by okellogg into branch 'KDE/4.13'.

(In reply to comment #0)
> -- Backtrace:
> Application: Umbrello UML Modeller (umbrello), signal: Segmentation fault
> [...]
> Thread 1 (Thread 0x7ff392baa880 (LWP 27703)):
> [KCrash Handler]
> #6  0x0000000000abf450 in ?? ()
> #7  0x00000000006a5f10 in UMLAssociation::getObjectId (this=<optimized out>,
> role=Uml::A) at
> /usr/src/debug/kdesdk-4.8.3/umbrello/umbrello/association.cpp:500

I suspect the <UML:Association> was somehow inconsistent in the XMI so that
the role objects (UMLAssociation::m_pRole) did not get constructed.
As said, without a reproducer it's hard to tell.

umbrello/association.cpp
- Do not dereference m_pRole[role] when NULL.
  Might happen on loading corrupted XMI.

M  +2    -0    umbrello/association.cpp

http://commits.kde.org/umbrello/afa2b621fad60ee7b7d981830841f697763eb550

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list