Closed Bug 1105586 Opened 10 years ago Closed 9 years ago

Intermittent LeakSanitizer | leak at mozilla::net::DNSListenerProxy::OnLookupComplete, nsDNSAsyncRequest::OnLookupComplete, nsHostResolver::OnLookupComplete

Categories

(Core :: Networking, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: RyanVM, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, memory-leak)

15:50:19 INFO - ==4273==ERROR: LeakSanitizer: detected memory leaks 15:50:19 INFO - Direct leak of 224 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23580943 in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23580943 in mozilla::net::DNSListenerProxy::OnLookupComplete(nsICancelable*, nsIDNSRecord*, tag_nsresult) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/DNSListenerProxy.cpp:23 15:50:19 INFO - #4 0x7fde23586011 in nsDNSAsyncRequest::OnLookupComplete(nsHostResolver*, nsHostRecord*, tag_nsresult) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsDNSService2.cpp:306 15:50:19 INFO - #5 0x7fde23573e9d in nsHostResolver::OnLookupComplete(nsHostRecord*, tag_nsresult, mozilla::net::AddrInfo*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1288 15:50:19 INFO - Indirect leak of 352 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23589b9b in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23589b9b in nsDNSService::AsyncResolve(nsACString_internal const&, unsigned int, nsIDNSListener*, nsIEventTarget*, nsICancelable**) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsDNSService2.cpp:719 15:50:19 INFO - #4 0x7fde2346b0ad in nsDNSPrefetch::Prefetch(unsigned short) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/base/src/nsDNSPrefetch.cpp:61 15:50:19 INFO - #5 0x7fde2386c7e5 in mozilla::net::nsHttpChannel::BeginConnect() /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:4933 15:50:19 INFO - Indirect leak of 288 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde2386c6e6 in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/protocol/http/../../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde2386c6e6 in mozilla::net::nsHttpChannel::BeginConnect() /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:4932 15:50:19 INFO - #4 0x7fde2386e114 in mozilla::net::nsHttpChannel::OnProxyAvailable(nsICancelable*, nsIURI*, nsIProxyInfo*, tag_nsresult) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:5042 15:50:19 INFO - #5 0x7fde234ecd98 in nsAsyncResolveRequest::DoCallback() /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/base/src/nsProtocolProxyService.cpp:226 15:50:19 INFO - Indirect leak of 192 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23585e6e in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23585e6e in nsDNSAsyncRequest::OnLookupComplete(nsHostResolver*, nsHostRecord*, tag_nsresult) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsDNSService2.cpp:299 15:50:19 INFO - #4 0x7fde23573e9d in nsHostResolver::OnLookupComplete(nsHostRecord*, tag_nsresult, mozilla::net::AddrInfo*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1288 15:50:19 INFO - #5 0x7fde23578368 in nsHostResolver::ThreadFunc(void*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1433 15:50:19 INFO - Indirect leak of 168 byte(s) in 1 object(s) allocated from: 15:50:19 INFO - #0 0x471e81 in calloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:90 15:50:19 INFO - #1 0x7fde3ac1ea39 in PR_NewLock /builds/slave/m-in-l64-asan-0000000000000000/build/src/nsprpub/pr/src/pthreads/ptsynch.c:142 15:50:19 INFO - #2 0x7fde23571c2f in OffTheBooksMutex /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/Mutex.h:49 15:50:19 INFO - #3 0x7fde23571c2f in ThreadSafeAutoRefCnt /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/Mutex.h:125 15:50:19 INFO - #4 0x7fde23571c2f in nsHostRecord /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:177 15:50:19 INFO - #5 0x7fde23571c2f in nsHostRecord::Create(nsHostKey const*, nsHostRecord**) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:196 15:50:19 INFO - #6 0x7fde2357adaf in HostDB_InitEntry(PLDHashTable*, PLDHashEntryHdr*, void const*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:460 15:50:19 INFO - #7 0x7fde23359c38 in Operate /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/pldhash.cpp:618 15:50:19 INFO - #8 0x7fde23359c38 in PL_DHashTableOperate(PLDHashTable*, void const*, PLDHashOperator) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/pldhash.cpp:667 15:50:19 INFO - Indirect leak of 161 byte(s) in 1 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23571bfc in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23571bfc in nsHostRecord::Create(nsHostKey const*, nsHostRecord**) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:195 15:50:19 INFO - #4 0x7fde2357adaf in HostDB_InitEntry(PLDHashTable*, PLDHashEntryHdr*, void const*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:460 15:50:19 INFO - #5 0x7fde23359c38 in Operate /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/pldhash.cpp:618 15:50:19 INFO - #6 0x7fde23359c38 in PL_DHashTableOperate(PLDHashTable*, void const*, PLDHashOperator) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/pldhash.cpp:667 15:50:19 INFO - Indirect leak of 136 byte(s) in 1 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde2357f7b9 in NetAddrElement /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde2357f7b9 in mozilla::net::AddrInfo::AddrInfo(char const*, PRAddrInfo const*, bool, char const*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/DNS.cpp:273 15:50:19 INFO - #4 0x7fde2358491d in _GetAddrInfo_Portable /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:255 15:50:19 INFO - #5 0x7fde2358491d in mozilla::net::GetAddrInfo(char const*, unsigned short, unsigned short, mozilla::net::AddrInfo**, bool) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:307 15:50:19 INFO - #6 0x7fde235781f0 in nsHostResolver::ThreadFunc(void*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1403 15:50:19 INFO - Indirect leak of 128 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23357979 in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/xpcom/build/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23357979 in nsSupportsWeakReference::GetWeakReference(nsIWeakReference**) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/nsWeakReference.cpp:101 15:50:19 INFO - #4 0x7fde23357715 in NS_GetWeakReference(nsISupports*, tag_nsresult*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/glue/nsWeakReference.cpp:80 15:50:19 INFO - #5 0x7fde2346adc4 in do_GetWeakReference /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/base/src/../../../dist/include/nsIWeakReferenceUtils.h:72 15:50:19 INFO - #6 0x7fde2346adc4 in nsDNSPrefetch::nsDNSPrefetch(nsIURI*, nsIDNSListener*, bool) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/base/src/nsDNSPrefetch.cpp:38 15:50:19 INFO - Indirect leak of 100 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde231e10b4 in Alloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsSubstring.cpp:219 15:50:19 INFO - #2 0x7fde231e10b4 in nsACString_internal::MutatePrep(unsigned int, char**, unsigned int*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsTSubstring.cpp:133 15:50:19 INFO - #3 0x7fde231e13de in nsACString_internal::ReplacePrepInternal(unsigned int, unsigned int, unsigned int, unsigned int) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsTSubstring.cpp:170 15:50:19 INFO - #4 0x7fde231e218f in ReplacePrep /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsTSubstring.h:982 15:50:19 INFO - #5 0x7fde231e218f in nsACString_internal::Assign(char const*, unsigned int, mozilla::fallible_t const&) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsTSubstring.cpp:317 15:50:19 INFO - #6 0x7fde231e27bb in nsACString_internal::Assign(nsACString_internal const&, mozilla::fallible_t const&) /builds/slave/m-in-l64-asan-0000000000000000/build/src/xpcom/string/nsTSubstring.cpp:409 15:50:19 INFO - Indirect leak of 96 byte(s) in 4 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23589a47 in nsIDNSListenerProxy /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23589a47 in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/net/DNSListenerProxy.h:33 15:50:19 INFO - #4 0x7fde23589a47 in nsDNSService::AsyncResolve(nsACString_internal const&, unsigned int, nsIDNSListener*, nsIEventTarget*, nsICancelable**) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsDNSService2.cpp:714 15:50:19 INFO - #5 0x7fde2346b0ad in nsDNSPrefetch::Prefetch(unsigned short) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/base/src/nsDNSPrefetch.cpp:61 15:50:19 INFO - #6 0x7fde2386c7e5 in mozilla::net::nsHttpChannel::BeginConnect() /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/protocol/http/nsHttpChannel.cpp:4933 15:50:19 INFO - Indirect leak of 48 byte(s) in 1 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde23584901 in operator new /builds/slave/m-in-l64-asan-0000000000000000/build/src/obj-firefox/netwerk/dns/../../dist/include/mozilla/mozalloc.h:208 15:50:19 INFO - #3 0x7fde23584901 in _GetAddrInfo_Portable /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:255 15:50:19 INFO - #4 0x7fde23584901 in mozilla::net::GetAddrInfo(char const*, unsigned short, unsigned short, mozilla::net::AddrInfo**, bool) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:307 15:50:19 INFO - #5 0x7fde235781f0 in nsHostResolver::ThreadFunc(void*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1403 15:50:19 INFO - #6 0x7fde3ac32405 in _pt_root /builds/slave/m-in-l64-asan-0000000000000000/build/src/nsprpub/pr/src/pthreads/ptthread.c:212 15:50:19 INFO - Indirect leak of 17 byte(s) in 1 object(s) allocated from: 15:50:19 INFO - #0 0x471d71 in malloc /builds/slave/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:74 15:50:19 INFO - #1 0x7fde38292cbd in moz_xmalloc /builds/slave/m-in-l64-asan-0000000000000000/build/src/memory/mozalloc/mozalloc.cpp:52 15:50:19 INFO - #2 0x7fde2357f562 in Init /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/DNS.cpp:301 15:50:19 INFO - #3 0x7fde2357f562 in mozilla::net::AddrInfo::AddrInfo(char const*, PRAddrInfo const*, bool, char const*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/DNS.cpp:267 15:50:19 INFO - #4 0x7fde2358491d in _GetAddrInfo_Portable /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:255 15:50:19 INFO - #5 0x7fde2358491d in mozilla::net::GetAddrInfo(char const*, unsigned short, unsigned short, mozilla::net::AddrInfo**, bool) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/GetAddrInfo.cpp:307 15:50:19 INFO - #6 0x7fde235781f0 in nsHostResolver::ThreadFunc(void*) /builds/slave/m-in-l64-asan-0000000000000000/build/src/netwerk/dns/nsHostResolver.cpp:1403 15:50:19 INFO - ----------------------------------------------------- 15:50:19 INFO - Suppressions used: 15:50:19 INFO - count bytes template 15:50:19 INFO - 802 25632 nsComponentManagerImpl 15:50:19 INFO - 57 7752 mozJSComponentLoader::LoadModule 15:50:19 INFO - 1 24672 profiler_init 15:50:19 INFO - 1 384 pixman_implementation_lookup_composite 15:50:19 INFO - 360 15936 libfontconfig.so 15:50:19 INFO - 1 32 libdl.so 15:50:19 INFO - 34 6556 libglib-2.0.so 15:50:19 INFO - 1 40 libpulsecommon-1.1.so 15:50:19 INFO - 4 112 libresolv.so 15:50:19 INFO - ----------------------------------------------------- 15:50:19 INFO - SUMMARY: AddressSanitizer: 1910 byte(s) leaked in 33 allocation(s). 15:50:19 INFO - TEST-INFO | Main app process: exit 0 15:50:19 WARNING - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::net::DNSListenerProxy::OnLookupComplete, nsDNSAsyncRequest::OnLookupComplete, nsHostResolver::OnLookupComplete
Blocks: LSan
It looks like the OnLookupCompleteRunnable is being leaked.
Inactive; closing (see bug 1180138).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.