Closed Bug 1889080 Opened 8 months ago Closed 8 months ago

RemoteLazyInputStreamThread::Dispatch should use the overloaded Unused operator to leak

Categories

(Core :: DOM: File, defect, P3)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox124 --- wontfix
firefox125 --- wontfix
firefox126 --- fixed

People

(Reporter: jstutte, Assigned: jstutte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

See nika's bug 1767344 comment 94:

The failure in https://searchfox.org/mozilla-central/rev/28cc363411d2029aed04c969c8f98785cae110db/dom/file/ipc/RemoteLazyInputStreamThread.cpp#154 is a minor bug, because the already_AddRefed is leaked by casting to (void). This does leak the reference in release builds, but will hit this assertion in debug builds.

In order to avoid the assertion you need to use the Unused << overloaded operator (https://searchfox.org/mozilla-central/rev/28cc363411d2029aed04c969c8f98785cae110db/mfbt/AlreadyAddRefed.h#142-150).

Assignee: nobody → jstutte
Status: NEW → ASSIGNED
Type: task → defect
Keywords: regression
Regressed by: 1870423
Severity: -- → S4
Priority: -- → P3

This is just creating noise in debug builds, there is no effect on users.

Pushed by jstutte@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/99e98689b9af Use overloaded Unused operator to leak runnable in RemoteLazyInputStreamThread::Dispatch. r=dom-storage-reviewers,janv
See Also: → 1628542
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

The patch landed in nightly and beta is affected.
:jstutte, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox125 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(jstutte)
Flags: needinfo?(jstutte)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: