The GitHub Actions job "CI" on tvm-ffi.git/fix/sigbus-v0.1.11 has failed. Run started by GitHub user oraluben (triggered by oraluben).
Head commit for run: 4097642e6efc4aa2decda954f71008d68512f2db / Yucheng Yang <[email protected]> [FIX] Zero cause_chain and extra_context in SafeCallContext to prevent SIGBUS on macOS arm64 On macOS arm64 with tvm-ffi >= 0.1.8, when a C++ exception (e.g. InternalError from LOG(FATAL)) is thrown inside a PackedFunc and the error is forwarded through SafeCallContext::SetRaised / SetRaisedByCstr, the ErrorObj's cause_chain and extra_context fields may contain stale non-null bytes from reused allocator memory. ~ErrorObj() then calls DecRefObjectHandle on a garbage pointer → SIGBUS (EXC_ARM_DA_ALIGN). Explicitly zero these two fields before storing the ErrorObj in TLS to ensure the destructor sees nullptr and short-circuits safely. Fixes the crash reported in tilelang when using T.gemm on Metal target (which triggers ICHECK → LOG(FATAL) → InternalError). Report URL: https://github.com/apache/tvm-ffi/actions/runs/26083910680 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
