Append lld --stack-first on wasm targets#5501
Append lld --stack-first on wasm targets#5501andrewrk merged 1 commit intoziglang:masterfrom zigazeljko:patch-1
Conversation
|
Comparison: ; Before
(global (;stack_start;) (mut i32) (i32.const 66576))
(global (;quuz;) i32 (i32.const 1028))
; After
(global (;stack_start;) (mut i32) (i32.const 65536))
(global (;quuz;) i32 (i32.const 65540))Looks good! 👍 |
|
I think the CI failure is exposing an existing bug. This looks like a stack overflow. The current output "pads the stack" with globals — we accidentally consume too much stack space but it's simply stealing/corrupting memory from globals. |
Interesting. I've noticed the same buggy behaviour when troubleshooting the disabled tests in |
|
The medium term solution is probably adding a manual stack size override: #3735 (comment). In the meantime, I think skipping it is okay. |
|
FYI, the CI failure should go away after we merge in #5529 which increases the default stack size to 1MB. |
|
Since #5529 got merged, can this get merged too? |
|
SGTM! Could you rebase to the current upstream and see if the tests now pass though? |
|
@kubkon Done. Looks like tests are now passing. |
Closes #4496