Already answered: http://answers.ros.org/question/210533/memory-corruption/ It's the way I define my pointer. The funny thing is that I have already done it the proper way a few lines above at PointCloudPtr pclCloud_filtered(new PointCloud); but pointing at an empty point cloud instance.