I noticed that NFD crashed on spurs with the following error:
nfd: /usr/include/boost/random/uniform_int_distribution.hpp:318: boost::random::niform_int_distribution<IntType>::uniform_int_distribution(IntType, IntType) [with IntType = long long int]: Assertion `min_arg <= max_arg' failed.
NccStrategy can cause this crash if an Interest is forwarded to the best face, and the FIB entry gains a new nexthop before
#4 Updated by Junxiao Shi about 5 years ago
- Subject changed from NFD crashed on spurs to NccStrategy crash
- Description updated (diff)
- Status changed from In Progress to Code review
- % Done changed from 0 to 100
I'm able to make a test case that reproduce the bug.
The crash is almost definitely caused by
NccStrategy, because this is the only place in NFD or ndn-cxx that calls
uniform_int_distribution's two-argument constructor.