Re:Achievement unlocked: rustc segfault
by VWWHFSfQ on Sunday April 10, 2022 @08:08PM
(#30983093)
This doesn't seem like a bug in rustc at all. Maybe just by emitting bad IR. But this is actually bug in LLVM.
[ Parent
| on HN ]
Re:Achievement unlocked: rustc segfault
by tsimionescu on Monday April 11, 2022 @01:32AM
(#30985029)
No, LLVM is configured by rustc to NOT to check its input (for performance reasons), so it's normal for it to crash if fed invalid input. The bug is 100% in rustc's court.
I think it's reasonable to consider it a bug in both: it's a MIR lowering bug, one that gets promoted into a different bug by LLVM.
why?
They are using a build with assertions/etc disabled, so it segfaults rather than asserts.
When you use a build that is set not to do that, it gives you an error :)