This forum has been archived. All content is frozen. Please use KDE Discuss instead.

'constructor call on misaligned address' errors with ubsan

Tags: None
(comma "," separated)
jbauer
Registered Member
Posts
25
Karma
0
After upgrading to Eigen 3.3, when I run my code through the undefined behavior sanitizer in GCC I obtain errors about 'constructor call on misaligned address' -- what would cause this error? The class that triggers the error has the following member variables:
Vector3d
Quaternion with doubles
Vector3d
Vector3d

Are these errors expected? How can I fix this error with Eigen 3.3?
jbauer
Registered Member
Posts
25
Karma
0
Replacing the quaternion member variable with a 3x3 matrix resolved the issues with the undefined behavior sanitizer... it would be nice to use a quaternion, but if it triggers undefined behavior that is a bit strange.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]