Closed
Bug 389719
Opened 17 years ago
Closed 17 years ago
prefetch-related leak loading firefox google start page
Categories
(Core :: Networking: HTTP, defect)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha8
People
(Reporter: dbaron, Assigned: Biesinger)
References
()
Details
(Keywords: memory-leak)
Attachments
(1 file)
1.45 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
bzbarsky
:
approval1.9+
|
Details | Diff | Splinter Review |
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?
Comment 1•17 years ago
|
||
biesi, can you look at this?
Assignee: nobody → cbiesinger
Flags: blocking1.9? → blocking1.9+
Assignee | ||
Comment 2•17 years ago
|
||
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
Assignee | ||
Comment 3•17 years ago
|
||
Attachment #279133 -
Flags: superreview?(bzbarsky)
Attachment #279133 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.9 M8
Comment 4•17 years ago
|
||
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+
Assignee | ||
Comment 5•17 years ago
|
||
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.
Description
•