Bug #1853
closed
Added by Alex Afanasyev over 10 years ago.
Updated over 10 years ago.
Description
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 doPropagate
executes.
- Description updated (diff)
From my observations: if between afterReceiveInterest
and delayed doPropagate
FIB entry changes from 1 to multiple nexthops, line 146 would cause the error, since pitEntryInfo->maxInterval
would be zero.
- Status changed from New to In Progress
- Estimated time set to 2.00 h
I agree to the hypothesis in note-2 and will make a fix.
- 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.
- Status changed from Code review to Closed
Also available in: Atom
PDF