Open Bug 1761327 Opened 3 years ago Updated 3 years ago

Debugging wasm file built via empscripten crashes the debugger

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: ochameau, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It looks like bug 1756951 introduced a crash in Debugger's findSources method when debugging WASM files built via emscripten. See bug 1719615 comment 31.

I'll provide a patch on top of bug 1719615 to easily reproduce the crash by running

$ ./mach mochitest --headless devtools/client/debugger/test/mochitest/browser_dbg-features-wasm.js

To really confirm it relates to bug 1756951,
here is a first try run without this bug's patches:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=45c959d38824a643331565b7a159a4fa996db6a3
And another with them:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8b61a956e9dd502dfebe27b7add76623913cbc25

Both try runs reports failures, but only the second, with bug 1756951 crash.
The first try run fails because I forgot updating the binary breakpoint line.

Lars, it looks like bug 1761327 makes the debugger crash with emscripten wasm files.
The crash stack trace looks slightly different from bug 1760627, but it may be related?
See 1719615 comment 31 for the stack trace.
Attachment 9269267 [details] helps easily reproduce the crash and note this is based on top of bug 1719615.

Flags: needinfo?(lhansen)

Yeah, Yury and I have been discussing that stack trace. There's a possibility it's related, but uncertain. We'll devote some time to this next week. Leaving the ni? for now.

Flags: needinfo?(lhansen)
Severity: -- → S3
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: