Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link: non-PIE dynamic executables crash QEMU #17619

Closed
kubkon opened this issue Oct 19, 2023 · 1 comment
Closed

link: non-PIE dynamic executables crash QEMU #17619

kubkon opened this issue Oct 19, 2023 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior upstream An issue with a third party project that Zig uses.
Milestone

Comments

@kubkon
Copy link
Member

kubkon commented Oct 19, 2023

Zig Version

0.12.0-dev.1133+3768c9537

Steps to Reproduce and Observed Behavior

$ echo "int main() { return 0 };" > simple.c
$ zig build-exe simple.c -lc -target x86_64-linux-musl -fno-lld --image-base 0x1000000
$ qemu-x86_64 simple
fish: Job 1, 'qemu-x86_64 simple' terminated by signal SIGSEGV (Address boundary error)

This is an upstream bug. Tracking issue: https://gitlab.com/qemu-project/qemu/-/issues/1952

Expected Behavior

QEMU doesn't crash running Zig's binaries.

@kubkon kubkon added bug Observed behavior contradicts documented or intended behavior upstream An issue with a third party project that Zig uses. labels Oct 19, 2023
@Vexu Vexu added this to the 0.15.0 milestone Oct 19, 2023
@kubkon
Copy link
Member Author

kubkon commented Mar 10, 2024

Fixed in upstream and we are using updated QEMU in the CI, so closing.

@kubkon kubkon closed this as completed Mar 10, 2024
@Vexu Vexu modified the milestones: 0.15.0, 0.12.0 Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior upstream An issue with a third party project that Zig uses.
Projects
None yet
Development

No branches or pull requests

2 participants