Open
Bug 1242597
Opened 8 years ago
Updated 2 years ago
reference loop in nsSocketTransport AsyncCopy
Categories
(Core :: Networking, defect, P3)
Core
Networking
Tracking
()
NEW
People
(Reporter: mcmanus, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [necko-active])
Attachments
(1 file)
2.86 KB,
patch
|
dragana
:
review+
|
Details | Diff | Splinter Review |
when using an async copier with a pipe, a refernece loop can form as follows: copier holds reference to transport (via &mOutput argument to NS_AsynCopy) and eventually through nsStreamUtils.h calls transport::outputstream::asyncwait using the copier as the callback. the asyncwait() method holds a reference to the copier until calling OnOutputStream ready. The copier also references transport, so a loop is formed and if OnOutputStreamReady is not called it does not get broken - both the copier and the transport are leaked. (an example of this is in OpenOutputStream() where the code path does NS_AsyncCopy) the patch rejects asyncwait() calls for sockets that have been already been detached. (detaching results in the outputstreamready function being invoked and the callback being cleared.)
Reporter | ||
Comment 1•8 years ago
|
||
Attachment #8711743 -
Flags: review?(dd.mozilla)
Reporter | ||
Comment 2•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ac01f86f2367&selectedJob=15825599
Updated•8 years ago
|
Attachment #8711743 -
Flags: review?(dd.mozilla) → review+
Reporter | ||
Comment 3•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7e32d3531b96def705f7e5a84045365d29716ce1 Bug 1242597 - Fix nsSocketTransport reference loop r=dragana
Comment 4•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7e32d3531b96
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•8 years ago
|
Target Milestone: mozilla46 → mozilla47
Reporter | ||
Comment 5•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/22f3ea5449d75019d43888b75036ab4790ff4780 Bug 1242597 - backout 7e32d3531b96def705f7e5a84045365d29716ce1 r=backout
Reporter | ||
Comment 6•8 years ago
|
||
backed out for crashes in 1243424
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•8 years ago
|
status-firefox47:
fixed → ---
Comment 7•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/22f3ea5449d7
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Comment 8•8 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #7) > https://hg.mozilla.org/mozilla-central/rev/22f3ea5449d7 This looks like backout, so reopening or I'm wrong Carsten Book [:Tomcat]?
Status: RESOLVED → REOPENED
Flags: needinfo?(cbook)
Resolution: FIXED → ---
Updated•8 years ago
|
status-firefox47:
fixed → ---
Comment 9•8 years ago
|
||
(In reply to Virtual_ManPL [:Virtual] from comment #8) > (In reply to Carsten Book [:Tomcat] from comment #7) > > https://hg.mozilla.org/mozilla-central/rev/22f3ea5449d7 > > This looks like backout, so reopening > or I'm wrong Carsten Book [:Tomcat]? indeed seems the tool didn't detected this, thanks!
Flags: needinfo?(cbook)
Reporter | ||
Updated•8 years ago
|
Whiteboard: [necko-active]
Reporter | ||
Updated•8 years ago
|
Summary: reference loop in nsSocketTransport AsnycCopy → reference loop in nsSocketTransport AsyncCopy
Comment 10•8 years ago
|
||
Worth working on but Patrick doesn't have cycles right now. Volunteers?
Assignee: mcmanus → nobody
Comment 11•8 years ago
|
||
Let's land this, and see if we still have the same crash.
Updated•8 years ago
|
Keywords: checkin-needed
Updated•8 years ago
|
Assignee: nobody → dd.mozilla
Status: REOPENED → ASSIGNED
Updated•8 years ago
|
Target Milestone: mozilla47 → ---
Comment 12•8 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/6a0f2b93749a Fix nsSocketTransport reference loop. r=dragana
Keywords: checkin-needed
I had to back this out because it appears to be the cause of leaksanitizer failures like https://treeherder.mozilla.org/logviewer.html#?job_id=34106368&repo=mozilla-inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/2d4a3ed75340
Flags: needinfo?(dd.mozilla)
Comment 14•7 years ago
|
||
Bulk priority update: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Updated•7 years ago
|
Priority: P1 → P2
Comment 15•6 years ago
|
||
Moving to p3 because no activity for at least 1 year(s). See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Updated•4 years ago
|
Flags: needinfo?(dd.mozilla)
Updated•2 years ago
|
Severity: normal → S3
Comment 16•2 years ago
|
||
I will not have time to work on this bug, so I am unassigning myself.
Assignee: dd.mozilla → nobody
Status: ASSIGNED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•