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

compiler crash when using i128 field within struct in exported function #10039

Open
1 task done
iacore opened this issue Oct 27, 2021 · 2 comments
Open
1 task done

compiler crash when using i128 field within struct in exported function #10039

iacore opened this issue Oct 27, 2021 · 2 comments
Labels
arch-aarch64 64-bit ARM arch-x86_64 bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@iacore
Copy link
Contributor

iacore commented Oct 27, 2021

Remember to search before filing a new report

  • I searched for this bug and did not find it in the issue tracker, and furthermore, the title I used above will make this new bug report turn up in the search results for my query.

Zig Version

0.9.0-dev.1444+e2a2e6c14

Steps to Reproduce

try to compile this code with zig build to reproduce:
https://gist.github.com/locriacyber/250e4c8811c997fc41adc9e8f51bdc4b

note that changing i128 to i64 does work

Expected Behavior

It should compile the linked project

Actual Behavior

gdb reports SIGSEGV inside LLVMStructGetTypeAtIndex, I don't have more debug information

@iacore iacore added the bug Observed behavior contradicts documented or intended behavior label Oct 27, 2021
@kubkon kubkon added this to the 0.9.0 milestone Nov 5, 2021
@kubkon kubkon added arch-aarch64 64-bit ARM stage1 The process of building from source via WebAssembly and the C backend. labels Nov 5, 2021
@iacore
Copy link
Contributor Author

iacore commented Nov 8, 2021

@kubkon this error is also reproducible on amd64

@kubkon
Copy link
Member

kubkon commented Nov 8, 2021

@kubkon this error is also reproducible on amd64

Wow, very interesting, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-aarch64 64-bit ARM arch-x86_64 bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

No branches or pull requests

3 participants