Stream: git-wasmtime

Topic: wasmtime / PR #1298 Increase the size of the sigaltstack.


view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 01:33):

sunfishcode opened PR #1298 from bigger-sigaltstack to master:

Rust's stack overflow handler installs a sigaltstack stack with size
SIGSTKSZ, which is too small for some of the things we do in signal
handlers. Install bigger sigaltstack stacks so that we have enough
space.

cc #900. The code here is a sketch of a possible
alternative. Advantages of this approach include not needing extra
prologue checks, not disabling the Rust stack overflow message, and
ensuring that we always have a guard page.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 15:37):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 15:37):

alexcrichton submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 15:37):

alexcrichton created PR Review Comment:

Could this test be done before we start mmap'ing? We could check to see if the sigaltstack size is already big enough or if it's disabled then we we can act before we mmap our own and set it.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 12 2020 at 15:37):

alexcrichton created PR Review Comment:

How come there's an OOM trap, but then this is an abort? Could this translate to a trap as well?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 13 2020 at 21:03):

sunfishcode closed without merge PR #1298.


Last updated: Dec 23 2024 at 13:07 UTC