Closed Bug 389719 Opened 17 years ago Closed 17 years ago

prefetch-related leak loading firefox google start page

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: dbaron, Assigned: Biesinger)

References

()

Details

(Keywords: memory-leak)

Attachments

(1 file)

When I start the browser with http://www.google.com/firefox as the home page, I leak a bunch of objects.  It seems like the root of the leak is a prefetch node and the prefetch service, although I haven't looked into it too closely.  The prefetch node is holding on to an nsHttpChannel (should it still be holding on to one at shutdown?), which it turn owns the nsHttpHandler, which in turn leaks a bunch of other services.

Steps to reproduce:
 1. export XPCOM_MEM_LEAK_LOG=leak.log
 2. ./firefox http://www.google.com/firefox
 3. close the browser window that comes up
 4. look at leak.log to see what objects leaked
Flags: blocking1.9?
biesi, can you look at this?
Assignee: nobody → cbiesinger
Flags: blocking1.9? → blocking1.9+
OK, this bug requires that the prefetched resource is already in the cache. HTTP doesn't release the notification callbacks in that case.
Component: File Handling → Networking: HTTP
OS: Linux → All
QA Contact: file-handling → networking.http
Hardware: PC → All
Attached patch patchSplinter Review
Attachment #279133 - Flags: superreview?(bzbarsky)
Attachment #279133 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.9 M8
Comment on attachment 279133 [details] [diff] [review]
patch

Nice catch!
Attachment #279133 - Flags: superreview?(bzbarsky)
Attachment #279133 - Flags: superreview+
Attachment #279133 - Flags: review?(bzbarsky)
Attachment #279133 - Flags: review+
Attachment #279133 - Flags: approval1.9+
Checking in nsHttpChannel.cpp;
/cvsroot/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp,v  <--  nsHttpChannel.cpp
new revision: 1.320; previous revision: 1.319
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: