Closed Bug 1713940 Opened 4 years ago Closed 2 years ago

crash near null in [@ nsGlobalWindowInner::GetPrincipal]

Categories

(Core :: Audio/Video, defect)

defect

Tracking

()

VERIFIED FIXED
106 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox90 --- wontfix
firefox91 --- wontfix
firefox104 --- wontfix
firefox105 --- wontfix
firefox106 --- verified

People

(Reporter: tsmith, Assigned: smaug)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: crash, regression, testcase, Whiteboard: [bugmon:bisected,confirmed], [wptsync upstream])

Crash Data

Attachments

(2 files)

Attached file testcase.html

Found while fuzzing m-c 20210520-746a4efcd8b7 (--enable-address-sanitizer --enable-fuzzing)

#0 0x7faca7535bc8 in operator bool /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:310:45
#1 0x7faca7535bc8 in nsGlobalWindowInner::GetPrincipal() src/dom/base/nsGlobalWindowInner.cpp:2227:7
#2 0x7faca901bf8f in mozilla::DOMMediaStream::GetPrincipal() src/dom/media/DOMMediaStream.cpp:404:46
#3 0x7faca91070bc in mozilla::dom::MediaRecorder::Start(mozilla::dom::Optional<unsigned int> const&, mozilla::ErrorResult&) src/dom/media/MediaRecorder.cpp:1234:53
#4 0x7faca7b41cd9 in mozilla::dom::MediaRecorder_Binding::start(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&) /builds/worker/workspace/obj-build/dom/bindings/MediaRecorderBinding.cpp:920:24
#5 0x7faca89df487 in bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*) src/dom/bindings/BindingUtils.cpp:3297:13
#6 0x7facabb5c8e0 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) src/js/src/vm/Interpreter.cpp:427:13
#7 0x7facabb5c042 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) src/js/src/vm/Interpreter.cpp:512:12
#8 0x7facabb5d869 in InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) src/js/src/vm/Interpreter.cpp:572:10
#9 0x7facac5ca56c in js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICFallbackStub*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) src/js/src/jit/BaselineIC.cpp:1585:10
#10 0x1a97e26685f2  (<unknown module>)
Severity: -- → S2
Flags: in-testsuite?

A Pernosco session is available here: https://pernos.co/debug/bsNOmCHcLZeREiqXjvnzWg/index.html

Crash Signature: [@ nsGlobalWindowInner::GetPrincipal ]

Bugmon Analysis:
Verified bug as reproducible on mozilla-central 20210601213358-83f4bfe5ea71.
The bug appears to have been introduced in the following build range:

Start: 4994186240ab42d448b1434986399eee86947b1e (20210518155847)
End: c0e7224e6b5b8e0d9cf1404d0a80482a58e3c830 (20210518165418)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=4994186240ab42d448b1434986399eee86947b1e&tochange=c0e7224e6b5b8e0d9cf1404d0a80482a58e3c830

Whiteboard: [bugmon:bisected,confirmed]

This was probably regressed by bug 1705080. smaug, can you take a look?

Flags: needinfo?(smaug)
Regressed by: 1705080

Set release status flags based on info from the regressing bug 1705080

Callers seem to be find with this.

Assignee: nobody → smaug
Status: NEW → ASSIGNED
Attachment #9294307 - Attachment description: Bug 1713940, null check owner before using it, r=jrmuizel → Bug 1713940, null check owner before using it, r=padenot
Severity: S2 → S4
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3f2015f34fc2 null check owner before using it, r=padenot
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35881 for changes under testing/web-platform/tests
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisected,confirmed], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

Bugmon Analysis
Verified bug as fixed on rev mozilla-central 20220914040922-f3347d35ab5e.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Status: RESOLVED → VERIFIED
Keywords: bugmon
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(smaug)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: