Project

General

Profile

Actions

Bug #1335

closed

ManagerBase::sendResponse should create shared_ptr<Data>

Added by Junxiao Shi over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Management
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

ManagerBase::sendResponse should not allocate Data on the stack. It must use shared_ptr<Data>.

Data cannot be stack-allocated in certain context.

Original report from Minsheng:

When nrd tries to connect to nfd, I get this error from nfd:
DEBUG: [NameTree] Did not find /localhop/nrd, need to insert it to the table
DEBUG: [ManagerBase] responding name: /localhost/nfd/fib/insert/h%11%07%0F%08%08localhop%08%03nrd code: 200 text: Success
Assertion failed: (px != 0), function operator*, file /opt/local/include/boost/smart_ptr/shared_ptr.hpp, line 646.

Actions

Also available in: Atom PDF