Bug 3006

Summary: config-store cannot read raw text config
Product: ns-3 Reporter: Manuel Requena <manuel.requena>
Component: config-storeAssignee: ns-bugs <ns-bugs>
Status: NEW ---    
Severity: blocker    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: Linux   

Description Manuel Requena 2018-11-06 06:12:53 EST
Config-store cannot read raw text config due to the list of integers of ns3::PrioQueueDisc::Priomap

We can reproduce the problem with the attached patch to first.cc. I also added some logs to raw-text-config.cc

First, we save the config with:

$ export NS_LOG=RawTextConfig
$ ./waf --command-template="%s --ns3::ConfigStore::Filename=input-defaults.txt --ns3::ConfigStore::Mode=Save --ns3::ConfigStore::FileFormat=RawText" --run first

Then, we try to load the config with:

$ ./waf --command-template="%s --ns3::ConfigStore::Filename=input-defaults.txt --ns3::ConfigStore::Mode=Load --ns3::ConfigStore::FileFormat=RawText" --run first

and we get:

RawTextConfig:Default(): [DEBUG] type=default, name=ns3::PrioQueueDisc::Priomap, value="1
RawTextConfig:Strip(0x198c660, ""1")
RawTextConfig:Strip(): [DEBUG] start=0, end=18446744073709551615, value.size()=2
assert failed. cond="end == value.size () - 1", file=../src/config-store/model/raw-text-config.cc, line=145
terminate called without an active exception