You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crash occurs because oneTBB dlopens TBBBind with RTLD_DEEPBIND (#426), which causes HWLOC to ignore global symbols, including those replaced by TBBMallocProxy. Libc, however, does not ignore them, so when HWLOC uses libc functions (e.g., asprintf), they allocate using malloc from TBBMallocProxy. The crash occurs when HWLOC tries to release the memory by directly using (non-replaced) free.
Summary
App will crash when linking both libtbb.so and libtbbmalloc_proxy.so
free(): invalid pointer
Aborted (core dumped)
Version
master:fa5ed8e81c1ca088b7627e031b9cb059504edb16
Environment
OS: ubuntu 20.04
Observed Behavior
Document behavior you observe.
Expected Behavior
Document behavior you expect.
Steps To Reproduce
Check that the issue is reproducible with the latest revision
of the master branch. Include all the steps to reproduce the issue.
main.cpp
CMakeLists.txt
steps:
https://github.com/open-mpi/hwloc/archive/refs/tags/hwloc-2.9.3.zip
https://github.com/uxlfoundation/oneTBB/tree/master(fa5ed8e81c1ca088b7627e031b9cb059504edb16)
Place the compiled tbb and hwloc (cp hwloc library to tbb/lib64) in the directory where main.cpp is located.
export LD_LIBRARY_PATH=../tbb/lib64:${LD_LIBRARY_PATH}
./tbb_test
The text was updated successfully, but these errors were encountered: