alexcrichton requested cfallin for a review on PR #15232.
alexcrichton opened PR #15232 from alexcrichton:fix-watchpoint-segfault to bytecodealliance:main:
This commit fixes an issue where watchpoints could cause a segfault if the debug handler grew memory. The native address being checked was calculated first, then the debug handler run, and then the original native address was used for a store. In the event of a memory growth, however, this could cause memory to move meaning that calling the debug handler could invalidate a native address. The fix here is to shuffle around where the debug handler is called, notably before the native address is created.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-core-reviewers for a review on PR #15232.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #15232.
:thumbs_up: cfallin submitted PR review:
Thanks!
cfallin added PR #15232 Fix a segfault with guest-debug growing memories to the merge queue.
github-merge-queue[bot] removed PR #15232 Fix a segfault with guest-debug growing memories from the merge queue.
alexcrichton updated PR #15232.
alexcrichton has enabled auto merge for PR #15232.
alexcrichton added PR #15232 Fix a segfault with guest-debug growing memories to the merge queue.
github-merge-queue[bot] removed PR #15232 Fix a segfault with guest-debug growing memories from the merge queue.
alexcrichton updated PR #15232.
alexcrichton has enabled auto merge for PR #15232.
alexcrichton added PR #15232 Fix a segfault with guest-debug growing memories to the merge queue.
:check: alexcrichton merged PR #15232.
alexcrichton removed PR #15232 Fix a segfault with guest-debug growing memories from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC