I wanted to try code from advanced tutorial on ransac and I come across this problem: When I try to declare boost shared pointer to a point cloud
I get segmentation fault.
It corresponds to this part of code from tutorial:
30 // initialize PointClouds
31 pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
32 pcl::PointCloud<pcl::PointXYZ>::Ptr final (new pcl::PointCloud<pcl::PointXYZ>);
Here is message from GDB:
Debugger name and version: GNU gdb (GDB) 7.6.1-ubuntu
Program received signal SIGSEGV, Segmentation fault.
In boost::math::lanczos::lanczos_initializer<boost::math::lanczos::lanczos17m64, long double>::init::init() () (/usr/lib/libpcl_io.so.1.7)
84 dl-init.c: No such file or directory.
#2 0x00007ffff7de9856 in call_init (l=l@entry=0x7ffff7fd7000, argc=argc@entry=1, argv=argv@entry=0x7fffffffe5a8, env=env@entry=0x7fffffffe5b8) at dl-init.c:84
Debugger finished with status 0
I run PCL 1.7 on a Linux Mint 16 64-bit distribution.
I'm using PCL for my bachelor thesis so any help as soon as possible will be greatly appreciated since I'm stuck until I can resolve this.
Unfortunately it does. It seems weird to me too because I used the part for file reading from another test project and I only changed the actual file it connects to and added that shared_ptr and it went all to hell. And when I create new project and try out just this:
int main(int argc, char *argv)
it works fine. Could it be that file I'm trying to open is corrupted and it throws it off somehow?
* PALin00 <[hidden email]> [2014-01-05 07:23]:
> If I include any one of those 4 modules in bold font, it starts to segfault.
> Without it, it runs just fine. Any ideas what could cause this weird
Sounds strange, how did you install PCL? Can you compile the current git
version from source?
I originally wanted to program in Windows using MinGW, but I couldn't make it work somehow(I had problems compiling dependencies from source), so I was actually glad that I don't need to build it from source on Linux to make it work. But if you think that building from source could solve it, I give it a try. I guess there could be a problem in that package since it's built for Ubuntu afaik and even though Mint is Ubuntu based it could have some difference that makes it crash(Sorry if that's completely wrong, I'm not very educated on Linux).