New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 693 - example_BVH_Example segmentation fault
Summary: example_BVH_Example segmentation fault
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: 3.2
Hardware: x86 - 64-bit Linux
: Normal Unknown
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 18:43 UTC by Orion Poplawski
Modified: 2013-12-18 17:09 UTC (History)
3 users (show)



Attachments

Description Orion Poplawski 2013-10-28 18:43:08 UTC
When running example_BVH_Example:

Brute force distance = 0.00428018, calls = 10000

Program received signal SIGSEGV, Segmentation fault.
(gdb) bt
#0  0x0000000000405037 in void std::__introselect<__gnu_cxx::__normal_iterator<Eigen::internal::vector_int_pair<double, 2>*, std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator_indirection<Eigen::internal::vector_int_pair<double, 2> > > >, long, Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::VectorComparator>(__gnu_cxx::__normal_iterator<Eigen::internal::vector_int_pair<double, 2>*, std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator_indirection<Eigen::internal::vector_int_pair<double, 2> > > >, __gnu_cxx::__normal_iterator<Eigen::internal::vector_int_pair<double, 2>*, std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator_indirection<Eigen::internal::vector_int_pair<double, 2> > > >, __gnu_cxx::__normal_iterator<Eigen::internal::vector_int_pair<double, 2>*, std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator_indirection<Eigen::internal::vector_int_pair<double, 2> > > >, long, Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::VectorComparator) ()
#1  0x000000000040522d in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build(std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator<Eigen::internal::vector_int_pair<double, 2> > >&, int, int, std::vector<Eigen::AlignedBox<double, 2>, Eigen::aligned_allocator<Eigen::AlignedBox<double, 2> > > const&, int) ()
#2  0x0000000000405281 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build(std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator<Eigen::internal::vector_int_pair<double, 2> > >&, int, int, std::vector<Eigen::AlignedBox<double, 2>, Eigen::aligned_allocator<Eigen::AlignedBox<double, 2> > > const&, int) ()
#3  0x0000000000405281 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build(std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator<Eigen::internal::vector_int_pair<double, 2> > >&, int, int, std::vector<Eigen::AlignedBox<double, 2>, Eigen::aligned_allocator<Eigen::AlignedBox<double, 2> > > const&, int) ()
#4  0x0000000000405255 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build(std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator<Eigen::internal::vector_int_pair<double, 2> > >&, int, int, std::vector<Eigen::AlignedBox<double, 2>, Eigen::aligned_allocator<Eigen::AlignedBox<double, 2> > > const&, int) ()
#5  0x0000000000405281 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build(std::vector<Eigen::internal::vector_int_pair<double, 2>, Eigen::aligned_allocator<Eigen::internal::vector_int_pair<double, 2> > >&, int, int, std::vector<Eigen::AlignedBox<double, 2>, Eigen::aligned_allocator<Eigen::AlignedBox<double, 2> > > const&, int) ()
#6  0x0000000000405942 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::KdBVH<__gnu_cxx::__normal_iterator<Eigen::Matrix<double, 2, 1, 0, 2, 1>*, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::aligned_allocator_indirection<Eigen::Matrix<double, 2, 1, 0, 2, 1> > > > >(__gnu_cxx::__normal_iterator<Eigen::Matrix<double, 2, 1, 0, 2, 1>*, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::aligned_allocator_indirection<Eigen::Matrix<double, 2, 1, 0, 2, 1> > > >, __gnu_cxx::__normal_iterator<Eigen::Matrix<double, 2, 1, 0, 2, 1>*, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::aligned_allocator_indirection<Eigen::Matrix<double, 2, 1, 0, 2, 1> > > >) ()
#7  0x00000000004024f8 in main ()

This is with Eigen 3.2 on Fedora 19, with:

/usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -DBLAS_LIBRARIES=cblas -DSUPERLU_INCLUDES=/usr/include/SuperLU -DEIGEN_TEST_OPENMP=ON

make -f unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/build.make unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/depend
cd /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570 /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/unsupported/doc/examples /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu/unsupported/doc/examples /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu/unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/DependInfo.cmake --color=
Scanning dependencies of target example_BVH_Example
make -f unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/build.make unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/build
Building CXX object unsupported/doc/examples/CMakeFiles/example_BVH_Example.dir/BVH_Example.cpp.o
cd /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu/unsupported/doc/examples && /usr/lib64/ccache/c++    -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic  -fexceptions -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi -fopenmp  -g2 -g0 -O2  -fno-inline-functions -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu/unsupported/doc/examples -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/unsupported/doc/examples -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570 -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/unsupported/doc/examples/../../../unsupported -I/export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/unsupported/doc/examples/../../../unsupported/test    -o CMakeFiles/example_BVH_Example.dir/BVH_Example.cpp.o -c /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/unsupported/doc/examples/BVH_Example.cpp
Linking CXX executable example_BVH_Example
cd /export/home/orion/fedora/eigen3/eigen-eigen-ffa86ffb5570/x86_64-redhat-linux-gnu/unsupported/doc/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/example_BVH_Example.dir/link.txt --verbose=1
/usr/lib64/ccache/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic  -fexceptions -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi -fopenmp  -g2 -g0 -O2  -fno-inline-functions   -Wl,-z,relro  CMakeFiles/example_BVH_Example.dir/BVH_Example.cpp.o  -o example_BVH_Example -rdynamic
Comment 1 Janick Martinez Esturo 2013-12-18 17:09:04 UTC
This problem seems to be related to the exact gcc version 4.8.2, see the discussion at

https://bugs.gentoo.org/show_bug.cgi?id=491796

Note You need to log in before you can comment on or make changes to this bug.