rap7239 opened a new issue, #697:
URL: https://github.com/apache/tvm-ffi/issues/697
Hit a hard segfault on import, via `xgrammar` (a downstream consumer of
`tvm-ffi`) on Apple Silicon. I don't have a source-level root cause, but wanted
to share a clean before/after data point in case it's useful for triage —
possibly related to the aarch64 JIT/ADRP addressing issue described in
Dao-AILab/flash-attention#2084 (also an aarch64 TVM-FFI native crash, different
platform/consumer), though I can't confirm they're the same bug.
**Environment:** macOS 26.6, Apple M4 (arm64), Python 3.12.12,
xgrammar==0.2.3
**Broken:**
apache-tvm-ffi==0.1.13
python -c "import xgrammar"
!!!!!!! Segfault encountered !!!!!!!
File "<unknown>", line 0, in TVMFFIEnvRegisterCAPI
File "<unknown>", line 0, in tvm::ffi::reflection::Metadata::ToJSON(...)
File "<unknown>", line 0, in xgrammar::__TVMFFIStaticInitFunc0()
**Fixed:**
apache-tvm-ffi==0.1.12
`import xgrammar` succeeds cleanly, no crash.
Happy to provide more environment detail or test a patched build if that's
useful.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]