[Uml-devel] [Bug 64881] consistent crash opening a file created with umbrello

Jonathan Riddell jr at jriddell.org
Wed Sep 24 17:17:14 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=64881     




------- Additional Comments From jr at jriddell.org  2003-09-25 02:16 -------
Looks like the same issue reported by David Faure earlier on.. 
 
-- 
 
The exact lines are: 
 
#19 0x080d412f in AssociationWidget::operator==(AssociationWidget&) 
(this=0x8475b60, Other=@0x8474ae8) 
    at /mnt/devel/kde/kdecvs/kdesdk/umbrello/umbrello/
associationwidget.cpp:171 
171             } else if ( !(*m_pName == *(Other.m_pName)) ) 
 
#18 0x08163b23 in UMLWidget::operator==(UMLWidget const&) 
(this=0x8476250, other=@0x84755d0) 
    at /mnt/devel/kde/kdecvs/kdesdk/umbrello/umbrello/umlwidget.cpp:169 
169                     if(!(*assoc == *assoc2)) { 
 
That one is inside a loop that looks at all associations. This feels wrong to me. 
If you imagine your classes like a tree, equality comparison should only 
go "down" the tree, never up. Here it looks like it goes down in 
AssociationWidget, 
but it goes up in UMLWidget, so it loops forever, going from one to the other. 
 
(To reproduce: well, I'm simply loading a .xmi file with a collaboration diagram in 
it, 
it crashes before anything appears)




More information about the umbrello-devel mailing list