Native Luau Code Compilation Stack Corruption

This bug happens when running on a live server, but not in Studio.
The code appears to work fine when not compiled under an Actor.

One aspect is that it causes a constant somewhere to be forgotten and results in the following behavior from this print call:

-- code snippet
print(1, 2, 3, 4, 5, "a", "b", "c", "d", "e")
return smul*(coef/2^52 + 1)*2^(pow - 1023)

--> 1, 2, 3, 4, 5, b, c, d, e, 4503599627370496

4503599627370496 is 2^52, the next constant defined in my code

Place can be found here: Native Bug Repro - Roblox
Relevant file is game.ReplicatedStorage.SharedModules.Utils.Serializer

Here is video demonstration of the bug for more context:

3 Likes

Thank you for the report, we will look into it.

2 Likes

We have found what causes the issue and will be working on a fix for the next update.

2 Likes

The fix has been released on Roblox servers.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.