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

test: bvh_model dereferences a null smart_ptr #600

Open
nim65s opened this issue Jun 25, 2024 · 0 comments
Open

test: bvh_model dereferences a null smart_ptr #600

nim65s opened this issue Jun 25, 2024 · 0 comments

Comments

@nim65s
Copy link
Contributor

nim65s commented Jun 25, 2024

Hi,

Some linux distributions (ArchLinux, but also Fedora and other RedHat things) use the _GLIBCXX_ASSERTIONS flag in their packages. And when we activate this flag on hpp-fcl devel / coal branches, the building_bvh_models test fail with:

/usr/include/c++/11/bits/shared_ptr_base.h:979: std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type& std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous
> >::operator*() const [with _Tp = std::vector<coal::Triangle>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false; std::__shared_ptr_acc
ess<_Tp, _Lp, <anonymous>, <anonymous> >::element_type = std::vector<coal::Triangle>]: Assertion '_M_get() != nullptr' failed.
unknown location(0): fatal error: in "building_bvh_models": signal: SIGABRT (application abort requested)

This show a null smart_ptr was dereferenced somewhere in that test.

To reproduce this, CXXFLAGS=-D_GLIBCXX_ASSERTIONS shoud be enough.

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

No branches or pull requests

1 participant