6 Dec
2005
6 Dec
'05
6:32 p.m.
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).