Skip to content

Commit 6a6aa4a

Browse files
committed
Don't use the version of jemalloc shipped with Houdini on MacOS (caused by 6ce7033)
Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
1 parent 359e70c commit 6a6aa4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/OpenVDBHoudiniSetup.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ endif()
288288

289289
# Jemalloc
290290

291-
if(NOT JEMALLOC_LIBRARYDIR)
291+
# * On Mac OSX, linking against Jemalloc < 4.3.0 seg-faults with this error:
292+
# malloc: *** malloc_zone_unregister() failed for 0xaddress
293+
# As of Houdini 20, it still ships with Jemalloc 3.6.0, so don't expose it
294+
# on Mac OSX (https://github.com/jemalloc/jemalloc/issues/420).
295+
if(NOT APPLE AND NOT JEMALLOC_LIBRARYDIR)
292296
set(JEMALLOC_LIBRARYDIR ${HOUDINI_LIB_DIR})
293297
endif()
294298

0 commit comments

Comments
 (0)