odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.1k stars 550 forks source link

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

Open laytan opened 4 days ago

laytan commented 4 days ago

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 commented 4 days ago

Probably related to #3762 's abi issues

Feoramund commented 3 days ago

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