Closed PatrickQianKun closed 4 years ago
the place cause the problem
#0 0x00007f86bf534680 in flann::any::reset (this=0x7f86b42a09f8) at /usr/include/flann/util/any.h:259
259 policy->static_delete(&object);
policy is a non null pointer, everything seem fine except the seg fault
PCL 1.8
Is this problem on PCL master too? Please note your distro is EOL
@kunaltyagi I didn't test the newest version of pcl, but since the version of flann pcl used haven't updated, I believe this problem may still exist even for the pcl master.
I've confirmed this as not-a-bug in PCL. I don't see how PCL can prevent this bug.
It happens in FLANN's private implementation with no impact from any input by PCL.
https://github.com/mariusmuja/flann/blob/master/src/cpp/flann/algorithms/kdtree_single_index.h#L55
Closing the issue, but please feel free to continue discussion and searching for mitigation.
When use kdtree just as what example said, I got this segmentation fault. the call stack is as follows
my environment is