Bug 3006 - config-store cannot read raw text config
config-store cannot read raw text config
Status: NEW
Product: ns-3
Classification: Unclassified
Component: config-store
ns-3-dev
All Linux
: P5 blocker
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-11-06 06:12 EST by Manuel Requena
Modified: 2018-11-06 06:12 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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