Odin icon indicating copy to clipboard operation
Odin copied to clipboard

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

Open laytan opened this issue 1 year ago • 2 comments

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 avatar Jun 27 '24 17:06 laytan

Probably related to #3762 's abi issues

laytan avatar Jun 27 '24 18:06 laytan

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

Feoramund avatar Jun 28 '24 16:06 Feoramund