Skip to content
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

Solution about error "double free or corruption (out)" in Ubuntu 18.04 environment #123

Open
zhh2005757 opened this issue Nov 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@zhh2005757
Copy link

Is your feature request related to a problem? Please describe.
When running the repo codes in Ubuntu 18.04, it always reports "double free or corruption (out)" error. GDB finds out that the error is from "dataset.emplace_back(std::make_shared(data_path, bag_name));" in the codes, more specifically, from libiridescence.so.

Describe the solution you tried
This bug is due to the "-march=native" flag in Iridescence compilation. What we should do is turn on the cmake option "BUILD_WITH_MARCH_NATIVE" in CMakelists.txt of Iridescence repo and re-make (install) it. Then the viewer of this calibration program can work!

屏幕截图_70
@koide3
Copy link
Owner

koide3 commented Nov 10, 2024

Thanks for the detailed issue report. I guess you manually built and installed PCL (or some other libraries)? The error may stem from an inconsistent use of -march=naive option for dependency libraries. Mixing libraries built with/without -march=native causes segfaults. While "apt"-installed libraries are built without this flag, manual installation often enables it.

@zhh2005757
Copy link
Author

Yes I manually installed pcl 1.10 since the Ubuntu 18.04 built-in pcl library is 1.8. I think you are right that this error is caused due to the mismatching -march=native flags in different libraries.

@koide3
Copy link
Owner

koide3 commented Nov 10, 2024

Thanks for confirming. I think this information is useful for people in the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants