[Nfd-dev] nfd segmentation fault

Gusev, Peter peter at remap.ucla.edu
Sun Jul 3 21:56:50 PDT 2016


Hi Junxiao,

Uninstalling ports and using just homebrew for dependencies helped.
I also cloned repos from gerrit.

Thanks,

--
Peter Gusev

peter at remap.ucla.edu<mailto:peter at remap.ucla.edu>
+1 213 5872748
peetonn_ (skype)

Software Engineer/Programmer Analyst @ REMAP UCLA

Video streaming/ICN networks/Creative Development

On Jul 3, 2016, at 6:56 PM, Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>> wrote:

Hi Peter

Try these aggressive but usually helpful repair steps:

1.       backup NDN certificates, configurations, repo-ng contents if you can
2.       delete ndn-cxx and NFD and ndn-tools; check for /etc/ndn, /usr/bin, /usr/local/bin, /usr/local/etc/ndn, /opt/local, /var/log/ndn directories for any remains
3.       delete cloned ndn-cxx and NFD and ndn-tools repositories
4.       uninstall MacPorts and HomeBrew, delete all ports and packages
5.       in Keychain Access app, delete all NDN certificates
6.       shutdown the machine, unplug the power, wait 30 minutes
7.       plug in the machine and start the system
8.       install HomeBrew only (MacPorts is supported but the strange paths sometimes cause problems)
9.       clone ndn-cxx and NFD and ndn-tools from Gerrit (not GitHub), see instructions http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2015-April/001023.html
10.   carefully follow installation instructions of each software; do not skip any step

Yours, Junxiao

From: Gusev, Peter<mailto:peter at remap.ucla.edu>
Sent: Sunday, July 3, 2016 18:48
To: <nfd-dev at lists.cs.ucla.edu><mailto:nfd-dev at lists.cs.ucla.edu>
Subject: [Nfd-dev] nfd segmentation fault

Hi all,

After some manipulations with the system (don’t recall what exactly - moving around boost libraries, updating to El Captain, re-installing ndn-cxx) I no longer can launch NFD:

nfd-start
/usr/local/bin/ndnsec-install-cert: line 4: 54673 Segmentation fault: 11  (core dumped) `dirname "$0"`/ndnsec cert-install "$@"
/usr/local/bin/ndnsec-keygen: line 4: 54674 Segmentation fault: 11  (core dumped) `dirname "$0"`/ndnsec key-gen "$@"
$ nfd --version
Segmentation fault: 11
$ ndnsec version
0.4.1
$ ndnsec list
Segmentation fault: 11

Tried to revert changes (migrated Ports to El Captain, making sure boost libraries are in /opt/local/lib, rebuilt/reinstalled ndn-cxx-0.4.1 and NFD-0.4.1), with no effect - still the same problem.

Before digging deeper, just wanted to check-in with people in this mailing list, whether they experienced anything like this before.
Here’s the core dump from the "nfd-start” crash:

* thread #1: tid = 0x0000, 0x00007fff8f531638 libc++.1.dylib`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 14, stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8f531638 libc++.1.dylib`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 14
    frame #1: 0x0000000107c6f411 nfd`boost::program_options::typed_value<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, char>::notify(boost::any const&) const + 97
    frame #2: 0x0000000108156319 libboost_program_options-mt.dylib`boost::program_options::store(boost::program_options::basic_parsed_options<char> const&, boost::program_options::variables_map&, bool) + 1353
    frame #3: 0x0000000107c6332d nfd`main + 493
    frame #4: 0x00007fff8f8a25ad libdyld.dylib`start + 1
    frame #5: 0x00007fff8f8a25ad libdyld.dylib`start + 1



Possibly, something with libc++/libstdc++ libraries mismatch...

Thanks,

--
Peter Gusev

peter at remap.ucla.edu<mailto:peter at remap.ucla.edu>
+1 213 5872748
peetonn_ (skype)

Software Engineer/Programmer Analyst @ REMAP UCLA

Video streaming/ICN networks/Creative Development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160704/6a038774/attachment.html>


More information about the Nfd-dev mailing list