Closed Bug 1825884 Opened 3 years ago Closed 3 years ago

Fix wrong code landed as bustage fix in bug 1825809.

Categories

(MailNews Core :: General, defect)

Thunderbird 113
defect

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
113 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: max.m, Assigned: KaiE)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1825809 +++

https://hg.mozilla.org/comm-central/rev/f4a1c6f61865 appears to be wrong.

After a var.forget() the variable can't be dereferenced any more. This leads to crashes:
https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=bK_PZktlRGyl7wq1EegQsA.0
https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=cstxhfhaREWgoGK_PpLu6g.0

Assertion failure: mRawPtr != nullptr (You can't dereference a NULL RefPtr with operator->().), at /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:354)

Flags: needinfo?(rob)
Flags: needinfo?(kaie)
Keywords: regression
Regressed by: 1825809

Yes, sorry, I should have reviewed more carefully.

I'll work on a fix.

Flags: needinfo?(kaie)
Assignee: nobody → kaie
Status: UNCONFIRMED → NEW
Ever confirmed: true

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/4f4463bed7ff
Don't use .forget() on objects that are referenced later. r=leftmostcat

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Flags: needinfo?(rob)
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: