Get the latest tech news
Debugging a rustc segfault on Illumos
Using `mdb` and `pmap` to find the cause of a crash.
Most OSes have some means to trace syscalls: strace on Linux, dtruss on macOS, Process Monitor on Windows, and truss on illumos. Update 2024-08-05: After this post was published, jyn pointed out on Mastodon that cranelift-codegen is actually optional, and that I could have also worked around the issue by disabling it in the rustc build system’s config.toml. The basic problem underneath it all is that the part of the rustc parser that triggered the bug wasn’t calling stacker often enough to make new stack segments.
Or read this on Hacker News