Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bdb1b12f3a60c5e20a27c394a2a86de7401a8621
      
https://github.com/WebKit/WebKit/commit/bdb1b12f3a60c5e20a27c394a2a86de7401a8621
  Author: Yijia Huang <[email protected]>
  Date:   2026-04-20 (Mon, 20 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/wasm/debugger/WasmExecutionHandler.cpp

  Log Message:
  -----------
  [JSC][WASM][Debugger] Fix null stopData crash for StackOverflow/Termination   
 traps
https://bugs.webkit.org/show_bug.cgi?id=312707
rdar://175100468

Reviewed by Mark Lam.

When check_stack_and_vm_traps detects both NeedStopTheWorld and
StackOverflow/Termination in the prologue, handleTrapsIfNeeded() processes
NeedStopTheWorld first: setPrologueStopData sets stopData, the debugger
serves the stop, then clearStop() nulls stopData on resume. When the
prologue subsequently throws StackOverflow/Termination and calls
handleDebuggerTrapIfNeeded(), stopData is null and
RELEASE_ASSERT(isStoppedAtPrologue()) fires.

Fix by re-establishing prologue stop context with setPrologueStopData()
when stopData is absent.

Canonical link: https://commits.webkit.org/311619@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to