Bug #791

LLDataTest.DataAssignment Unittest failure

Added by ganeva about 6 years ago. Updated about 6 years ago.

Status:ArchivedStart date:01 Sep 2014
Priority:NormalDue date:
Assignee:herck% Done:

0%

Category:-
Target version:Sprint 24

Description

This failure is reproducible only time to time, not at each compilation. Difficult to catch.

OS: Mac OS X 10.9.4 Maverics
Eigen3 version 3.2.2 (from the developer webpage)

Error message:

/Users/ganeva/build/bornagain/BornAgain/Tests/UnitTests/TestCore/LLDataTest.h:158: Failure
Value of: Eigen::Matrix2d::Identity()
  Actual: 3-byte object <26-00 00>
Expected: (*other_matrix_data_2d)[7]
Which is: 32-byte object <00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>

History

#1 Updated by herck about 6 years ago

  • Status changed from New to Sprint
  • Assignee set to herck
  • Target version set to Sprint 24

Passing Eigen::Matrix objects (for fixed sizes, thus depending on memory alignment) by value is a bad idea:
http://eigen.tuxfamily.org/dox/group__TopicPassingByValue.html

#2 Updated by herck about 6 years ago

  • Status changed from Sprint to Resolved

#3 Updated by herck about 6 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF