Closed Bug 923255 Opened 6 years ago Closed 4 years ago

networking cache memory goes unreported in about:memory, and there's a lot of it

Categories

(Core :: Networking: Cache, defect)

defect
Not set

Tracking

()

RESOLVED DUPLICATE of bug 964039

People

(Reporter: froydnj, Unassigned)

References

(Blocks 1 open bug)

Details

After running a build for several days, I see a very high heap-unclassified (~25-30%), and lots of stacks attributing memory to the networking cache.  A quick scan through everything tells me the cache is responsible for ~15% of total heap memory.

This is really high and something we should be reporting in about:memory.  Not sure if this is the old networking cache or the new networking cache...

Sample stacks:

Unreported: ~12,367 blocks in stack trace record 1 of 9,042
 ~50,618,131 bytes (~50,618,131 requested / ~0 slop)
 5.22% of the heap (5.22% cumulative);  12.20% of unreported (12.20% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   nsStringBuffer::Alloc(unsigned long) (/home/froydnj/src/mozilla-central-official/xpcom/string/src/nsSubstring.cpp:183) 0x7fdcadb3ebd3
   nsACString_internal::MutatePrep(unsigned int, char**, unsigned int*) (/home/froydnj/src/mozilla-central-official/xpcom/string/src/nsTSubstring.cpp:132) 0x7fdcadb3fea6
   nsACString_internal::ReplacePrepInternal(unsigned int, unsigned int, unsigned int, unsigned int) (/home/froydnj/src/mozilla-central-official/xpcom/string/src/nsTSubstring.cpp:168) 0x7fdcadb3fee8
   nsACString_internal::Replace(unsigned int, unsigned int, char const*, unsigned int) (/home/froydnj/src/mozilla-central-official/xpcom/string/src/nsTSubstring.cpp:492) 0x7fdcadb402e8
   nsCacheService::CreateRequest(nsCacheSession*, nsACString_internal const&, int, bool, nsICacheListener*, nsCacheRequest**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:1825) 0x7fdcacddd6f8
   nsCacheService::OpenCacheEntry(nsCacheSession*, nsACString_internal const&, int, bool, nsICacheListener*, nsICacheEntryDescriptor**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:2041) 0x7fdcacde10a2
   nsWyciwygChannel::OpenCacheEntry(nsACString_internal const&, int) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:722) 0x7fdcace5cb1b
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:446) 0x7fdcace5cef7
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~5,998 blocks in stack trace record 3 of 9,042
 ~24,549,883 bytes (~24,525,433 requested / ~24,450 slop)
 2.53% of the heap (10.52% cumulative);  5.91% of unreported (24.58% cumulative)
 Allocated at
   replace_realloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1283) 0x7fdcb0f22cf6
   moz_xrealloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:87) 0x7fdcb0f1218d
   nsSegmentedBuffer::ReallocLastSegment(unsigned long) (/home/froydnj/src/mozilla-central-official/xpcom/io/nsSegmentedBuffer.cpp:115) 0x7fdcadb19d17
   nsStorageStream::Close() (/home/froydnj/src/mozilla-central-official/xpcom/io/nsStorageStream.cpp:127) 0x7fdcadb19f67
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Close_Locked() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1200) 0x7fdcacddb10d
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Close() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1184) 0x7fdcacddb8c4
   ~OffTheBooksMutex (/opt/build/froydnj/build-mc/netwerk/cache/../../dist/include/mozilla/Mutex.h:59) 0x7fdcacddc1e9
   operator delete (/opt/build/froydnj/build-mc/netwerk/cache/../../dist/include/mozilla/mozalloc.h:225) 0x7fdcacddc20d
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Release() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1070) 0x7fdcacddbc11
   nsCOMPtr<nsIInputStream>::operator=(nsIInputStream*) (/opt/build/froydnj/build-mc/netwerk/protocol/wyciwyg/../../../dist/include/nsCOMPtr.h:656) 0x7fdcace5c9cc
   nsWyciwygCloseEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:81) 0x7fdcace5d4bf
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~5,392 blocks in stack trace record 4 of 9,042
 ~22,069,456 bytes (~22,069,456 requested / ~0 slop)
 2.28% of the heap (12.80% cumulative);  5.32% of unreported (29.89% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   moz_xmalloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:55) 0x7fdcb0f12121
   nsSegmentedBuffer::AppendNewSegment() (/home/froydnj/src/mozilla-central-official/xpcom/io/nsSegmentedBuffer.cpp:41) 0x7fdcadb19b7f
   nsStorageStream::Write(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/xpcom/io/nsStorageStream.cpp:171) 0x7fdcadb19eaf
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1221) 0x7fdcacddb68d
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:473) 0x7fdcace5cfb9
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~3,040 blocks in stack trace record 8 of 9,042
 ~12,442,720 bytes (~12,442,720 requested / ~0 slop)
 1.28% of the heap (18.62% cumulative);  3.00% of unreported (43.51% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   moz_xmalloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:55) 0x7fdcb0f12121
   nsCacheRequest::IsStreamBased() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheRequest.h:90) 0x7fdcacde0e5a
   nsCacheService::ProcessRequest(nsCacheRequest*, bool, nsICacheEntryDescriptor**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:1928) 0x7fdcacddf731
   nsCacheService::OpenCacheEntry(nsCacheSession*, nsACString_internal const&, int, bool, nsICacheListener*, nsICacheEntryDescriptor**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:2062) 0x7fdcacde11c3
   nsWyciwygChannel::OpenCacheEntry(nsACString_internal const&, int) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:722) 0x7fdcace5cb1b
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:446) 0x7fdcace5cef7
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~1,813 blocks in stack trace record 10 of 9,042
 ~7,420,609 bytes (~7,420,609 requested / ~0 slop)
 0.77% of the heap (20.34% cumulative);  1.79% of unreported (47.52% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   moz_xmalloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:55) 0x7fdcb0f12121
   operator new (/opt/build/froydnj/build-mc/xpcom/io/../../dist/include/mozilla/mozalloc.h:201) 0x7fdcadb1a468
   nsMemoryCacheDevice::OpenOutputStreamForEntry(nsCacheEntry*, int, unsigned int, nsIOutputStream**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsMemoryCacheDevice.cpp:274) 0x7fdcacdef91e
   nsCacheEntryDescriptor::nsOutputStreamWrapper::LazyInit() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1109) 0x7fdcacddafc9
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write_Locked(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1230) 0x7fdcacddb13c
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1221) 0x7fdcacddb68d
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:473) 0x7fdcace5cfb9
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~1,657 blocks in stack trace record 12 of 9,042
 ~6,782,101 bytes (~6,782,101 requested / ~0 slop)
 0.70% of the heap (21.76% cumulative);  1.63% of unreported (50.84% cumulative)
 Allocated at
   replace_realloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1283) 0x7fdcb0f22cf6
   nsCacheMetaData::EnsureBuffer(unsigned int) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheMetaData.cpp:155) 0x7fdcacddc63c
   nsCacheMetaData::SetElement(char const*, char const*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheMetaData.cpp:70) 0x7fdcacddc7cb
   nsCacheEntryDescriptor::SetMetaDataElement(char const*, char const*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:634) 0x7fdcacdda728
   ~nsAutoCString (/opt/build/froydnj/build-mc/netwerk/protocol/wyciwyg/../../../dist/include/nsTString.h:447) 0x7fdcace5ce9d
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:460) 0x7fdcace5cf5a
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: ~1,030 blocks in stack trace record 15 of 9,042
 ~4,215,790 bytes (~4,215,790 requested / ~0 slop)
 0.43% of the heap (23.40% cumulative);  1.02% of unreported (54.67% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   moz_xmalloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:55) 0x7fdcb0f12121
   nsStorageStream::Init(unsigned int, unsigned int, nsIMemory*) (/home/froydnj/src/mozilla-central-official/xpcom/io/nsStorageStream.cpp:75) 0x7fdcadb1a118
   NS_NewStorageStream(unsigned int, unsigned int, nsIStorageStream**) (/home/froydnj/src/mozilla-central-official/xpcom/io/nsStorageStream.cpp:531) 0x7fdcadb1a495
   nsMemoryCacheDevice::OpenOutputStreamForEntry(nsCacheEntry*, int, unsigned int, nsIOutputStream**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsMemoryCacheDevice.cpp:274) 0x7fdcacdef91e
   nsCacheEntryDescriptor::nsOutputStreamWrapper::LazyInit() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1109) 0x7fdcacddafc9
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write_Locked(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1230) 0x7fdcacddb13c
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1221) 0x7fdcacddb68d
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:473) 0x7fdcace5cfb9
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: 1 block in stack trace record 16 of 9,042
 4,194,304 bytes (4,194,304 requested / 0 slop)
 0.43% of the heap (23.83% cumulative);  1.01% of unreported (55.68% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   ChangeTable (/home/froydnj/src/mozilla-central-official/xpcom/glue/pldhash.cpp:526) 0x7fdcadaf9d72
   PL_DHashTableOperate (/home/froydnj/src/mozilla-central-official/xpcom/glue/pldhash.cpp:609) 0x7fdcadafa312
   nsCacheEntryHashTable::AddEntry(nsCacheEntry*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntry.cpp:458) 0x7fdcacdd9d47
   nsMemoryCacheDevice::BindEntry(nsCacheEntry*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsMemoryCacheDevice.cpp:194) 0x7fdcacdf0188
   nsCacheEntry::ClearBinding() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntry.h:125) 0x7fdcacddffb6
   nsCacheService::OpenOutputStreamForEntry(nsCacheEntry*, int, unsigned int, nsIOutputStream**) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:2624) 0x7fdcacde0b8c
   nsCacheEntryDescriptor::nsOutputStreamWrapper::LazyInit() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1109) 0x7fdcacddafc9
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write_Locked(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1230) 0x7fdcacddb13c
   nsCacheEntryDescriptor::nsOutputStreamWrapper::Write(char const*, unsigned int, unsigned int*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:1221) 0x7fdcacddb68d
   nsWyciwygChannel::WriteToCacheEntryInternal(nsAString_internal const&, nsACString_internal const&) (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:473) 0x7fdcace5cfb9
   nsWyciwygWriteEvent::Run() (/home/froydnj/src/mozilla-central-official/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp:66) 0x7fdcace5d4e7
   nsThread::ProcessNextEvent(bool, bool*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:622) 0x7fdcadb27ad1
   NS_ProcessNextEvent(nsIThread*, bool) (/home/froydnj/src/mozilla-central-official/xpcom/glue/nsThreadUtils.cpp:238) 0x7fdcadaf8a3d
   nsThread::ThreadFunc(void*) (/home/froydnj/src/mozilla-central-official/xpcom/threads/nsThread.cpp:249) 0x7fdcadb2829f
   _pt_root (/home/froydnj/src/mozilla-central-official/nsprpub/pr/src/pthreads/ptthread.c:207) 0x7fdcb0dddb52
   start_thread (/build/buildd/eglibc-2.15/nptl/pthread_create.c:308) 0x7fdcb0af3e9a
   clone (/build/buildd/eglibc-2.15/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:114) 0x7fdcafc02ccd

Unreported: 187 blocks in stack trace record 23 of 9,042
 3,063,808 bytes (2,992,000 requested / 71,808 slop)
 0.32% of the heap (26.23% cumulative);  0.74% of unreported (61.27% cumulative)
 Allocated at
   replace_malloc (/home/froydnj/src/mozilla-central-official/memory/replace/dmd/DMD.cpp:1227) 0x7fdcb0f20f44
   moz_xmalloc (/home/froydnj/src/mozilla-central-official/memory/mozalloc/mozalloc.cpp:55) 0x7fdcb0f12121
   ThreadProfile::ThreadProfile(char const*, int, PseudoStack*, int, PlatformData*, bool, void*) (/home/froydnj/src/mozilla-central-official/tools/profiler/ProfileEntry.cpp:162) 0x7fdcad743632
   SyncProfile::SyncProfile(char const*, int, PseudoStack*, int, bool) (/home/froydnj/src/mozilla-central-official/tools/profiler/SyncProfile.cpp:16) 0x7fdcad7466d7
   NewSyncProfile (/home/froydnj/src/mozilla-central-official/tools/profiler/TableTicker.cpp:627) 0x7fdcad73f308
   TableTicker::GetBacktrace() (/home/froydnj/src/mozilla-central-official/tools/profiler/TableTicker.cpp:641) 0x7fdcad73f4f9
   operator new (/opt/build/froydnj/build-mc/tools/profiler/../../dist/include/mozilla/mozalloc.h:201) 0x7fdcad73ddcd
   profiler_get_backtrace (/home/froydnj/src/mozilla-central-official/tools/profiler/GeckoProfilerImpl.h:86) 0x7fdcad746166
   mozilla::IOInterposer::Report(mozilla::IOInterposeObserver::Observation&) (/home/froydnj/src/mozilla-central-official/tools/profiler/IOInterposer.cpp:169) 0x7fdcad7459d7
   ~Observation (/home/froydnj/src/mozilla-central-official/tools/profiler/IOInterposer.h:98) 0x7fdcad745ead
   interposedFSync (/home/froydnj/src/mozilla-central-official/tools/profiler/NSPRInterposer.cpp:78) 0x7fdcad745f3b
   nsDiskCacheMap::WriteCacheClean(bool) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsDiskCacheMap.cpp:1342) 0x7fdcacdeca47
   nsDiskCacheMap::InvalidateCache() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsDiskCacheMap.cpp:1354) 0x7fdcacdecac6
   nsDiskCacheMap::AddRecord(nsDiskCacheRecord*, nsDiskCacheRecord*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsDiskCacheMap.cpp:479) 0x7fdcacded3ea
   nsDiskCacheDevice::BindEntry(nsCacheEntry*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsDiskCacheDevice.cpp:688) 0x7fdcacde4b69
   nsCacheEntry::ClearBinding() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntry.h:125) 0x7fdcacddff74
   nsCacheService::DeactivateEntry(nsCacheEntry*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:2771) 0x7fdcacde009a
   nsCacheService::CloseDescriptor(nsCacheEntryDescriptor*) (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.cpp:2591) 0x7fdcacde0fb3
   ~nsCacheServiceAutoLock (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.h:384) 0x7fdcacddbeff
   nsCacheService::GlobalInstance() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheService.h:132) 0x7fdcacddbf4c
   operator delete (/opt/build/froydnj/build-mc/netwerk/cache/../../dist/include/mozilla/mozalloc.h:225) 0x7fdcacddbf7d
   nsCacheEntryDescriptor::Release() (/home/froydnj/src/mozilla-central-official/netwerk/cache/nsCacheEntryDescriptor.cpp:73) 0x7fdcacddbad3
   operator delete (/opt/build/froydnj/build-mc/netwerk/cache2/../../dist/include/mozilla/mozalloc.h:225) 0x7fdcace0118d
   mozilla::net::_OldCacheEntryWrapper::Release() (/home/froydnj/src/mozilla-central-official/netwerk/cache2/OldWrappers.cpp:226) 0x7fdcace0240d
If your preferences are set to default (mainly browser.cache.use_new_backend is at 0) then it's the old cache.  And if that is the old cache, then it's WONTFIX for me.  The stack supports that too.

I think we don't have a bug to do memory reporting of the new cache.  I'll file one and cc you.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 964039
You need to log in before you can comment on or make changes to this bug.