Segfaults in __mm_loadh_pd with clang 2.8

Submitted by Benoit Jacob

Assigned to Nobody

Link to original bugzilla bug (#201)

Description

Right now 51% tests are failing with Clang 2.8 / linux / x86-64 ! Looking at nomalloc_2, I get a segfault with this stack:


Program received signal SIGSEGV, Segmentation fault.  

0x0000000000480827 in ploadu (from=0x7fffffffdf60) at /home/bjacob/eigen/Eigen/src/Core/arch/SSE/PacketMath.h:270  

270       res = _mm_loadh_pd(res,from+1);  

(gdb) bt  

#0  0x0000000000480827 in ploadu (from=0x7fffffffdf60) at /home/bjacob/eigen/Eigen/src/Core/arch/SSE/PacketMath.h:270  

#1  0x0000000000480795 in ploadt (from=0x7fffffffdf60) at /home/bjacob/eigen/Eigen/src/Core/GenericPacketMath.h:288  

#2  0x0000000000494dc0 in packet (this=0x7fffffffb6a0, index=0) at /home/bjacob/eigen/Eigen/src/Core/MapBase.h:135  

#3  0x0000000000494d19 in packet (this=0x7fffffffb6a0, index=0) at /home/bjacob/eigen/Eigen/src/Core/CwiseUnaryOp.h:133  

#4  0x0000000000494b4c in copyPacket (this=0x7fffffffb740, index=0, other=...) at /home/bjacob/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h:134  

#5  0x00000000004947ba in run (dst=..., src=...) at /home/bjacob/eigen/Eigen/src/Core/Assign.h:422  

#6  0x0000000000494621 in lazyAssign (this=0x7fffffffb740, rhs=...) at /home/bjacob/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h:150  

#7  0x0000000000494430 in run (dst=..., other=...) at /home/bjacob/eigen/Eigen/src/Core/Assign.h:534  

#8  0x00000000004943f2 in operator= (this=0x7fffffffb740, other=...) at /home/bjacob/eigen/Eigen/src/Core/Assign.h:574  

#9  0x000000000049435c in operator= (this=0x7fffffffb740, _rhs=...) at /home/bjacob/eigen/Eigen/src/Core/SelfCwiseBinaryOp.h:163  

#10 0x0000000000490913 in operator+= (this=0x7fffffffb960, other=...) at /home/bjacob/eigen/Eigen/src/Core/CwiseBinaryOp.h:236  

#11 0x00000000004a1bb2 in run (rows=4, cols=4, _lhs=0x7fffffffdf40, lhsStride=4, _rhs=0x7fffffffdf40, rhsIncr=1, _res=0x7fffffffdeb0, resIncr=1, alpha=1)  

    at /home/bjacob/eigen/Eigen/src/Core/products/TriangularMatrixVector.h:69  

#12 0x00000000004a4a07 in run (prod=..., dest=..., alpha=1) at /home/bjacob/eigen/Eigen/src/Core/products/TriangularMatrixVector.h:264  

#13 0x00000000004a4692 in scaleAndAddTo (this=0x7fffffffd200, dst=..., alpha=1) at /home/bjacob/eigen/Eigen/src/Core/products/TriangularMatrixVector.h:173  

#14 0x00000000004a4482 in scaleAndAddTo (this=0x7fffffffd200, dst=..., alpha=1) at /home/bjacob/eigen/Eigen/src/Core/ProductBase.h:124  

#15 0x00000000004a443e in evalTo (this=0x7fffffffd200, dst=...) at /home/bjacob/eigen/Eigen/src/Core/ProductBase.h:115  

#16 0x00000000004a43da in lazyAssign (this=0x7fffffffd258, other=...) at /home/bjacob/eigen/Eigen/src/Core/ProductBase.h:283  

#17 0x00000000004a436d in run (dst=..., other=...) at /home/bjacob/eigen/Eigen/src/Core/Assign.h:534  

#18 0x000000000047dc70 in operator= (this=0x7fffffffd250, other=...) at /home/bjacob/eigen/Eigen/src/Core/NoAlias.h:54  

#19 0x000000000047ba78 in nomalloc (m=...) at /home/bjacob/eigen/test/nomalloc.cpp:86  

#20 0x0000000000476efd in test_nomalloc () at /home/bjacob/eigen/test/nomalloc.cpp:174  

#21 0x0000000000476d21 in main (argc=1, argv=0x7fffffffe338) at /home/bjacob/eigen/test/main.h:546  

Blocking

#25 (closed)