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

[ Thread Index | Date Index | More Archives ]

Excellent! Thank you Gael!

Thanks to everyone else too!  (All my unit tests are fixed up with EIGEN_MAKE_ALIGNED_OPERATOR_NEW now!)

I appreciate it a lot!


On Wed, May 25, 2016 at 10:22 AM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

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.


Mail converted by MHonArc 2.6.19+