Skip to content

Conversation

@max-leuthaeuser
Copy link
Collaborator

@max-leuthaeuser max-leuthaeuser commented Sep 9, 2025

2M stack size, as swift-linux-musl provides a default thread stack size of only 128k. This prevents segmentation faults for larger Swift projects being scanned.

See: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread-stack-size

Can be seen, e.g., with swiftastgen being run on https://github.com/migueldeicaza/SwiftGodot

2M stack size, as swift-linux-musl provides a default thread stack size of only 128k.
This prevents segmentation faults for larger Swift projects being scanned.

Can be seen, e.g., with swiftastgen being run on https://github.com/migueldeicaza/SwiftGodot
@max-leuthaeuser max-leuthaeuser merged commit 750c534 into master Sep 9, 2025
3 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/incStackSize branch September 9, 2025 10:14
max-leuthaeuser added a commit to joernio/joern that referenced this pull request Sep 9, 2025
Brings in joernio/SwiftAstGen#18 so we can finally run it on larger projects on certain Linux distributions where the small default musl stack size resulted in seg faults.

See: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread-stack-size
max-leuthaeuser added a commit to joernio/joern that referenced this pull request Sep 9, 2025
Brings in joernio/SwiftAstGen#18 so we can finally run it on larger projects on certain Linux distributions where the small default musl stack size resulted in seg faults.

See: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Thread-stack-size
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.

2 participants