Bug 525481 - StackOverflowError when a mapping imports self as mapping
Summary: StackOverflowError when a mapping imports self as mapping
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.0.0   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-10-03 04:35 EDT by Laurent Fasani CLA
Modified: 2017-10-03 11:27 EDT (History)
1 user (show)

See Also:


Attachments
Bug_StackOverflowError_ImportMapping (2.01 KB, application/x-zip-compressed)
2017-10-03 04:35 EDT, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Fasani CLA 2017-10-03 04:35:17 EDT
Created attachment 270792 [details]
Bug_StackOverflowError_ImportMapping

Steps to reproduce:
* Import attached project
* Create a diagram on the root semantic object
=> StackOverflowError

The reason is that the PCD_Package mapping have itself as imported reused mapping and Semantic Candidates expression is empty which corresponds to the full semantic resource contents.

We should detect the infinite loop at runtime and raise an error.
The infinite loop occurs because of the empty Semantic Candidates expression but we could just as well have the issue with NON empty Semantic Candidates expression

Nevertheless the validation of odesign with empty Semantic Candidates expression detects the possible infinite loop so this ticket has a minor severity.