openvdb: OpenVDB 6.2 crashes on startup on Focal

Hi,

Per https://github.com/SteveMacenski/spatio_temporal_voxel_layer/issues/167 and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951704, there’s an issue with loading OpenVDB 6.2 in Ubuntu Focal due to the dependency on jemalloc. It has been reproduced by multiple users and traced back to OpenVDB.

There’s a note that it needs to be compiled with --disable-initial-exec-tls to make things work properly

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Merged - jemalloc/tbbmalloc remain optional configurations for the openvdb binaries but are no longer linked into other build artefacts (i.e. libs)

Hi Steve,

Yes, we are working towards removing jemalloc as a dependency linked into the OpenVDB core shared library:

https://github.com/AcademySoftwareFoundation/openvdb/pull/749

It will then be up to host applications to choose to include a concurrent allocator. This is the more correct solution and should resolve this issue without the need for including this --disable-initial-exec-tls flag. We’re aiming for this fix to go into the upcoming 7.1.0 release of OpenVDB. Hopefully the LD_PRELOAD workaround mentioned earlier in this thread is an acceptable work-around until then.

Thanks for bringing the issue to our attention, we’ll post back here when this PR has been merged.