Crash in [@ mozilla::NullPrincipal::Create]
Categories
(Firefox for Android :: Media, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox139 | --- | unaffected |
| firefox140 | blocking | verified |
| firefox141 | blocking | verified |
People
(Reporter: dmeehan, Assigned: jhlin)
References
(Regression)
Details
(4 keywords)
Crash Data
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
Crash report: https://crash-stats.mozilla.org/report/index/6992aaff-fdc2-4cc2-95c5-2302e0250615
MOZ_CRASH Reason:
MOZ_RELEASE_ASSERT(uri->SchemeIs("moz-nullprincipal"))
Top 10 frames:
0 libxul.so MOZ_CrashSequence(void*, long) mfbt/Assertions.h:253
0 libxul.so mozilla::NullPrincipal::Create(mozilla::OriginAttributes const&, nsIURI*) caps/NullPrincipal.cpp:60
1 libxul.so mozilla::HLSDecoder::GetContentPrincipal(nsIURI*) dom/media/hls/HLSDecoder.cpp:319
2 libxul.so mozilla::HLSDecoder::UpdateCurrentPrincipal(nsIURI*) dom/media/hls/HLSDecoder.cpp:288
3 libxul.so mozilla::HLSDecoder::NotifyLoad(nsTString<char>) dom/media/hls/HLSDecoder.cpp:265
4 libxul.so mozilla::HLSResourceCallbacksSupport::OnLoad(mozilla::jni::StringParam const&... dom/media/hls/HLSDecoder.cpp:75
4 libxul.so mozilla::detail::RunnableFunction<mozilla::HLSResourceCallbacksSupport::OnLoa... xpcom/threads/nsThreadUtils.h:548
5 libxul.so mozilla::RunnableTask::Run() xpcom/threads/TaskController.cpp:703
5 libxul.so mozilla::TaskController::RunTask(mozilla::Task*) xpcom/threads/TaskController.cpp:228
5 libxul.so mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::det... xpcom/threads/TaskController.cpp:1252
| Reporter | ||
Comment 1•9 months ago
|
||
The crash in Bug 1971809 has been fixed, but there is now a crash spike here.
jolin, could you please take a look? We are in RC week for Fx140, and this blocks Fenix 140 RC1
Comment 2•9 months ago
|
||
Passing the aMedaUri to NullPrincipal::Create was wrong. We should just use nullptr. Do we have zero test coverage for this function?
| Assignee | ||
Comment 3•9 months ago
|
||
Sorry for the trouble. I will uploading a patch to remove the aMediaUri argument ASAP.
| Assignee | ||
Comment 4•9 months ago
|
||
Updated•9 months ago
|
| Assignee | ||
Comment 6•9 months ago
|
||
Comment on attachment 9494788 [details]
Bug 1972225 - create NullPrincipal without uri.
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Fenix could crash when playing HLS contents.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The change fixes developer error.
- String changes made/needed:
- Is Android affected?: Yes
| Assignee | ||
Comment 7•9 months ago
|
||
Hi Donal,
I am not familiar with the release process enough and not sure if requesting beta uplifting for this fix is needed or sufficient. Please let me know if you need further action from me. Thanks a lot and sorry again for my mistake.
Comment 8•9 months ago
|
||
The bug is linked to a topcrash signature, which matches the following criterion:
- Top 10 AArch64 and ARM crashes on beta
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 9•9 months ago
|
||
Comment on attachment 9494788 [details]
Bug 1972225 - create NullPrincipal without uri.
Approved for 140.0 RC1
Comment 10•9 months ago
|
||
| uplift | ||
| Reporter | ||
Updated•9 months ago
|
Comment 11•9 months ago
|
||
We were able to reproduce this crash while navigating to this page https://developer.apple.com/streaming/examples/advanced-stream-hevc.html on Firefox for Android beta 140.0b9 with a Samsung Galaxy A14 (Android 14), Google Pixel 6 (Android 16), and a Google Pixel 8 (Android 15).
Comment 12•9 months ago
|
||
Comment 13•9 months ago
•
|
||
Verified using a page that we managed to reproduce the crash on: https://developer.apple.com/streaming/examples/advanced-stream-hevc.html
The crash no longer happens on the latest Beta 140.0b10 and latest RC 140.0 builds. Also verified on the latest Nightly build: 141.0a1.
There is a visual glitch issue that was separately documented in this ticket.
Devices used:
- Google Pixel 7 (Android 16);
- Google Pixel 9 Pro XL (Android 15);
- Google Pixel 6 (Android 15);
- Samsung Galaxy S23 Ultra (Android 14);
- Samsung Galaxy A14 (Android 14);
- Lenovo TB X606X (Android 10).
Marking the ticket as verified on 140 and 141.
Updated•9 months ago
|
Updated•3 months ago
|
Description
•