Closed Bug 1898031 Opened 1 year ago Closed 1 year ago

Debugger breakpoints should switch back to main stack when on suspendable code

Categories

(Core :: JavaScript: WebAssembly, defect, P2)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: rhunt, Assigned: yury)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Our debuggable code using baseline generates handlers for breakpoints which call out to the Debugger API. That API can lead to arbitrary code running. If our debuggable code is running on a suspendable stack, this could lead to JS code running unexpectedly.

This is very similar to bug 1898029.

Comment on attachment 9407965 [details]
Bug 1898031 - Debugger breakpoints should switch back to main stack. r?rhunt

Revision D214001 was moved to bug 1898032. Setting attachment 9407965 [details] to obsolete.

Attachment #9407965 - Attachment is obsolete: true
Attachment #9407965 - Attachment is obsolete: false
Assignee: nobody → ydelendik
Attachment #9407965 - Attachment description: WIP: Bug 1898031 - Debugger breakpoints should switch back to main stack. → Bug 1898031 - Debugger breakpoints should switch back to main stack. r?rhunt
Status: NEW → ASSIGNED

Comment on attachment 9418229 [details]
Bug 1898031 - Fix JIT activation binding in DebuggerFrame. r?jandem

Revision D218246 was moved to bug 1898032. Setting attachment 9418229 [details] to obsolete.

Attachment #9418229 - Attachment is obsolete: true

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:yury, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(ydelendik)
Flags: needinfo?(rhunt)
Attachment #9418229 - Attachment description: WIP: Bug 1898031 - Fix JIT activation binding in DebuggerFrame. → Bug 1898031 - Fix JIT activation binding in DebuggerFrame. r?iain
Attachment #9418229 - Attachment is obsolete: false

Comment on attachment 9421586 [details]
Bug 1898031 - Neglect suspendable stack roots on shutdown. r?iain

Revision D220575 was moved to bug 1915677. Setting attachment 9421586 [details] to obsolete.

Attachment #9421586 - Attachment is obsolete: true
Attachment #9418229 - Attachment description: Bug 1898031 - Fix JIT activation binding in DebuggerFrame. r?iain → Bug 1898031 - Fix JIT activation binding in DebuggerFrame. r?jandem
Flags: needinfo?(ydelendik)
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ecdbd0d0e0d Debugger breakpoints should switch back to main stack. r=rhunt https://hg.mozilla.org/integration/autoland/rev/a15c00d85b41 Fix JIT activation binding in DebuggerFrame. r=jandem
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42a59cca5fad Debugger breakpoints should switch back to main stack. r=rhunt https://hg.mozilla.org/integration/autoland/rev/7f5c95da844a Fix JIT activation binding in DebuggerFrame. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

Backed out 2 changesets (Bug 1898031) for causing failures in test_wasm_jspi_profiler.js CLOSED TREE

This started to perma fail on this merge

https://hg.mozilla.org/integration/autoland/rev/c6fe661ddb030b53a79608a7b674be6741f0eb28

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 133 Branch → ---
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f1191ffa393 Debugger breakpoints should switch back to main stack. r=rhunt https://hg.mozilla.org/integration/autoland/rev/d48408e0b29e Fix JIT activation binding in DebuggerFrame. r=jandem
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Flags: needinfo?(ydelendik)
Flags: needinfo?(rhunt)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: