Segmentation fault when using CorrespondenceRejectorSampleConsensus
Hello,
when I'm trying to use pcl::registration::CorrespondenceRejectorSampleConsensus class in my ROS node, I got Segmentation fault even before the node is initialized. I prepared minimal example pakage showing this problem. Some additional information:
- I've installed ROS Indigo on my Ubuntu 14.04 using standard installation guide
- I verified this issue on two independent machines with ROS Indigo installation
- I've already asked for the help on PCL forum but I've got the response that it's not an issue of the latest PCL released
- the strangest thing is that event the segfault occurs even before the initialisation is done
To run the problem example:
- unzip the package into your workspace
- use catkin_make to build it
- execute: rosrun sac_segmentation_fault seg_fault
- you should obtain the segmentation fault and nothing else is printed into the console
Thank you in advance for any help or advices, Martin.
Hello and thanks for your quick answer - it was very helpful :)
I used the output of the GDB you proposed and after few minutes of Googling I found out that many people have similar problem and the only common nominator was usage of C++11 - not supported by PCL so far. Removing "-std=c++0x" from my CMakeLists.txt worked as charm.
Thanks again for your help.