Closed Bug 504504 Opened 15 years ago Closed 15 years ago

xpcshell-tests: test_downloadOffline.js leaks intermittently

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(thunderbird3.1 beta1-fixed, thunderbird3.0 unaffected)

RESOLVED FIXED
Thunderbird 3.1b1
Tracking Status
thunderbird3.1 --- beta1-fixed
thunderbird3.0 --- unaffected

People

(Reporter: sgautherie, Assigned: ZaneUJi)

References

()

Details

(Keywords: memory-leak)

Attachments

(1 file)

[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko/20090715 SeaMonkey/2.1a1pre] (home, optim default) (W2Ksp4) (http://hg.mozilla.org/mozilla-central/rev/d190d9b6ccd1 +http://hg.mozilla.org/comm-central/rev/773809454cf2) { TEST-PASS | e:\Dvlp\Mozilla\Hg\objdir-SeaMonkey_\mozilla\_tests\xpcshell\test_imap\unit\test_downloadOffline.js | test passed == BloatView: ALL (cumulative) LEAK STATISTICS |<----------------Class--------------->|<-----Bytes------>|<----------------Objects Per-Inst Leaked Total 0 TOTAL 30 2280 12272 36 nsAStreamCopier 64 64 5 162 nsPipe 152 152 6 173 nsRecyclingAllocatorImpl 36 36 1 184 nsSocketTransport 224 224 2 185 nsSocketTransportService 1680 1680 1 194 nsStringBuffer 8 8 4576 204 nsThread 68 68 6 207 nsTimerImpl 48 48 8 nsTraceRefcntImpl::DumpStatistics: 235 entries }
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko/20090530 SeaMonkey/2.0b1pre] (experimental/_m-c_, home, optim default) (W2Ksp4) (http://hg.mozilla.org/mozilla-central/rev/e44d9c0f4805 +http://hg.mozilla.org/comm-central/rev/62f2c362a9a4 + bug 493008 patches) Ftr, this build already had this bug.
Attachment #423142 - Flags: superreview?(bienvenu)
Attachment #423142 - Flags: review?(bienvenu)
Comment on attachment 423142 [details] [diff] [review] Don't end the test in a listenser thx, Zane.
Attachment #423142 - Flags: superreview?(bienvenu)
Attachment #423142 - Flags: superreview+
Attachment #423142 - Flags: review?(bienvenu)
Attachment #423142 - Flags: review+
Keywords: checkin-needed
Comment on attachment 423142 [details] [diff] [review] Don't end the test in a listenser While there, >@@ -97,19 +97,21 @@ var UrlListener = 85 if (!gDownloadedOnce) { 86 gDownloadedOnce = true; 87 gIMAPInbox.downloadAllForOffline(UrlListener, null); 88 return; 89 } 90 else { Could you remove this "_else_ after return"? > } >- endTest(); > } > do_timeout(1000, endTest); Not knowing this test, I wonder why this is needed. Is it a case of the first of the two "endTest" calls to run wins? Could that be documented? >+ }, >+ finalize: function() { >+ do_timeout(0, endTest); > } > };
Assignee: nobody → ZaneUJi
Status: NEW → ASSIGNED
I've checked this in: http://hg.mozilla.org/comm-central/rev/376bc5f318dc Please deal with follow-ups in a separate bug.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.1b1
Depends on: 544396
(In reply to comment #5) I filed bug 544396.
Don't care about this for 3.0.x - its a test-only change and hence not a real leak, most dev work should be going on on trunk and that's where we'll be looking for leaks. Setting to "unaffected" as this wouldn't affect the 3.0 build.
(In reply to comment #7) I just have to opposite p-o-v: test-only means zero risk, and this fixes random-orange on local and tinderboxes for SM and probably TB :-| Your "unaffected" should be "wontfix" then :-/
(In reply to comment #8) > (In reply to comment #7) > > I just have to opposite p-o-v: > test-only means zero risk, and this fixes random-orange on local and > tinderboxes for SM and probably TB :-| Leaks in xpcshell-tests aren't random-oranges. If they are then we haven't communicated something correctly. The Thunderbird boxes have never gone orange for leaks, and we won't look at that until FF does it (and I'm fairly sure the FF tests don't).
(In reply to comment #9) I agree, but it will after bug 469523 and it already shows up in the logs...
(In reply to comment #10) > (In reply to comment #9) > > I agree, but it will after bug 469523 and it already shows up in the logs... Ok, so that hasn't been announced and I hadn't been aware of it. I'd also argue that it needs to be configurable on at least a per-repository and per-branch basis as I doubt we're going to have everything ready at the same time, and depending on the fixes required for some of the mailnews leaks we may not want to take them on the c-1.9.1 branch (not saying we won't, just saying that I have no idea).
(In reply to comment #11) Wow! How come a trivial suggestion to land this fix on c-1.9.1 becomes a debate on what is (not) happening in core bug 469523? It would take (me) a few minutes to land it there, and ... *$%@&!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: