Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-12-06 13:32:26


David M Garza wrote:
> I tried building smart_ptr_test.cpp using the following command:
>
> g++ -I /users4/dgarza/boost_1_33_0/ -O0 -o smart_ptr_test
> smart_ptr_test.cpp
>
> just to make sure I had control of the optimization level. When I ran
> it I got the following output:
>
> UDT with value 999888777 being destroyed
> UDT with value 111222333 being destroyed
> Segmentation fault (core dumped)
>
> When the optimization level goes to -O2, the seg fault turns to a bus
> error.
>
> Again, this is with gcc 3.4.3, and the machine is an Itanium 2
> workstation running HPUX 11.22.

Itanium? Can you try the same test with -DBOOST_SP_USE_PTHREADS? This could
be a problem in the IA64 implementation
(boost/detail/sp_counted_base_gcc_ia64.hpp).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net