[ndnSIM] Callback unknown error

Xiaoke Jiang shock.jiang at gmail.com
Thu Feb 21 00:41:32 PST 2013


It works!! thank you , Alex!

thanks

My Regards,
Xiaoke Jiang (蒋小可)

Ph.D Candidate,
Dept. of Computer Science and Technology,
Tsinghua University, P. R. China

On Feb 21, 2013, at 4:35 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:

> In NS-3, Installing applications on a node is not the same as aggregating objects on a node (e.g., installing protocol stacks).  As a result, your GetObject call will always return 0 and you get segfault.
> 
> Instead, you should either call node->GetApplication(...) (not really good choice) or save installed apps in ApplicationContainer (Install returns it).  There should be examples of that.
> 
> ---
> Alex
> 
> On Feb 21, 2013, at 12:27 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
> 
>> Hi All,
>> 	I write my script to trace Producer processing Interest,
>> 
>> xiaoke.cc:
>> 
>> static void SinkIst(Ptr<const InterestHeader>, Ptr<App>, Ptr<Face>)
>> {
>> 	NS_LOG_INFO("< Respodning with ContentObject");
>> }
>> 
>>>> 
>> producerHelper.Install(node);
>> node->GetObject<ns3::ndn::App>()->TraceConnectWithoutContext("ReceivedInterests", MakeCallback(&SinkIst));
>> 
>> It compiles successfully, but run failed and give me 
>> "Command ['/Users/shock/ndnSIM/ns-3/build/shock/xiaoke'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>")."
>> 
>> 
>> Anyone can help?
>> 
>> thanks
>> 
>> My Regards,
>> Xiaoke Jiang (蒋小可)
>> 
>> Ph.D Candidate,
>> Dept. of Computer Science and Technology,
>> Tsinghua University, P. R. China
>> 
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130221/4e9dd3c2/attachment.html>


More information about the ndnSIM mailing list