Project

General

Profile

Actions

Bug #1420

closed

NccStrategy::beforeSatisfyPendingInterest crashes after runtime strategy change

Added by Hila Ben Abraham about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Forwarding
Target version:
Start date:
03/27/2014
Due date:
% Done:

100%

Estimated time:

Description

can be reproduced by:

$sudo env NFD_LOG=all build/nfd --conf nfd.conf
$build/bin/nfdc set-strategy ndn:/ ndn:/localhost/nfd/strategy/ncc
ERROR: error while receiving data from socket (End of file)

last lines in nfd log:

nfd: /usr/include/boost/smart_ptr/shared_ptr.hpp:424: T* boost::shared_ptr<T>::operator->() const [with T = nfd::fw::NccStrategy::PitEntryInfo]: Assertion `px != 0' failed.
Actions #1

Updated by Hila Ben Abraham about 10 years ago

  • Tracker changed from Task to Bug
Actions #2

Updated by Junxiao Shi about 10 years ago

  • Subject changed from nfd crashes upon: nfdc set-strategy ndn:/ ndn:/localhost/nfd/strategy/ncc to NccStrategy::beforeSatisfyPendingInterest crashes after runtime strategy change
  • Description updated (diff)
  • Category set to Forwarding
  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • Target version set to v0.1

Confirmed.

NccStrategy incorrectly assumes pitEntry->getStrategyInfo<PitEntryInfo>() to be non-null, which does not hold after runtime strategy change.

Actions #3

Updated by Junxiao Shi about 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Ibaa4337d80c02cdf074b6390e69ce30b239796de

Actions #4

Updated by Junxiao Shi about 10 years ago

@Hila should verify the bug is resolved, and close this issue.

Actions #5

Updated by Hila Ben Abraham about 10 years ago

  • Status changed from Resolved to Closed

verified.

Actions

Also available in: Atom PDF