From 65aa685e74ff22b13968de010988c8af3d500e81 Mon Sep 17 00:00:00 2001 From: Miguel Villa Floran Date: Thu, 21 May 2026 14:53:59 -0700 Subject: [PATCH] Preserve caller's LD_PRELOAD in python.sh launchers python.sh hard-overwrote LD_PRELOAD with libcarb.so, dropping any preload the caller had already set (e.g. libgomp.so.1, required on some aarch64 Ubuntu setups (e.g. DGX Spark) to avoid a TLS-init warning at startup). --- source/scripts/python/linux-aarch64/python.sh | 2 +- source/scripts/python/linux-x86_64/python.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/scripts/python/linux-aarch64/python.sh b/source/scripts/python/linux-aarch64/python.sh index 87495ec3..ca9656a3 100755 --- a/source/scripts/python/linux-aarch64/python.sh +++ b/source/scripts/python/linux-aarch64/python.sh @@ -63,7 +63,7 @@ fi # Show icon if not running headless export RESOURCE_NAME="IsaacSim" # WAR for missing libcarb.so -export LD_PRELOAD=$SCRIPT_DIR/kit/libcarb.so +export LD_PRELOAD="$SCRIPT_DIR/kit/libcarb.so${LD_PRELOAD:+:$LD_PRELOAD}" # Run with lldb if --lldb-debug flag was specified, otherwise run normally if [[ "$use_lldb" == true ]]; then diff --git a/source/scripts/python/linux-x86_64/python.sh b/source/scripts/python/linux-x86_64/python.sh index 87495ec3..ca9656a3 100755 --- a/source/scripts/python/linux-x86_64/python.sh +++ b/source/scripts/python/linux-x86_64/python.sh @@ -63,7 +63,7 @@ fi # Show icon if not running headless export RESOURCE_NAME="IsaacSim" # WAR for missing libcarb.so -export LD_PRELOAD=$SCRIPT_DIR/kit/libcarb.so +export LD_PRELOAD="$SCRIPT_DIR/kit/libcarb.so${LD_PRELOAD:+:$LD_PRELOAD}" # Run with lldb if --lldb-debug flag was specified, otherwise run normally if [[ "$use_lldb" == true ]]; then