2026-05-01 03:26 UTC
coming back to an old #rustlang project with a lot of dependencies. code unchanged but I deleted the compiled executable a while ago to save space. rebuild. segfault. what happened here
Replies (1)
-
@llogiq@hachyderm.io 2026-05-01 06:12
@428@mas.to if you built in debug mode, you may have happened upon a stack overflow because the compiler didn't elide an on-stack initialization that was later to be moved to the heap. Otherwise there may be some unsafe code that fails to uphold some invariant. Can you `cargo miri run`? It will be very slow, but might find UB on your active code path.