{"action":"created","issue":{"url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/10","repository_url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release","labels_url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/10/comments","events_url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/10/events","html_url":"https://github.com/ros-gbp/cartographer_ros-release/issues/10","id":330017754,"node_id":"MDU6SXNzdWUzMzAwMTc3NTQ=","number":10,"title":"\"cartographer_node\" received signal SIGILL, Illegal instruction.","user":{"login":"cschuet","id":25035505,"node_id":"MDQ6VXNlcjI1MDM1NTA1","avatar_url":"https://avatars3.githubusercontent.com/u/25035505?v=4","gravatar_id":"","url":"https://api.github.com/users/cschuet","html_url":"https://github.com/cschuet","followers_url":"https://api.github.com/users/cschuet/followers","following_url":"https://api.github.com/users/cschuet/following{/other_user}","gists_url":"https://api.github.com/users/cschuet/gists{/gist_id}","starred_url":"https://api.github.com/users/cschuet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschuet/subscriptions","organizations_url":"https://api.github.com/users/cschuet/orgs","repos_url":"https://api.github.com/users/cschuet/repos","events_url":"https://api.github.com/users/cschuet/events{/privacy}","received_events_url":"https://api.github.com/users/cschuet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-06T20:20:12Z","updated_at":"2018-06-06T20:44:45Z","closed_at":null,"author_association":"NONE","body":"We installed the ros-melodic-cartographer-ros package from the ros-shadow-fixed repository and it seems none of the binaries can be run as they crash with an \"Illegal instruction\" error.\r\n\r\nReproduced on two systems:\r\n\r\n```\r\nuname -a\r\nLinux lenovo-Y50 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n```\r\nand\r\n\r\n```\r\nuname -a\r\nLinux ubuntu 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC \r\n2018 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\n```\r\nlsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 18.04 LTS\r\nRelease:\t18.04\r\nCodename:\tbionic\r\n```\r\n\r\n_Observation:_ file produces different signatures for the cartographer and the other ROS melodic binaries\r\n\r\n```\r\nfile /opt/ros/melodic/bin/cartographer_occupancy_grid_node \r\n/opt/ros/melodic/bin/cartographer_occupancy_grid_node: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=b46d61360a0b88eda46f3dd4e9526899e769f18c, stripped\r\n```\r\n\r\n```\r\nfile /opt/ros/melodic/bin/rviz\r\n/opt/ros/melodic/bin/rviz: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=586128baac0a81db175b2968490a8c9bc8538944, stripped\r\n```\r\n\r\n## cartographer_node\r\n\r\n```\r\nStarting program: /opt/ros/melodic/lib/cartographer_ros/cartographer_node -configuration_directory /opt/ros/melodic/share/cartographer_ros/configuration_files -configuration_basename backpack_2d.lua\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n[New Thread 0x7fffe9dc0700 (LWP 18715)]\r\n[New Thread 0x7fffe95bf700 (LWP 18716)]\r\n[New Thread 0x7fffe8dbe700 (LWP 18717)]\r\n[New Thread 0x7fffe3fff700 (LWP 18718)]\r\n\r\nThread 1 \"cartographer_no\" received signal SIGILL, Illegal instruction.\r\n0x0000555555666598 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, char const*) ()\r\n(gdb) bt\r\n#0  0x0000555555666598 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, char const*) ()\r\n#1  0x00007ffff5b315a1 in ros::start() () from /opt/ros/melodic/lib/libroscpp.so\r\n#2  0x000055555564e167 in main ()\r\n```\r\n\r\n## cartographer_rosbag_validate\r\n\r\n```\r\nStarting program: /opt/ros/melodic/lib/cartographer_ros/cartographer_rosbag_validate -bag_filename /home/gaschler/Downloads/b2-2016-04-05-14-44-52.bag\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n\r\nProgram received signal SIGILL, Illegal instruction.\r\ncartographer_ros::(anonymous namespace)::LaserScanToPointCloudWithIntensities<sensor_msgs::MultiEchoLaserScan_<std::allocator<void> > > (msg=...)\r\n    at ./cartographer_ros/msg_conversion.cc:104\r\n104\t./cartographer_ros/msg_conversion.cc: No such file or directory.\r\n(gdb) bt\r\n#0  cartographer_ros::(anonymous namespace)::LaserScanToPointCloudWithIntensities<sensor_msgs::MultiEchoLaserScan_<std::allocator<void> > > (msg=...)\r\n    at ./cartographer_ros/msg_conversion.cc:104\r\n#1  0x0000555555588a7d in cartographer_ros::ToPointCloudWithIntensities (msg=...) at ./cartographer_ros/msg_conversion.cc:181\r\n#2  0x000055555556e94f in cartographer_ros::(anonymous namespace)::RangeDataChecker::ReadRangeMessage<sensor_msgs::MultiEchoLaserScan_<std::allocator<void> > > (\r\n    to=<synthetic pointer>, from=<synthetic pointer>, range_checksum=0x7fffffffd460, message=...) at ./cartographer_ros/rosbag_validate_main.cc:218\r\n#3  cartographer_ros::(anonymous namespace)::RangeDataChecker::CheckMessage<sensor_msgs::MultiEchoLaserScan_<std::allocator<void> > > (message=..., this=0x7fffffffd370)\r\n    at ./cartographer_ros/rosbag_validate_main.cc:155\r\n#4  cartographer_ros::(anonymous namespace)::Run (bag_filename=..., dump_timing=<optimized out>) at ./cartographer_ros/rosbag_validate_main.cc:275\r\n#5  0x000055555556c7b2 in main (argc=<optimized out>, argv=<optimized out>) at ./cartographer_ros/rosbag_validate_main.cc:423\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/comments/395207654","html_url":"https://github.com/ros-gbp/cartographer_ros-release/issues/10#issuecomment-395207654","issue_url":"https://api.github.com/repos/ros-gbp/cartographer_ros-release/issues/10","id":395207654,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTIwNzY1NA==","user":{"login":"cschuet","id":25035505,"node_id":"MDQ6VXNlcjI1MDM1NTA1","avatar_url":"https://avatars3.githubusercontent.com/u/25035505?v=4","gravatar_id":"","url":"https://api.github.com/users/cschuet","html_url":"https://github.com/cschuet","followers_url":"https://api.github.com/users/cschuet/followers","following_url":"https://api.github.com/users/cschuet/following{/other_user}","gists_url":"https://api.github.com/users/cschuet/gists{/gist_id}","starred_url":"https://api.github.com/users/cschuet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschuet/subscriptions","organizations_url":"https://api.github.com/users/cschuet/orgs","repos_url":"https://api.github.com/users/cschuet/repos","events_url":"https://api.github.com/users/cschuet/events{/privacy}","received_events_url":"https://api.github.com/users/cschuet/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T20:44:45Z","updated_at":"2018-06-06T20:44:45Z","author_association":"NONE","body":"@mikaelarguedas seems vmovdqu64 is part of AVX-512 which is only supported by a range of server CPUs ([see here](https://en.wikipedia.org/wiki/AVX-512#CPUs_with_AVX-512)).\r\n\r\nCould it be possible that your build servers have one of those CPUs and you had\r\n\r\n```\r\n-march=native\r\n```\r\n\r\nas a flag in the compilation call which would cause it to generate code for the host machines instruction code? Just a wild guess."}}
{"actor":{"display_login":"cschuet"}}