[ndnSIM] ndnSIM example crashes on MAC

Anil Jangam anilj.mailing at gmail.com
Thu May 4 23:40:22 PDT 2017


Hi Spyros.

For some unknown reason, it did not help recreating the workspace from
scratch. It is still crashing as below. Note: I have disabled the python
during configure stage.

anjangam:ns-3 anjangam$ ./waf --run=ndn-simple
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.004s)
Command
['/Users/anjangam/workspace/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug']
terminated with signal SIGSEGV. Run it under a debugger to get more
information (./waf --run <program> --command-template="gdb --args %s
<args>").
anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %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 (2.142s)
Traceback (most recent call last):
  File
"/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py",
line 108, in waf_entry_point
    run_commands()
  File
"/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py",
line 171, in run_commands
    run_command('shutdown')
  File
"/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py",
line 160, in run_command
    ctx.execute()
  File
"/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py",
line 92, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File
"/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py",
line 133, in recurse
    user_function(self)
  File "/Users/anjangam/workspace/ndnSIM/ns-3/wscript", line 937, in
shutdown
    visualize=Options.options.visualize)
  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
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 390, in __init__
    errread, errwrite)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 1024, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
anjangam:ns-3 anjangam$


Another minor issue is that I am seeing quite a few warnings while
compiling.

In file included from /opt/local/include/boost/asio/basic_socket.hpp:20:
In file included from /opt/local/include/boost/asio/basic_io_object.hpp:19:
In file included from /opt/local/include/boost/asio/io_service.hpp:767:
/opt/local/include/boost/asio/impl/io_service.hpp:85:67: warning: unused
typedef 'type_check' [-Wunused-local-typedef]
  BOOST_ASIO_COMPLETION_HANDLER_CHECK(CompletionHandler, handler)
type_check;
                                                                  ^
/opt/local/include/boost/asio/impl/io_service.hpp:102:67: warning: unused
typedef 'type_check' [-Wunused-local-typedef]
  BOOST_ASIO_COMPLETION_HANDLER_CHECK(CompletionHandler, handler)
type_check;
                                                                  ^
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.cpp:26:
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.hpp:29:
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry.hpp:29:
In file included from ns3/ndnSIM/NFD/core/common.hpp:65:
In file included from ns3/ndnSIM/ndn-cxx/util/face-uri.hpp:32:
In file included from /opt/local/include/boost/asio/ip/udp.hpp:19:
In file included from
/opt/local/include/boost/asio/basic_datagram_socket.hpp:20:
/opt/local/include/boost/asio/basic_socket.hpp:755:63: warning: unused
typedef 'type_check' [-Wunused-local-typedef]
    BOOST_ASIO_CONNECT_HANDLER_CHECK(ConnectHandler, handler) type_check;
                                                              ^
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.cpp:26:
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.hpp:29:
In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry.hpp:29:
In file included from ns3/ndnSIM/NFD/core/common.hpp:65:
In file included from ns3/ndnSIM/ndn-cxx/util/face-uri.hpp:32:
In file included from /opt/local/include/boost/asio/ip/udp.hpp:19:
/opt/local/include/boost/asio/basic_datagram_socket.hpp:344:59: warning:
unused typedef 'type_check' [-Wunused-local-typedef]
    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;
                                                          ^
/opt/local/include/boost/asio/basic_datagram_socket.hpp:387:59: warning:
unused typedef 'type_check' [-Wunused-local-typedef]
    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;
                                                          ^
/opt/local/include/boost/asio/basic_datagram_socket.hpp:527:59: warning:
unused typedef 'type_check' [-Wunused-local-typedef]
    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;

/anil.


On Thu, May 4, 2017 at 7:34 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi Anil,
>
> that has happened to me too and it seems to be related to waf. I am not
> sure why it fails, but the solution that worked for me was to do a fresh
> clone of the repo from github and recompile.
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On May 4, 2017, at 10:46 AM, Anil Jangam <anilj.mailing at gmail.com> wrote:
>
>
> Hi Alex,
>
> Using macOS with MacPorts, I was able to compile ndnSIM on Mac OSX (El
> Captain) 10.11.6; however, it crashes while running an example. Below is
> the stack trace.
>
> I ran the confogure stage with and without python (i.e. ./waf configure
> --disable-python --enable-examples and using macport specific python
> version). Can you point out to specific reason why its failing?
>
> anjangam:ns-3 anjangam$
> anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %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 (2.293s)
> Traceback (most recent call last):
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f
> 6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point
>     run_commands()
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f
> 6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 171, in run_commands
>     run_command('shutdown')
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f
> 6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 160, in run_command
>     ctx.execute()
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f
> 6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute
>     self.recurse([os.path.dirname(g_module.root_path)])
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f
> 6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse
>     user_function(self)
>   File "/Users/anjangam/workspace/ndnSIM/ns-3/wscript", line 937, in
> shutdown
>     visualize=Options.options.visualize)
>   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
>
>
>
> /anil.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170504/5b95f1ad/attachment-0001.html>


More information about the ndnSIM mailing list