Skip to content

Increase Alpine stack size to 8MB#8595

Merged
kripken merged 4 commits intoWebAssembly:mainfrom
kripken:work
Apr 13, 2026
Merged

Increase Alpine stack size to 8MB#8595
kripken merged 4 commits intoWebAssembly:mainfrom
kripken:work

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Apr 13, 2026

The default in musl is apparently tiny, and MergeSimilarFunctions has
recursion which can hit it.

We can perhaps improve that pass to avoid recursion, but this change
seems generally good for robustness. It just makes us use the usual
8 MB stack size on Linux that all other Linuxes use.

Fixes #8594

@kripken kripken requested a review from a team as a code owner April 13, 2026 19:46
@kripken kripken requested review from stevenfontanella and removed request for a team April 13, 2026 19:46
@kripken kripken marked this pull request as draft April 13, 2026 19:47
@kripken
Copy link
Copy Markdown
Member Author

kripken commented Apr 13, 2026

Test confirmed failing here on CI without the fix. Fix now applied, if it passes we should be good.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could use the non-folded text format for this test to avoid the bonkers indentation, at least on the input.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel the indentation is actually appropriate, as it shows the nesting which is the core problem here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fair enough.

@kripken
Copy link
Copy Markdown
Member Author

kripken commented Apr 13, 2026

@tlively the fuzztest test is failing here, but I don't think it's related to this PR. Something to do with downloading from antlr.org - any idea?

@tlively
Copy link
Copy Markdown
Member

tlively commented Apr 13, 2026

If it's not a transient failure, we could try updating the fuzztest submodule to see if the problem goes away with a more recent version. Backup options would be investigating building fuzztest without the antlr dependency or just disabling this builder.

@kripken
Copy link
Copy Markdown
Member Author

kripken commented Apr 13, 2026

The alpine tests passed, confirming the fix.

@kripken kripken requested review from dschuff and sbc100 April 13, 2026 20:25
@kripken kripken marked this pull request as ready for review April 13, 2026 23:04
@kripken kripken merged commit 031e163 into WebAssembly:main Apr 13, 2026
15 of 16 checks passed
@kripken kripken deleted the work branch April 13, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasm-opt segfault on merge-similar-functions with Kotlin generated wasm code

4 participants