Repository navigation
Description
Environment
| Isaac Sim | 6.0.1 (pip: isaacsim 6.0.1.0, isaacsim-kernel 6.0.1.0) |
| Kit | 110.1.2 (kit_version 110.1.2+production.326809.f9bf0dda.gl) |
| omni.physx | 110.1.13+110.1.2 (omni.physx-110.1.13+110.1.2.lx64.r.cp312.u7f4) |
libomni.physx.plugin.so sha256 |
ee99f1bdeb1b444a693019b40d62c1e8c23e64f9a614ddaa99e05e8d7f9b8257 |
| Isaac Lab | 3.0.0 (isaaclab extension 6.1.17) |
| Python | 3.12.3 |
| GPU / driver | NVIDIA GeForce RTX 5090 (32 GB), driver 580.178.04 |
| OS | Ubuntu 24.04.4 LTS, kernel 7.0.0-28-generic, glibc 2.39 |
We see the same failure on a second machine, a multi-GPU Linux node with RTX 5090s running the same Isaac Sim build. There it happened during a 4-process (one process per GPU) training start.
Symptoms
- An Isaac Lab environment build sometimes aborts with SIGABRT during the PhysX stage attach. This is the step where Isaac Lab replicates physics for the cloned environments (
replicate_physics=True); the abort comes right after Isaac Lab printsReplicate physics: True. - glibc prints one of:
double free or corruption (!prev)malloc(): unaligned tcache chunk detected
- The abort is intermittent: identical builds usually succeed. In our setup the rate is about 8% per build, so multi-process starts fail often: about 28% of 4-process starts and about 49% of 8-process starts.
- Python-level handlers print nothing useful because the abort happens on a native carb.tasking worker thread.
Mechanism (from the cores and the shipped binary; offsets are for the build above)
- omni.physx keeps one global profile-stats container of
{zone name, ms}records. Its "custom profiling" flag is on by default: the constructor writes it, andIPhysxBenchmarks.enable_profile()is the only other code that writes it. After a replicated attach,get_physx_benchmarks_interface().get_profile_stats()returns about 6 zones by default, and 0 with profiling disabled. PhysXReplicator::replicateschedules task lambdas on carb.tasking workers; their zones are...::addCollectionsand...::proccessReplicationData. Each lambda ends with, in effect,if (profilingEnabled) stats.push_back(...), and no lock is taken.- The push sites are around
libomni.physx.plugin.so+0x157149..0x157187. - The vector reallocation is
+0x162630, called from+0x157279and+0x157eef.
- The push sites are around
- When two workers grow the vector at the same time, one of them frees the old buffer while the other is still writing into it. The result is either an immediate double free or a corrupted tcache that a later
mallocdetects. - Our scenes clone many different rigid-body prototypes; replication is called once per prototype. That produces many concurrent replicate tasks, which makes the race much more likely.
Representative backtraces (crashing thread)
Case 1: free during the vector growth, on a carb.tasking fiber (7 of 14 cores look like this).
#0 pthread_kill (libc.so.6 + 0x9ebec)
#1 raise (libc.so.6 + 0x4527e)
#2 abort (libc.so.6 + 0x2898f)
...
#7 __libc_free (libc.so.6 + 0xade8e)
#8 n/a (libomni.physx.plugin.so + 0x162714)
#9 n/a (libomni.physx.plugin.so + 0x157ef4)
#10 n/a (libcarb.tasking.plugin.so + 0x301d7)
#11 n/a (libcarb.tasking.plugin.so + 0x2231c)
#12 n/a (libcarb.tasking.plugin.so + 0x2233f)
#13 make_fcontext (libcarb.tasking.plugin.so + 0x36419)
Case 2: a later malloc in the same replicate task detects the corrupted heap (4 of 14 cores).
#5 malloc (libc.so.6 + 0xada2c)
#6 operator new(unsigned long) (libstdc++.so.6 + 0xbb904)
#7 std::vector<unsigned long>::_M_realloc_insert<unsigned long const&>(...) (libomni.physx.plugin.so + 0x13257e)
#8 n/a (libomni.physx.plugin.so + 0x1578e6)
#9 n/a (libcarb.tasking.plugin.so + 0x301d7)
#10 n/a (libcarb.tasking.plugin.so + 0x2231c)
The remaining 3 cores detect the corruption later: one in a deeper malloc inside libomni.physx.plugin.so, one in the cooking plugin, and one on the main thread inside forceLoadPhysicsFromUSD. That main-thread core is waiting in carb.tasking on PhysXReplicator::replicate. No core has the PhysX GPU library (libPhysXGpu_64.so) or user code on the crashing stack.
Abort rates: profiling on (default) vs off
Each run builds an Isaac Lab manager-based environment: one articulated robot plus about 100 different rigid-object prototypes cloned over the environments, replicate_physics=True. It then resets and steps 5 times. All runs are on one RTX 5090.
| Condition | Profiling on (default) | Profiling off |
|---|---|---|
| 128 envs, builds one after another | 7 / 88 (8.0%, 95% CI 3.3–15.7%) | 0 / 33 |
| 64 envs, one after another | 0 / 10 | 0 / 10 |
| 64 envs, 4 processes at once | 1 / 45 | 0 / 29 |
| All | 8 / 143 | 0 / 72 |
- Fisher exact test, one-sided: p = 0.036. The chance of seeing 0 / 72 at the default rate is about 1.6%.
- Running under glibc's malloc checking (
MALLOC_CHECK_=3vialibc_malloc_debug.so.0) gave 0 / 24 aborts, presumably because it changes the timing. - Turning profiling off has no other effect we can measure:
- the simulation state after the reset and 5 steps is bit-identical (same sha256, 2 builds each way);
- the build takes the same time (25.4 s at 128 envs).
Workaround
Call this once per process, after the app is up and before the scene / environment is built:
from omni.physx import get_physx_benchmarks_interface
get_physx_benchmarks_interface().enable_profile(False)Repro conditions (generic)
- Isaac Lab scene cloning with
replicate_physics=True, many heterogeneous rigid prototypes (about 100 distinct rigid-object USDs cloned across environments), 64–128 environments, GPU PhysX. - Repeat the build many times (about 8% per build at 128 envs in our setup). Fewer prototypes or environments lower the rate.
- Nothing else is needed: the race is in the replication tasks themselves.
Suggested fix
Do any of the following:
- protect the profile-stats container with a mutex;
- record into per-thread buffers that are merged after the replicate tasks join;
- skip profile recording inside the replicate tasks.
Separately, consider making custom profiling opt-in, since it is on by default and nothing reads it unless asked.
Activity
vick-yu commentedon Nov 29, 2026
Thanks for the detailed report. The core dumps, the A/B table with profiling on and off, and the offsets made this easy to check.
Your diagnosis is correct, and the racing code was removed in Isaac Sim 6.1.0 and later.
What's happening
In 6.0.1 (omni.physx 110.1.13), the PhysX replicator's two concurrent worker tasks each record a profile-stats entry (
PhysXReplicator::replicate::addCollectionsandPhysXReplicator::replicate::proccessReplicationData) into one shared, unlocked container. Internal profiling is enabled by default. If both tasks append while the container is growing, one frees the old buffer while the other still writes into it. That gives thedouble free or corruption/malloc(): unaligned tcache chunk detectedaborts you see. Because it only goes wrong when the two appends land on a reallocation at the same moment, it is intermittent, and heavier scenes with many replicate calls hit it more often.I confirmed that on 6.0.1,
get_physx_benchmarks_interface().get_profile_stats()returns those two zones after a replicated attach, and returns nothing afterenable_profile(False).Fix
Nothing in the simulation depends on these stats unless you read them (via
get_profile_stats()or a profile-stats subscription), and your bit-identical state check matches that.Notes
double freein the same replicate path for fully heterogeneous layouts. Your report has a different trigger, but the symptom looks similar, so check which one you are hitting if you see this on a newer Isaac Lab build.Let us know if you still see aborts on 6.2.0 with profiling left at its default, since that would point to a different cause.