Uh oh!
There was an error while loading. Please reload this page.
Append lld --stack-first on wasm targets - #5501
Conversation
fengb
commented
Jun 1, 2020
Comparison: ; Before
(global(;stack_start;) (muti32) (i32.const66576))
(global(;quuz;)i32 (i32.const1028))
; After
(global(;stack_start;) (muti32) (i32.const65536))
(global(;quuz;)i32 (i32.const65540))Looks good! 👍 |
fengb
commented
Jun 1, 2020
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. |
Uh oh!
There was an error while loading. Please reload this page.
Interesting. I've noticed the same buggy behaviour when troubleshooting the disabled tests in |
fengb
commented
Jun 2, 2020
The medium term solution is probably adding a manual stack size override: #3735 (comment). In the meantime, I think skipping it is okay. |
kubkon
commented
Jun 4, 2020
FYI, the CI failure should go away after we merge in #5529 which increases the default stack size to 1MB. |
zigazeljko
commented
Jul 4, 2020
Since #5529 got merged, can this get merged too? |
kubkon
commented
Jul 4, 2020
SGTM! Could you rebase to the current upstream and see if the tests now pass though? |
zigazeljko
commented
Jul 13, 2020
@kubkon Done. Looks like tests are now passing. |
Closes#4496