using xPerm on Mac with Apple M2 chip and Rosetta

14 views
Skip to first unread message

James Mossman

unread,
Apr 19, 2026, 6:43:43 PM (4 days ago) Apr 19
to xAct Tensor Computer Algebra
This was crafted with help of Claude.  I am using xPerm inside some other code, and also MathLink wolframscript.  Not a fatal error, but I thought I would pass this along.

The `xperm.mac` external binary shipped with xPerm 1.2.4 reliably crashes with `SIGABRT` (heap-corruption abort)
during MathLink shutdown when running under Rosetta translation on macOS 26.3.
Computation completes and results are returned correctly — the crash occurs after final output, during the binary's exit cleanup
— so the practical impact is cosmetic (stderr noise, occasional non-zero process exit).
However, macOS is logging a new crash report every time it happens,
and the diagnostic signature is consistent across 26+ crashes spanning one week of normal usage,
so something real is being caught by the system's malloc guard.

Running on MacStudio with M2 chip

very one of the 26 crash reports at `~/Library/Logs/DiagnosticReports/xperm.mac-*.ips` has the identical fingerprint:

- **Signal**: `SIGABRT` (`EXC_CRASH`, code 6, "Abort trap")
- **Trigger**: `abort() called` in `libsystem_c.dylib`, raised by `malloc_zone_error` / `malloc_vreport`
(macOS malloc guard detected heap corruption)


- **Faulting thread**: `"ML-SyncObject-Background-Thread"`


Leo Stein

unread,
Apr 19, 2026, 7:14:48 PM (4 days ago) Apr 19
to James Mossman, xAct Tensor Computer Algebra
Dear James,

Does the SIGABRT still happen if you use a native arm binary? See the thread https://groups.google.com/g/xAct/c/0APu0h7R2Nk for instructions on how to compile natively (or use Alfonso's precompiled binaries).

Best
Leo

--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xact/df53af3c-612a-452d-a1a3-e80638835253n%40googlegroups.com.

James Mossman

unread,
Apr 19, 2026, 7:54:24 PM (4 days ago) Apr 19
to xAct Tensor Computer Algebra
Thanks for the link -- I will check it out
Reply all
Reply to author
Forward
0 new messages