debug seg fault in boost::math::lanczos with libpcl_surface

I get the following error only when I debug using gdb on my code compiled with debug flag Program received signal SIGSEGV, Segmentation fault. 0x00007fffc79a7ff0 in boost::math::lanczos::