Opened 6 years ago

Last modified 6 years ago

#12357 new Bugs

Seg Fault running bcp in 1.61.0 when trying to build in custom namespace

Reported by: Matthew Russell <mrussell@…> Owned by: John Maddock
Milestone: To Be Determined Component: bcp
Version: Boost 1.61.0 Severity: Problem
Keywords: segmentation fault bcp custom namespace Cc:

Description

Using Ubuntu 16.04.1 LTS, I was trying to install boost 1.61.0 in a custom name space.

I downloaded boost, placed it into a directory, ran:

$ ./booststap $ ./b2 tools/bcp $ mkdir -p /tmp/myboost $ ./dist/bin/bcp --namespace=myboost --namespace-alias accumulators algorithm array asio assign atomic bimap bind context chrono circular_buffer crc date_time filesystem foreach format fusion function geometry interprocess iostreams iterator lexical_cast lockfree math mpl pool program_options property_tree ptr_container random range regex signals2 system smart_ptr test thread timer tokenizer tuple utility uuid build boostrap.bat bootstrap.sh boostcpp.jam boost-build.jam /tmp/myboost/

This yields pages and pages of warnings, mostly about missing assets, and then seg faults.

CAUTION: don't know how to trace depenencies through macro: "PP1" in file: boost/type_traits/detail/is_function_ptr_helper.hpp
CAUTION: don't know how to trace depenencies through macro: "PP1" in file: boost/type_traits/detail/is_function_ptr_helper.hpp
CAUTION: don't know how to trace depenencies through macro: "PP1" in file: boost/type_traits/detail/is_function_ptr_helper.hpp
CAUTION: don't know how to trace depenencies through macro: "PP1" in file: boost/type_traits/detail/is_function_ptr_tester.hpp

...

CAUTION: don't know how to trace depenencies through macro: "PPI" in file: boost/type_traits/detail/is_mem_fun_pointer_tester.hpp
INFO: tracking source dependencies of library smart_ptr due to presence of "void sp_scalar_constructor_hook( void * px, std::size_t size, void * pn );" in file "boost/smart_ptr/detail/sp_counted_impl.hpp"
CAUTION: dependent file libs/accumulators/doc/html/boost/accumulators/impl/../../../images/accumulators//form_113.png does not exist.
   Found while scanning file libs/accumulators/doc/html/boost/accumulators/impl/weighted_variance_impl.html
CAUTION: dependent file libs/accumulators/doc/html/boost/accumulators/impl/../../../images/accumulators//form_6.png does not exist.
   Found while scanning file libs/accumulators/doc/html/boost/accumulators/impl/weighted_variance_impl.html
CAUTION: dependent file libs/accumulators/doc/html/boost/accumulators/impl/../../../images/accumulators//form_5.png does not exist.

...

CAUTION: dependent file libs/asio/doc/html/boost_asio/reference/generic__datagram_protocol/../../../../../doc/src/boostbook.css does not exist.
   Found while scanning file libs/asio/doc/html/boost_asio/reference/generic__datagram_protocol/datagram_protocol.html
CAUTION: dependent file libs/asio/doc/html/boost_asio/reference/generic__datagram_protocol/datagram_protocol/../../../../../../doc/src/boostbook.css does not exist.
   Found while scanning file libs/asio/doc/html/boost_asio/reference/generic__datagram_protocol/datagram_protocol/overload1.html
CAUTION: dependent file libs/asio/doc/html/boost_asio/reference/generic__raw_protocol/../../../../../doc/src/boostbook.css does not exist.
   Found while scanning file libs/asio/doc/html/boost_asio/reference/generic__raw_protocol/endpoint.html
Segmentation fault (core dumped)


I've tried with relative paths and absolute paths, I've also reduced the number of packages, etc.. no difference.

The same procedure works however with 1.60.0.

Change History (3)

comment:1 by anonymous, 6 years ago

I experienced the same problem with boost 1.62.

My steps to reproduce:

wget https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.tar.bz2
tar vxfj boost_1_62_0.tar.bz2
cd boost_1_62_0
./bootstrap.sh
./b2 --ignore-site-config tools/bcp
mkdir -p ../myboost_src_1_62_0
./dist/bin/bcp --boost=. --namespace=myboost --namespace-alias asio ../myboost_src_1_62_0

Problem is reproducible with different versions of Debian and Ubuntu systems.

comment:2 by anonymous, 6 years ago

Is there a resolution here. I saw similar issues on centos7.

comment:2 by anonymous, 6 years ago

Is there a resolution here. I saw similar issues on centos7.

Note: See TracTickets for help on using tickets.