You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Segmentation fault from core::fmt format_args macro on Linux #114767
Compiled with cargo build --target x86_64-unknown-none
I expected to see this happen:
Program prints the line testing and hangs.
Instead, this happened:
Program segfaults, no text is output as the write syscall is never reached. It inexplicably runs the instruction call *%rax when rax is guaranteed to be zero.
Duplicate of #110192 and related to #113207. In short, x86_64-unknown-none is the wrong target to use for Linux and will cause issues with relocation. This is best solved by defining a custom target that either specifies a dynamic linker or disables relocation.
Activity
joboet commentedon Aug 13, 2023
Duplicate of #110192 and related to #113207. In short,
x86_64-unknown-noneis the wrong target to use for Linux and will cause issues with relocation. This is best solved by defining a custom target that either specifies a dynamic linker or disables relocation.