Re: [eigen] Re: GTest occasionally segfaults with Quaterniond typedef?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]



On Wed, May 25, 2016 at 4:35 PM, Mark Sauder <mcsauder@xxxxxxxxx> wrote:
To reproduce the issue I have to include the test along with others and comment out "EIGEN_MAKE_ALIGNED_OPERATOR_NEW".  Upon seeing the segfault occurrences, (within the larger unit test framework), it is remedied by uncommenting "EIGEN_MAKE_ALIGNED_OPERATOR_NEW"

then yes, this is expected !!

gtest creates an instance of QuaternionTest through operator new, so you need EIGEN_MAKE_ALIGNED_OPERATOR_NEW !!

problem solved.

The fact it "works" with only one test is probably because the first call to malloc is properly aligned.

gael



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/