{"action":"created","issue":{"url":"https://api.github.com/repos/openMVG/openMVG/issues/703","repository_url":"https://api.github.com/repos/openMVG/openMVG","labels_url":"https://api.github.com/repos/openMVG/openMVG/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/openMVG/openMVG/issues/703/comments","events_url":"https://api.github.com/repos/openMVG/openMVG/issues/703/events","html_url":"https://github.com/openMVG/openMVG/issues/703","id":195848107,"number":703,"title":"Segfault with Eigen 3.3.1","user":{"login":"bjornpiltz","id":1873764,"avatar_url":"https://avatars.githubusercontent.com/u/1873764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornpiltz","html_url":"https://github.com/bjornpiltz","followers_url":"https://api.github.com/users/bjornpiltz/followers","following_url":"https://api.github.com/users/bjornpiltz/following{/other_user}","gists_url":"https://api.github.com/users/bjornpiltz/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornpiltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornpiltz/subscriptions","organizations_url":"https://api.github.com/users/bjornpiltz/orgs","repos_url":"https://api.github.com/users/bjornpiltz/repos","events_url":"https://api.github.com/users/bjornpiltz/events{/privacy}","received_events_url":"https://api.github.com/users/bjornpiltz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-15T16:18:46Z","updated_at":"2016-12-21T12:10:54Z","closed_at":null,"body":"I tested openMVG with my Linux 64 bit GCC setup, where I have Eigen 3.3.1 and Ceres 1.12 installed and make test fails with the following output:\r\n\r\n```\r\nThe following tests FAILED:\r\n\t  8 - openMVG_test_features (SEGFAULT)\r\n\t 19 - openMVG_lInftyCV_test_triangulation (SEGFAULT)\r\n\t 21 - openMVG_lInftyCV_test_resection_robust (SEGFAULT)\r\n\t 37 - openMVG_test_triangulation_nview (SEGFAULT)\r\n\t 43 - openMVG_test_solver_resection_kernel (SEGFAULT)\r\n\t 62 - openMVG_test_sequential_SfM (SEGFAULT)\r\n\t 63 - openMVG_test_global_SfM (SEGFAULT)\r\n```\r\n\r\nThey all seem related to [Using fixed size Eigen objects in STL containers](https://eigen.tuxfamily.org/dox-devel/group__TopicStlContainers.html)\r\nI can fix all but one with the attached patch. `openMVG_test_global_SfM` needs further investigation.\r\n[eigen_aligned.patch.txt](https://github.com/openMVG/openMVG/files/655173/eigen_aligned.patch.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openMVG/openMVG/issues/comments/268508259","html_url":"https://github.com/openMVG/openMVG/issues/703#issuecomment-268508259","issue_url":"https://api.github.com/repos/openMVG/openMVG/issues/703","id":268508259,"user":{"login":"bjornpiltz","id":1873764,"avatar_url":"https://avatars.githubusercontent.com/u/1873764?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornpiltz","html_url":"https://github.com/bjornpiltz","followers_url":"https://api.github.com/users/bjornpiltz/followers","following_url":"https://api.github.com/users/bjornpiltz/following{/other_user}","gists_url":"https://api.github.com/users/bjornpiltz/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornpiltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornpiltz/subscriptions","organizations_url":"https://api.github.com/users/bjornpiltz/orgs","repos_url":"https://api.github.com/users/bjornpiltz/repos","events_url":"https://api.github.com/users/bjornpiltz/events{/privacy}","received_events_url":"https://api.github.com/users/bjornpiltz/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T12:10:54Z","updated_at":"2016-12-21T12:10:54Z","body":"Same segfaults and an additional problem\r\n\r\n```\r\nBuilding CXX object openMVG/sfm/CMakeFiles/openMVG_sfm.dir/sfm_data_BA_ceres.cpp.o\r\nIn file included from /openMVG/src/openMVG/sfm/sfm_data_BA_ceres.cpp:8:\r\nIn file included from /openMVG/src/openMVG/sfm/sfm_data_BA_ceres_camera_functor.hpp:11:\r\nIn file included from /usr/local/include/ceres/ceres.h:37:\r\nIn file included from /usr/local/include/ceres/autodiff_cost_function.h:132:\r\nIn file included from /usr/local/include/ceres/internal/autodiff.h:145:\r\n/usr/local/include/ceres/jet.h:251:3: error: requested alignment is less than minimum alignment of 32 for type 'Eigen::Matrix<double, 12, 1, kAlignHint>'\r\n  alignas(kAlignment) Eigen::Matrix<T, N, 1, kAlignHint> v;\r\n  ^\r\n/usr/local/include/ceres/internal/autodiff.h:232:34: note: in instantiation of template class 'ceres::Jet<double, 12>' requested here\r\n    FixedArray<JetT, (256 * 7) / sizeof(JetT)> x(\r\n                                 ^\r\n```\r\n\r\nSeems related to the alignment changes."}}
{"actor":{"display_login":"bjornpiltz"}}