Closed Bug 1980992 Opened 1 year ago Closed 1 year ago

Crash in [@ nsFaviconService::GetFaviconForPage]

Categories

(Toolkit :: Places, defect, P1)

defect

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox142 --- unaffected
firefox143 + fixed
firefox144 --- fixed

People

(Reporter: RyanVM, Assigned: mak)

References

(Regression)

Details

(Keywords: crash, regression, topcrash, Whiteboard: [sng])

Crash Data

Attachments

(2 external files)

Crash report: https://crash-stats.mozilla.org/report/index/e7611b64-6166-4f6f-9d1d-3a50e0250804

MOZ_CRASH Reason:

MozPromise::ThenValue created from 'GetFaviconForPage' destroyed without being either disconnected, resolved, or rejected (dispatchRv: not dispatched)

Top 10 frames:

0  libxul.so  MOZ_CrashSequence(void*, long)  /build/firefox/parts/firefox/build/mfbt/Assertions.h:248
0  libxul.so  MOZ_Crash(char const*, int, char const*)  /build/firefox/parts/firefox/build/mfbt/Assertions.h:381
0  libxul.so  mozilla::MozPromise<ProcessInfo, nsresult, false>::ThenValueBase::AssertIsDead()  /build/firefox/parts/firefox/build/xpcom/threads/MozPromise.h:544
1  libxul.so  mozilla::MozPromise<nsTArray<mozilla::dom::SSCacheCopy>, mozilla::ipc::Respon...  /build/firefox/parts/firefox/build/xpcom/threads/MozPromise.h:1270
2  libxul.so  mozilla::MozPromise<nsCOMPtr<nsIFavicon>, nsresult, true>::~MozPromise()  /build/firefox/parts/firefox/build/xpcom/threads/MozPromise.h:1318
3  libxul.so  mozilla::MozPromise<nsCOMPtr<nsIFavicon>, nsresult, true>::Private::~Private()  /build/firefox/parts/firefox/build/xpcom/threads/MozPromise.h:257
4  libxul.so  mozilla::MozPromiseRefcountable::Release()  /build/firefox/parts/firefox/build/xpcom/threads/MozPromise.h:152
4  libxul.so  mozilla::RefPtrTraits<mozilla::MozPromise<nsCOMPtr<nsIFavicon>, nsresult, tru...  /build/firefox/parts/firefox/build/mfbt/RefPtr.h:49
4  libxul.so  RefPtr<mozilla::MozPromise<nsCOMPtr<nsIFavicon>, nsresult, true> >::ConstRemo...  /build/firefox/parts/firefox/build/mfbt/RefPtr.h:409
4  libxul.so  RefPtr<mozilla::MozPromise<nsCOMPtr<nsIFavicon>, nsresult, true> >::~RefPtr()  /build/firefox/parts/firefox/build/mfbt/RefPtr.h:80

The severity field is not set for this bug.
:mak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mak)
See Also: → 1984088

This signature turned frequent with the switch to version 143.

I think the problem is GetFaviconForPage only handles resolution of the promise returned from AsyncGetFaviconForPage, though it may instead reject. the reason for the reject may be related to bug 1984088. Both issues must be addressed.

Severity: -- → S3
Flags: needinfo?(mak)
Priority: -- → P2
Whiteboard: [sng]
Blocks: 1984371

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 20 desktop browser crashes on beta

:mak, could you consider increasing the severity of this top-crash bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(mak)
Keywords: topcrash

The bug is marked as tracked for firefox143 (beta). However, the bug still isn't assigned and has low severity.

:cbellini, could you please find an assignee and increase the severity for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(cbellini)
Assignee: nobody → mak
Status: NEW → ASSIGNED
Flags: needinfo?(mak)
Priority: P2 → P1
Pushed by mak77@bonardo.net: https://github.com/mozilla-firefox/firefox/commit/213d4ffc1421 https://hg.mozilla.org/integration/autoland/rev/7bf1c3ace231 Reject GetFaviconForPage promise if we won't execute the runnable expected to fulfill it. r=jteow
Flags: needinfo?(cbellini)
Keywords: regression
Regressed by: 599980
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
Attachment #9510023 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined: Crash
  • Code covered by automated testing: no
  • Fix verified in Nightly: no
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: not easily testable
  • Risk associated with taking this patch: low
  • Explanation of risk level: rejecting a dangling promise
  • String changes made/needed: none
  • Is Android affected?: no
Attachment #9510023 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: