Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2f3246a7a730c64cb82705521cf54298ce02c5da
https://github.com/WebKit/WebKit/commit/2f3246a7a730c64cb82705521cf54298ce02c5da
Author: Yijia Huang <[email protected]>
Date: 2026-03-27 (Fri, 27 Mar 2026)
Changed paths:
M JSTests/wasm/debugger/resources/swift-wasm/build.sh
A JSTests/wasm/debugger/resources/swift-wasm/crash-test/Package.swift
A
JSTests/wasm/debugger/resources/swift-wasm/crash-test/Sources/crash-test/main.swift
A JSTests/wasm/debugger/resources/swift-wasm/crash-test/crash-test.wasm
A JSTests/wasm/debugger/resources/swift-wasm/crash-test/main.js
A JSTests/wasm/debugger/resources/wasm/unreachable.js
M JSTests/wasm/debugger/tests/tests.py
M Source/JavaScriptCore/llint/InPlaceInterpreter64.asm
M Source/JavaScriptCore/runtime/StopTheWorldCallback.h
M Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp
M Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.h
M Source/JavaScriptCore/wasm/debugger/WasmDebugServer.cpp
M Source/JavaScriptCore/wasm/debugger/WasmDebugServer.h
M Source/JavaScriptCore/wasm/debugger/WasmDebugServerUtilities.cpp
M Source/JavaScriptCore/wasm/debugger/WasmDebugServerUtilities.h
M Source/JavaScriptCore/wasm/debugger/WasmExecutionHandler.cpp
M Source/JavaScriptCore/wasm/debugger/WasmExecutionHandler.h
M Source/JavaScriptCore/wasm/debugger/WasmQueryHandler.cpp
M Source/JavaScriptCore/wasm/debugger/tests/ExecutionHandlerTest.cpp
M Source/JavaScriptCore/wasm/debugger/tests/ExecutionHandlerTestSupport.cpp
Log Message:
-----------
[JSC][WASM][Debugger] Make the WASM debugger stop at unreachable traps
https://bugs.webkit.org/show_bug.cgi?id=310858
rdar://173465318
Reviewed by Keith Miller.
The WASM debugger did not intercept unreachable traps — they
propagated as JS exceptions with no debugger notification, making it
impossible to catch crash-style faults in WASM programs from LLDB.
This patch teaches the WASM debugger to intercept unreachable traps
and report them as debugger stops, allowing LLDB to inspect the call
stack and locals at the point of the fault. A Swift WASM test package
and a minimal hand-crafted WASM test are added to cover the feature.
Tests:
* JSTests/wasm/debugger/tests/tests.py:
(SwiftWasmCrashTestCase):
(WasmUnreachableFaultTestCase):
Canonical link: https://commits.webkit.org/310104@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications