News for hackers. Stuff that matters.
Re:Achievement unlocked: rustc segfault by EdSchouten on Sunday April 10, 2022 @05:32PM (#30981926)
It’s amazing how in-line assembly is always such a big source of miscompilations/compiler crashes. Both with C/C++ and Rust. With GCC or Clang. It doesn’t matter.
Re:Achievement unlocked: rustc segfault by gpm on Sunday April 10, 2022 @05:40PM (#30981996)
I think it makes sense as a place to expect bugs. It's a rarely used feature which interacts in a unique way with some pretty core parts of the compiler, in a platform dependent manner.
Re:Achievement unlocked: rustc segfault by kibwen on Sunday April 10, 2022 @06:33PM (#30982393)
Amusingly, if I recall correctly, the author of this post was the author of Rust's original (never stable, now removed) inline assembly support, years and years ago. Certainly one of the best people in the world to have encountered this bug!
Re:Achievement unlocked: rustc segfault by mhh__ on Sunday April 10, 2022 @06:14PM (#30982257)
Although in recent years the representation has become a lot more abstract (and people to correctly generate that abstract representation), inline assembler tends to have a lot of monotonous drivel to get right.