[ndnSIM] Callback unknown error

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Feb 21 18:22:04 PST 2013


I have removed this variable. Should compile now without problem.

---
Alex

On Feb 21, 2013, at 6:19 PM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:

> Hi Alex,
> 	I am trying to compile it on MacOS and Ubuntu.
> 
> 	On Ubuntu, it compiles successfully, but on MacOS:	I run ./waf clean then ./waf, it gives me error:
> [1119/1916] cxx: src/ndnSIM/model/fw/green-yellow-red.cc -> build/src/ndnSIM/model/fw/green-yellow-red.cc.1.o
> cc1plus: warnings being treated as errors
> In file included from ../src/ndnSIM/examples/ndn-simple-with-cs-lfu.cc:27:
> ./ns3/ndnSIM/utils/mem-usage.h: In static member function ‘static int64_t MemUsage::Get()’:
> ./ns3/ndnSIM/utils/mem-usage.h:69: warning: unused variable ‘task’
> Waf: Leaving directory `/Users/shock/ndnSIM/ns-3/build'
> 
> 	
> 	then I will trying to run my script and give you more feedback.
> 
> thanks
> 
> My Regards,
> Xiaoke Jiang (蒋小可)
> 
> Ph.D Candidate,
> Dept. of Computer Science and Technology,
> Tsinghua University, P. R. China
> 
> On Feb 22, 2013, at 6:04 AM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
> 
>> Hi Xiaoke,
>> 
>> I've done an implementation of this feature and pushed it to the experimental branch (feature-trace-value-for-fib-entry).
>> 
>> Can you check it out?  I also would appreciate if you can check that this change didn't break anything else (at least with your simulations).
>> 
>> Thanks,
>> Alex
>> 
>> 
>> On Feb 21, 2013, at 1:11 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
>> 
>>> Hi Alex,
>>> 	Is it possible to make the Status of FibEntry (Line 105, ndn-fib-entry.h) a TracedCallback type. I think the status is quit important for research on Cache, routing, etc.
>>> 
>>> 	I can get what I want by add NS_LOG, but the problem is after fetch and merge your code, my modification will lose. So is it possible for you to make that change since it 's also very important for future research.
>>> 
>>> 
>>> 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
>>> 
>> 
> 
> _______________________________________________
> 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/35b4c3e9/attachment.html>


More information about the ndnSIM mailing list