Project

General

Profile

Actions

Bug #1366

closed

Setting multiple interest filters can cause a segmentation fault on shutdown.

Added by Syed Amin about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
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

seg-fault.txt (10.1 KB) seg-fault.txt Syed Amin, 03/18/2014 07:58 PM
Actions

Also available in: Atom PDF