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

Oliver Kellogg okellogg at users.sourceforge.net
Sat Jun 7 05:50:21 UTC 2014


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

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

(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/dbd78fa7cc80765da48e2d20de27986d692c8e75

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


More information about the umbrello-devel mailing list