[ndnSIM] ndnSIM example crashes on MAC

Anil Jangam anilj.mailing at gmail.com
Fri May 5 09:16:21 PDT 2017


Hi Junxiao,

Thanks for the hint. Here is the stack trace using lldb. I will check if
gdb can be run on Mac.

anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="lldb %s"
Waf: Entering directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'
Waf: Leaving directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (3.409s)
(lldb) target create
"/Users/anjangam/workspace/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug"
Current executable set to
'/Users/anjangam/workspace/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'
(x86_64).
(lldb) r
Process 10990 launched:
'/Users/anjangam/workspace/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'
(x86_64)
Process 10990 stopped
* thread #1: tid = 0x162b5cc, 0x000000010661e864
libcryptopp.dylib`CryptoPP::X86_SHA256_HashBlocks(unsigned int*, unsigned
int const*, unsigned long) + 196, queue = 'com.apple.main-thread', stop
reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x000000010661e864
libcryptopp.dylib`CryptoPP::X86_SHA256_HashBlocks(unsigned int*, unsigned
int const*, unsigned long) + 196
libcryptopp.dylib`CryptoPP::X86_SHA256_HashBlocks:
->  0x10661e864 <+196>: movdqa (%rcx), %xmm0
    0x10661e868 <+200>: movdqa 0x10(%rcx), %xmm1
    0x10661e86d <+205>: movdqa %xmm1, 0x10(%r8)
    0x10661e873 <+211>: movdqa %xmm0, (%r8)
(lldb) where
error: 'where' is not a valid command.
error: Unrecognized command 'where'.
(lldb) list
   51   {
   52     // setting default parameters for PointToPoint links and channels
   53     Config::SetDefault("ns3::PointToPointNetDevice::DataRate",
StringValue("1Mbps"));
   54     Config::SetDefault("ns3::PointToPointChannel::Delay",
StringValue("10ms"));
   55     Config::SetDefault("ns3::DropTailQueue::MaxPackets",
StringValue("20"));
   56
   57     // Read optional command-line parameters (e.g., enable visualizer
with ./waf --run=<> --visualize
   58     CommandLine cmd;
   59     cmd.Parse(argc, argv);
   60
(lldb)


/anil.


On Fri, May 5, 2017 at 12:23 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Anil
>
> Do you have gdb installed?
> I remember macOS uses lldb by default.
>
> Yours, Junxiao
>
> On Thu, May 4, 2017 at 10:46 AM, Anil Jangam <anilj.mailing at gmail.com>
> wrote:
>
>>
>>
>>
>> anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %s"
>>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 215, in
>> run_program
>>     return run_argv(execvec, env, cwd=cwd)
>>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 132, in
>> run_argv
>>     retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()
>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
>> line 710, in __init__
>>     errread, errwrite)
>>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
>> line 1335, in _execute_child
>>     raise child_exception
>> OSError: [Errno 2] No such file or directory
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170505/af4eac0d/attachment-0001.html>


More information about the ndnSIM mailing list