-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some problem about pcl and eigen #5831
Comments
Try also |
Thank you for your suggestion, but the problem is still not solved. I also used pcl1.13 and the problem still occurred. |
I saw that you use a few other libraries in your project. I am not sure whether there might be some unfortunate interaction between PCL, Eigen, and one of those libraries. |
|
Can you create a minimal reproducible example, meaning a program that makes the problem occur but is a short as possible, and has no dependencies on OpenCV, Pangolin, and the other libraries? (depending on PCL is okay of course) |
be sure to add |
I have also encountered a similar problem. CmakeLists
CmakeLog
Code
Error
|
@Hetols Can you provide a full backtrace, for example from valgrind or gdb? Do you build the laser_geometry package from source after you have installed your PCL build? |
I have also encountered a similar problem. CmakeListsSame as before CmakeLog
Code
Error
GDB Info
|
@Hetols the backtrace suggests that the problem happens while freeing |
I have also encountered a similar problem. @mvieth Previously, flag CmakeLists
CmakeLog
Code & Error & GDB InfoSame as before |
Have you solved this problem? I have encounter same problem, my develop environment is: Ubuntu 22.04 with ROS2 Humble pcl 1.12.1(install through apt install) |
@yumingdong Make sure that your code is compiled with AVX, AVX2, and AVX512 disabled, or try using |
I have use |
add here is my gdb backtrace: Since I can't abstract the code into a minimum example yet, I would not show the code now. |
My code,Test3Dto3Dmatch.cpp, runs successfully when compiled in Debug mode. However, when I compile it in Release mode, I encounter a heap-buffer-overflow issue. To debug this, I added "-fno-omit-frame-pointer" and "-fsanitize=address" to the CMakeLists file. The error seems to occur within the Eigen library at Eigen::internal::handmade_aligned_free(void)*. I suspect the issue may be within functions like bimToslam::ISSextractor::operator() and bimToslam::Frontend::ExtractandMatchISS(), which are used for point cloud feature extraction. To investigate further, I created a new test file, TestISSextractor.cpp, and removed the parts related to Eigen. However, I still encounter the same error, roughly as follows:
==21835==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fffd3e607f8 at pc 0x5555555e6f82 bp 0x7fffda9fd3e0 sp 0x7fffda9fd3d0 READ of size 8 at 0x7fffd3e607f8 thread T1 ... 0x7fffd3e607f8 is located 8 bytes to the left of 15672944-byte region [0x7fffd3e60800,0x7fffd4d52e70) allocated by thread T1 here: #0 0x7ffff6ef6b40 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb40) #1 0x7ffff602fa88 in Eigen::internal::aligned_malloc(unsigned long) (/usr/lib/x86_64-linux-gnu/libpcl_filters.so.1.8+0x311a88)
I tried searching online and found similar issues, suggesting a problem between PCL and Eigen libraries. Some solutions involve enabling AVX instruction sets, so I added "-mavx2" in the CMakeLists file, but the issue remains unresolved. Here is my codehttps://github.com/timetosaygoodb/bimToslam.Here is the reference #4859
The text was updated successfully, but these errors were encountered: