Closed
Bug 162959
Opened 23 years ago
Closed 9 years ago
ftp somehow leaks the category manager
Categories
(Core Graveyard :: Networking: FTP, defect, P2)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
mozilla1.5alpha
People
(Reporter: alecf, Assigned: alecf)
References
Details
(Keywords: memory-leak)
Attachments
(1 file)
9.44 KB,
text/plain
|
Details |
one of the big leaks on tinderbox seems to be related to FTP and the category
manager - we're leaking the entire category manager and all of its categories,
strings, you name it.. from my initial testing, it only seems to happen when
someone uses FTP once.. if you don't use FTP it doesn't seem to leak. I don't
claim to understand it yet, but I wanted the bug filed :)
(this is among other FTP leaks that I haven't yet narrowed down)
Assignee | ||
Comment 1•23 years ago
|
||
ok, just one more comment with respect to this - I don't see any reason why FTP
of all things should be making it leak - I mean, it doesn't even seem to USE the
category manager. So there's something else funny going on. it could be the
thing that converts the ftp directory listing to HTML.. anyone know where that
is/how it works?
Assignee: bbaetz → alecf
Comment 2•23 years ago
|
||
alecf: netwerk/streamconv/converters/{nsFTPDirListingConv.cpp,
nsIndexedToHTML.cpp} has the ftp->intermediate->html format
Assignee | ||
Comment 3•23 years ago
|
||
ok, this is particularly strange, because nothing in the entire netwerk/
directory seems to hold a long-lived reference to the category manager.
Comment 4•23 years ago
|
||
Maybe we're holding onto somthing which is? Can't the refcount balancer thingy
find out who that is?
Comment 5•23 years ago
|
||
*** Bug 163195 has been marked as a duplicate of this bug. ***
Just so I understand:
bug 160465 fixed the problem w/ the build system, but we still have some kind of
problem w/ the ftp code...?
Assignee | ||
Comment 7•23 years ago
|
||
no, bug 160465 exposed the FTP problem.. we didn't know it existed until that
bug was "fixed"
ok, and nsDSURIContentListener seems to be the only relevant object that's
holding a long-term reference to the category manager.. my purify build has
started behaving badly, so I'm stuck on this until the planets realign
Status: NEW → ASSIGNED
Is this relevant?
[E] ABR: Array bounds read in nsDependentCString::Rebind(char const*,char
const*) {2 occurrences}
Reading 1 byte from 0x0a8b5dcc (1 byte at 0x0a8b5dcc illegal)
Address 0x0a8b5dcc is 1 byte past the end of a 924 byte block at
0x0a8b5a30
Address 0x0a8b5dcc points to a malloc'd block in heap 0x02770000
Thread ID: 0x71c
Error location
nsDependentCString::Rebind(char const*,char const*)
[nsDependentString.h:160]
nsDependentCString::Rebind(char const*,UINT)
[nsDependentString.h:169]
nsDependentCString::nsDependentCString(char const*,UINT)
[nsDependentString.h:173]
nsIndexedToHTML::FormatInputStream(nsIRequest *,nsISupports
*,nsAString const&) [nsIndexedToHTML.cpp:413]
nsIndexedToHTML::OnStartRequest(nsIRequest *,nsISupports *)
[nsIndexedToHTML.cpp:333]
nsFTPDirListingConv::OnStartRequest(nsIRequest *,nsISupports *)
[nsFTPDirListingConv.cpp:330]
nsStreamListenerTee::OnStartRequest(nsIRequest *,nsISupports *)
[nsStreamListenerTee.cpp:50]
DataRequestForwarder::DelayedOnStartRequest(nsIRequest
*,nsISupports *) [nsFtpConnectionThread.cpp:282]
DataRequestForwarder::OnDataAvailable(nsIRequest *,nsISupports
*,nsIInputStream *,UINT,UINT) [nsFtpConnectionThread.cpp:359]
nsOnDataAvailableEvent::HandleEvent(void)
[nsStreamListenerProxy.cpp:194]
Allocation location
malloc [dbgheap.c:129]
PR_Malloc [prmem.c:474]
nsMemoryImpl::Alloc(UINT) [nsMemoryImpl.cpp:320]
nsMemory::Alloc(UINT) [nsMemory.cpp:75]
nsIndexedToHTML::FormatInputStream(nsIRequest *,nsISupports
*,nsAString const&) [nsIndexedToHTML.cpp:388]
nsIndexedToHTML::OnStartRequest(nsIRequest *,nsISupports *)
[nsIndexedToHTML.cpp:333]
nsFTPDirListingConv::OnStartRequest(nsIRequest *,nsISupports *)
[nsFTPDirListingConv.cpp:330]
nsStreamListenerTee::OnStartRequest(nsIRequest *,nsISupports *)
[nsStreamListenerTee.cpp:50]
DataRequestForwarder::DelayedOnStartRequest(nsIRequest
*,nsISupports *) [nsFtpConnectionThread.cpp:282]
DataRequestForwarder::OnDataAvailable(nsIRequest *,nsISupports
*,nsIInputStream *,UINT,UINT) [nsFtpConnectionThread.cpp:359]
This is just a listing of pretty much all stacks with 'FTP' in their name, as
outputted by Purify - some of them are obviously out of the scope of this bug
(for instance, I think Gordon should own the cache leak), but maybe they're all
related, I'm not sure.
Assignee | ||
Comment 10•23 years ago
|
||
nah - interesting and should be fixed, but nothing that would cause a leak
Comment 11•23 years ago
|
||
stephend: Thats separate - I filed bug 164197, thanks
The other ones in teh attachment aren't ftp related.
Assignee | ||
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → mozilla1.2beta
QA Contact: benc → stephend
Assignee | ||
Comment 12•22 years ago
|
||
These bugs missed the 1.2 train. Moving these out to 1.3alpha
Target Milestone: mozilla1.2beta → mozilla1.3alpha
Assignee | ||
Updated•22 years ago
|
Target Milestone: mozilla1.3alpha → mozilla1.4alpha
Assignee | ||
Comment 13•22 years ago
|
||
bumping these to 1.5alpha, I just don't have time in 1.4beta...
Target Milestone: mozilla1.4alpha → mozilla1.5alpha
Updated•16 years ago
|
QA Contact: stephend → networking.ftp
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Updated•1 year ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•