Closed
Bug 299704
Opened 19 years ago
Closed 9 years ago
Mozilla freezes and leaks memory setting ftp image source via JS
Categories
(Core Graveyard :: Networking: FTP, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ajschult784, Unassigned)
References
Details
(Keywords: perf, testcase, Whiteboard: [necko-backlog])
Attachments
(1 file, 1 obsolete file)
|
230 bytes,
text/html
|
Details |
This is an FTP version of bug 228233. Current trunk builds (suite) exhibit uncontrolled memory growth (~1MB/s) setting an image source via JS to an FTP URL. I'll attach a testcase. Unfortunately, XPCOM_MEM_LEAK_LOG does not show any substantial leak (a few hundred bytes from random objects). valgrind shows more leaked, but only a few KB that could be related to this bug. I also don't think the real leak happens running under valgrind (probably too slow). I get a zillion of these after I hit "stop script", but only if I run under valgrind: ###!!! ASSERTION: ftp state is null.: 'Error', file /build/andrew/moz-debug/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp, line 545
| Reporter | ||
Comment 1•19 years ago
|
||
loading this testcase grabs 1+MB/s for me with trunk suite build 2005070405
Updated•19 years ago
|
Summary: Mozilla freezes leaks memory setting ftp image source via JS → Mozilla freezes and leaks memory setting ftp image source via JS
Comment 2•19 years ago
|
||
Andrew, is that the right testcase? It doesn't have an image or ftp:// urls in it...
| Reporter | ||
Comment 4•18 years ago
|
||
right. here's the real testcase
Attachment #188281 -
Attachment is obsolete: true
Comment 5•18 years ago
|
||
Hmmm... So unlike bug 228233 there's no actual leak? Just memory growth while the testcase runs (because the channels involved can't get deallocated until the event queue gets processed and the testcase is not allowing event processing)?
Depends on: 228233
| Reporter | ||
Comment 6•18 years ago
|
||
Well, no leak that XPCOM_MEM_LEAK notices. And running under valgrind seems to avoid this bug in the first place. But I don't see memory reclaimed after I stop the script and open / close windows to trigger garbage collection.
| Reporter | ||
Comment 10•17 years ago
|
||
Yes. The slow script warning seems to help in stopping the memory growth (I still leak sometimes), but I increased the timeout to 60s and I grew from 275MB virtual to 750MB.
Comment 11•17 years ago
|
||
So I tried running with XPCOM_MEM_LEAK_LOG and calling nsTraceRefcntImpl::DumpStatistics(0, 0) after closing the testcase and triggering a GC. The only FTP object alive at that point is the ftp protocol handler. I wonder whether this is basically a fragmentation issue. stuart, is there a difference here between our normal allocators and jemalloc?
Comment 12•15 years ago
|
||
(In reply to comment #11) > stuart, is there a difference here between our normal allocators and jemalloc?
Keywords: perf
Updated•9 years ago
|
Whiteboard: [necko-backlog]
Comment 13•9 years ago
|
||
actually, take the http bug but close ftp as deprecated
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•7 months ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•