OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000384OMNeT++simulation kernelpublic2011-07-23 15:272011-07-26 11:34
Reporterdp 
Assigned Torhornig 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.1 
Target VersionFixed in Version4.2b1 
Summary0000384: Deep passing of parameters in NED files causes crash
DescriptionFor the following bug report, I attached an Omnet IDE Project containing a minimal example exhibiting this issue.

Consider a network N, a composite module C and a submodule S. S has a parameter S.p. S is a part of C, but C does not define S.p. If S.p is defined in the ini file, all is well. If N tries to set C.S.p to a fixed value, all is well. If N has a parameter N.q and tries to set C.S.p = N.p, Omnet crashes during network setup.

If the names of C.p and N.q differ (see network "net2"), omnet will throw an error:
"<!> Error in module (SubModule) PpeNetwork2.main.submodule (id=3) during network setup: Error evaluating parameter `subModuleParameter': has no parameter named `networkParameter'."

If the names of C.p and N.q are identical (see network "net1"), omnet will segfault. I once managed to step around the omnet code in the debugger. During parameter parsing the code for retrieving S.p is supposedly moving up the module hierarchy in search of the parameter p. This however seems not to work, as a call to evaluate() will repeatedly appear on the (ever growing) call stack. At some point, the program will crash with a segfault.

This should either be resolved so that deep passing of parameters in NED files does work (it is quite intuitive, since this is possible in INI files as well) or at least it should be documented (and the NED editor should show an error) that this is not allowed.
TagsNo tags attached.
Attached Fileszip file icon ParamPassingExample.zip [^] (7,069 bytes) 2011-07-23 15:27

- Relationships

-  Notes
(0000528)
rhornig (administrator)
2011-07-26 11:34

Already fixed in the 4.2 branch

- Issue History
Date Modified Username Field Change
2011-07-23 15:27 dp New Issue
2011-07-23 15:27 dp File Added: ParamPassingExample.zip
2011-07-26 11:34 rhornig Note Added: 0000528
2011-07-26 11:34 rhornig Status new => resolved
2011-07-26 11:34 rhornig Fixed in Version => 4.2b1
2011-07-26 11:34 rhornig Resolution open => fixed
2011-07-26 11:34 rhornig Assigned To => rhornig


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker