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: static map calls do not work on the amd64 sysv ABI #3817

Open
laytan opened this issue Jun 27, 2024 · 2 comments
Open

compiler: static map calls do not work on the amd64 sysv ABI #3817

laytan opened this issue Jun 27, 2024 · 2 comments

Comments

@laytan
Copy link
Sponsor Collaborator

laytan commented Jun 27, 2024

Has been an issue for a long time, but never an actual GitHub issue.

Static map calls are currently disabled on the amd64 sysv ABI because it causes segfaults (iirc pretty much on all code samples using maps).

This should be debugged and enabled.

https://github.com/odin-lang/Odin/blob/521182a1007c0a6d372e9a460519983a765849f7/src/build_settings.cpp#L2098:L2102

@laytan
Copy link
Sponsor Collaborator Author

laytan commented Jun 27, 2024

Probably related to #3762 's abi issues

@Feoramund
Copy link
Contributor

Feoramund commented Jun 28, 2024

Looks like we're arriving in __dynamic_map_check_grow with an invalid context pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants