Actions
Bug #1366
closedSetting multiple interest filters can cause a segmentation fault on shutdown.
Start date:
03/18/2014
Due date:
% Done:
100%
Estimated time:
Description
If multiple interest filters are set for a same face then calling shutdown()
on face may cause a segmentation fault.
To reproduce the error set another test filter in producer.cpp as shown below:
face_.setInterestFilter("/localhop/testApp",
bind(&Producer::onInterest, this, _1, _2),
bind(&Producer::onRegisterFailed, this, _1, _2));
Then put face_.shutdown()
in onInterest case as well to force the shutdown. Otherwise wait for the onRegisterFailed
to be called.
Buiild it and run it again:
~$ ./waf && ./build/examples/producer
ERROR: Failed to register prefix in local hub's daemon (Unauthorized command)
Segmentation fault: 11 (core dumped)
The output from the lldb is attached.
Files
Actions