Closed Bug 1179782 Opened 9 years ago Closed 9 years ago

test_bug436801.html, test_bug494328.html, test_bug589543.html, test_registerHandler.html leaks for Windows & Mac (debug platforms), with run-by-dir enabled. test_bug589543.html also leaks for linux.

Categories

(Firefox Graveyard :: RSS Discovery and Preview, defect)

42 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kaustabh93, Assigned: mccr8)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0
Build ID: 20150321175551



Actual results:

As we can see on try, even after removal of a single test, the leaks persist. This was repeated for all the tests, and unless all the tests were removed, the leaks persisted.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=1ea5b2b8a6cb

Snippet of the log, detailing the leak : 
https://pastebin.mozilla.org/8838364
Component: Untriaged → RSS Discovery and Preview
Version: 36 Branch → 42 Branch
Status: UNCONFIRMED → NEW
Ever confirmed: true
These tests are all old, right? What has changed for this issue to become visible now?
Blocks: 1162003
(In reply to Florian Quèze [:florian] [:flo] from comment #1)
> These tests are all old, right? What has changed for this issue to become
> visible now?

We are trying to minimize failures when run-by-dir is enabled. These tests are causing leaks, so we'd like to have them resolved. 
When we run with rin-by-dir enabled, we only run the browser for the tests in that directory & then shut it down. This might cause us to terminate before delayed cleanup takes place.
Any leads on how to solve them would be helpful.
Resolving this bug would resolve all leaks for mochitest-plain with run-by-dir enabled. These are causing leaks in Windows, mac, linux and linux-asan.
Most of the stuff in the leak log looks generic, except for nsAuthURLParser. I'd start there.

Leaking a Backstage pass and a bunch of XPC* objects just means that we're leaking a system compartment (either JS-implemented XPCOM component or JSM) - it doesn't tell us how that's happening.
:bholley, any tips on how to start on the nsAuthURLParser?  is that something related to https?
(In reply to Joel Maher (:jmaher) from comment #5)
> :bholley, any tips on how to start on the nsAuthURLParser?  is that
> something related to https?

For general tips on debugging mochitest memory leaks, you probably want Andrew.
Flags: needinfo?(continuation)
I'll take a look. This RSS feed stuff comes up pretty frequently when you try to change how collection happens, because it involves a lot of ancient XPCOM stuff that isn't cycle collected properly.
Assignee: nobody → continuation
Flags: needinfo?(continuation)
Depends on: 1184400
with bug 1184400 fixed should some or all of this be fixed?  maybe a try push this weekend could tell us?
(In reply to Joel Maher (:jmaher) from comment #8)
> with bug 1184400 fixed should some or all of this be fixed?  maybe a try
> push this weekend could tell us?

Bug 1184400 fixes the entire leak for me locally when I run
  ./mach mochitest -f plain browser/components/feeds/test/
Let me know if it is still broken in your test runs.
This is fixed : https://treeherder.mozilla.org/#/jobs?repo=try&revision=156e71936b5f

Thanks for getting this working.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.