|
Boost Users : |
From: David M Garza (David.M.Garza_at_[hidden])
Date: 2005-11-30 15:32:37
John Maddock wrote:
>> When I tried the pointer_test.cpp test program it failed with a seg
>> fault. I compiled the test program by just pointing the compiler
>> at the header files from the tarball. I wanted to be sure I had
>> the library properly installed so I'm back to troubleshooting the
>> installation.
>
>
> Not good: what you did should work, but without knowing more it's
> impossible to tell what the issue is. Try using bjam to build and
> run the smart_ptr tests:
>
> cd libs/smart_ptr/test bjam -sTOOLS=gcc test
I get 7 failures:
smart_ptr_test
shared_ptr_basic_test
shared_ptr_test
weak_ptr_test
shared_from_this_test
get_deleter_test
shared_ptr_alloc_test
The following say they've passed:
intrusive_ptr_test
atomic_count_test
lw_mutex_test
shared_ptr_assign_fail
shared_ptr_delete_fail
Tell me which files you're interested in and I can send them along.
Below is the output to the terminal from running the tests:
...found 341 targets...
...updating 84 targets...
MkDir1 ../../../bin/boost/libs/smart_ptr
MkDir1 ../../../bin/boost/libs/smart_ptr/test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc
MkDir1 ../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test
execute-test
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.run
/bin/sh[3]: 14355 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test
>
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.output
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/smart_ptr_test.test/gcc/debug/smart_ptr_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test
execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.run
/bin/sh[3]: 14375 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test
>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.output
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_basic_test.test/gcc/debug/shared_ptr_basic_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test
execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.run
/bin/sh[3]: 14400 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test
>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.output
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_test.test/gcc/debug/shared_ptr_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc
MkDir1 ../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug/weak_ptr_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug/weak_ptr_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug/weak_ptr_test
execute-test
../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug/weak_ptr_test.run
/bin/sh[3]: 14420 Memory fault(coredump)
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/weak_ptr_test.test/gcc/debug/weak_ptr_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test
execute-test
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.run
/bin/sh[3]: 14439 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test
>
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.output
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/shared_from_this_test.test/gcc/debug/shared_from_this_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test
execute-test
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.run
/bin/sh[3]: 14461 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test
>
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.output
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/get_deleter_test.test/gcc/debug/get_deleter_test.run...
MkDir1 ../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug/intrusive_ptr_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug/intrusive_ptr_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug/intrusive_ptr_test
execute-test
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug/intrusive_ptr_test.run
**passed**
../../../bin/boost/libs/smart_ptr/test/intrusive_ptr_test.test/gcc/debug/intrusive_ptr_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug/atomic_count_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug/atomic_count_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug/atomic_count_test
execute-test
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug/atomic_count_test.run
**passed**
../../../bin/boost/libs/smart_ptr/test/atomic_count_test.test/gcc/debug/atomic_count_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc
MkDir1 ../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug/lw_mutex_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug/lw_mutex_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug/lw_mutex_test
execute-test
../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug/lw_mutex_test.run
**passed**
../../../bin/boost/libs/smart_ptr/test/lw_mutex_test.test/gcc/debug/lw_mutex_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test/gcc/debug/shared_ptr_assign_fail.o
shared_ptr_assign_fail.cpp: In function `int main()':
shared_ptr_assign_fail.cpp:30: error: no match for 'operator=' in 'p =
(((int*)operator new(4u)), (((*<anonymous>) <unknown operator> 42),
<anonymous>))'
/disk3/users4/dgarza/boost_1_33_0/boost/shared_ptr.hpp:146: note:
candidates are: boost::shared_ptr<T>&
boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = int]
(failed-as-expected)
../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test/gcc/debug/shared_ptr_assign_fail.o
**passed**
../../../bin/boost/libs/smart_ptr/test/shared_ptr_assign_fail.test/gcc/debug/shared_ptr_assign_fail.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test/gcc/debug/shared_ptr_delete_fail.o
shared_ptr_delete_fail.cpp: In function `int main()':
shared_ptr_delete_fail.cpp:25: error: type `class
boost::shared_ptr<int>' argument given to `delete', expected pointer
(failed-as-expected)
../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test/gcc/debug/shared_ptr_delete_fail.o
**passed**
../../../bin/boost/libs/smart_ptr/test/shared_ptr_delete_fail.test/gcc/debug/shared_ptr_delete_fail.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test
MkDir1 ../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc
MkDir1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug
gcc-C++-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.o
gcc-Link-action
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test
Chmod1
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test
execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.run
/bin/sh[3]: 14575 Memory fault(coredump)
====== BEGIN OUTPUT ======
EXIT STATUS: 139
====== END OUTPUT ======
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test
>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.output
2>&1
status=$?
echo >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.output
echo EXIT STATUS: $status >>
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.output
if test $status -eq 0 ; then
cp -f
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.output
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.run
fi
verbose=1
if test $status -ne 0 ; then
verbose=0
fi
if test $verbose -eq 0 ; then
echo ====== BEGIN OUTPUT ======
cat
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.output
echo ====== END OUTPUT ======
fi
exit $status
...failed execute-test
../../../bin/boost/libs/smart_ptr/test/shared_ptr_alloc_test.test/gcc/debug/shared_ptr_alloc_test.run...
...failed updating 7 targets...
...skipped 7 targets...
...updated 70 targets...
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