[Bug libstdc++/59557] [4.8/4.9 Regression] Miscompilation after libstdc++ change
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 19 15:56:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59557
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2013-12-19
CC| |trippels at gcc dot gnu.org
--- Comment #8 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % /usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3/c++ -g -O2
BVH_Example.cpp
markus@x4 tmp % gdb ./a.out
Reading symbols from ./a.out...done.
(gdb) run
Starting program: /var/tmp/a.out
Brute force distance = 0.00428018, calls = 10000
Program received signal SIGSEGV, Segmentation fault.
__unguarded_partition<__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> > > >, Eigen::internal::vector_int_pair<double, 2>, Eigen::KdBVH<double, 2,
Eigen::Matrix<double, 2, 1> >::VectorComparator> (__comp=..., __pivot=...,
__last=..., __first=<error reading variable: Cannot access memory at address
0x428000>)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_algo.h:2263
2263 while (__comp(*__first, __pivot))
(gdb) bt
#0
__unguarded_partition<__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> > > >, Eigen::internal::vector_int_pair<double, 2>, Eigen::KdBVH<double, 2,
Eigen::Matrix<double, 2, 1> >::VectorComparator> (__comp=..., __pivot=...,
__last=..., __first=<error reading variable: Cannot access memory at address
0x428000>)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_algo.h:2263
#1
__unguarded_partition_pivot<__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> > > >, Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1>
>::VectorComparator> (__comp=...,
__last=..., __first=...) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_algo.h:2296
#2
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> (__first=...,
__nth=..., __last=..., __depth_limit=2, __comp=__comp@entry=...) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_algo.h:2394
#3 0x0000000000403d9d in
nth_element<__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> > > >, Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1>
>::VectorComparator> (__comp=...,
__last=..., __nth=..., __first=...) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4/bits/stl_algo.h:5417
#4 Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1, 0, 2, 1> >::build
(this=this@entry=0x7fffffffe240, objCenters=std::vector of length 100, capacity
100 = {...},
from=from@entry=68, to=to@entry=75, objBoxes=std::vector of length 100,
capacity 100 = {...}, dim=dim@entry=0)
at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:203
#5 0x0000000000403df1 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1,
0, 2, 1> >::build (this=this@entry=0x7fffffffe240,
objCenters=std::vector of length 100, capacity 100 = {...},
from=from@entry=62, to=to@entry=75, objBoxes=std::vector of length 100,
capacity 100 = {...},
dim=dim@entry=1) at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:207
#6 0x0000000000403df1 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1,
0, 2, 1> >::build (this=this@entry=0x7fffffffe240,
objCenters=std::vector of length 100, capacity 100 = {...},
from=from@entry=50, to=to@entry=75, objBoxes=std::vector of length 100,
capacity 100 = {...},
dim=dim@entry=0) at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:207
#7 0x0000000000403dc5 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1,
0, 2, 1> >::build (this=this@entry=0x7fffffffe240,
objCenters=std::vector of length 100, capacity 100 = {...},
from=from@entry=50, to=to@entry=100, objBoxes=std::vector of length 100,
capacity 100 = {...},
dim=dim@entry=1) at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:205
#8 0x0000000000403df1 in Eigen::KdBVH<double, 2, Eigen::Matrix<double, 2, 1,
0, 2, 1> >::build (this=this@entry=0x7fffffffe240,
objCenters=std::vector of length 100, capacity 100 = {...},
from=from@entry=0, to=to@entry=100, objBoxes=std::vector of length 100,
capacity 100 = {...},
dim=dim@entry=0) at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:207
#9 0x00000000004044b2 in
init<__gnu_cxx::__normal_iterator<Eigen::Matrix<double, 2, 1>*,
std::vector<Eigen::Matrix<double, 2, 1>,
Eigen::aligned_allocator_indirection<Eigen::Matrix<double, 2, 1> > > >, int>
(boxEnd=0, boxBegin=0, end=..., begin=..., this=<optimized out>)
at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:119
#10 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> > > >
> (this=0x7fffffffe240, begin=..., end=...)
at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/Eigen/src/BVH/KdBVH.h:83
#11 0x0000000000401068 in main () at
/home/abuild/rpmbuild/BUILD/eigen-eigen-ffa86ffb5570/unsupported/doc/examples/BVH_Example.cpp:47
(gdb)
More information about the Gcc-bugs
mailing list