Closed Bug 1232555 Opened 9 years ago Closed 8 years ago

Intermittent e10s LeakSanitizer | leak at NewURI, mozilla::net::nsHttpHandler::NewURI, nsIOService::NewURI, NS_NewURI etc.

Categories

(Core :: DOM: Service Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
e10s + ---

People

(Reporter: philor, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: intermittent-failure, memory-leak)

Takes a bit of scrolling to get down to your part, but eventually...

https://treeherder.mozilla.org/logviewer.html#?job_id=18583979&repo=mozilla-inbound

 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at NewURI, mozilla::net::nsHttpHandler::NewURI, nsIOService::NewURI, NS_NewURI
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::net::HttpChannelChild::HttpChannelChild, mozilla::net::nsHttpHandler::NewProxiedChannel2, nsIOService::NewChannelFromURIWithProxyFlagsInternal
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at PLDHashTable::Add, nsLoadGroup::AddRequest, mozilla::net::HttpChannelChild::AsyncOpen, AsyncOpen2
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::workers::serviceWorkerScriptCache::Compare, mozilla::dom::workers::ServiceWorkerRegisterJob::ContinueUpdate, apply, nsRunnableMethodImpl
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at PR_NewLock, OffTheBooksMutex, nsISupportsPriority, nsThread::nsThread
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsStandardURL::StartClone, CloneInternal, nsStandardURL::Clone, NS_EnsureSafeToReturn
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::BasePrincipal::CreateCodebasePrincipal, nsScriptSecurityManager::GetLoadContextCodebasePrincipal, nsScriptSecurityManager::GetChannelURIPrincipal
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at *, mozilla::dom::workers::ServiceWorkerRegisterJob::Start, mozilla::dom::workers::ServiceWorkerManager::Register, mozilla::dom::ServiceWorkerContainer::Register
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at xpc::CreateSandboxObject, nsXPConnect::CreateSandbox, CreateCacheStorage, Initialize
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::workers::ServiceWorkerRegisterJob::ComparisonResult, mozilla::dom::workers::serviceWorkerScriptCache::, mozilla::dom::NativePromiseCallback::Call
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Realloc, nsTArray_base, nsTArray_Impl, AppendElement
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsThreadManager::Init, mozilla::dom::ContentChild::Init, mozilla::dom::ContentProcess::Init
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::net::nsHttpHandler::NewProxiedChannel2, nsIOService::NewChannelFromURIWithProxyFlagsInternal, nsIOService::NewChannelFromURIWithProxyFlags2
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at PR_NewLock, OffTheBooksMutex, Mutex, mozilla::ConsoleReportCollector::ConsoleReportCollector
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::cache::CacheStorage::CreateOnMainThread, CreateCacheStorage, Initialize, mozilla::dom::workers::serviceWorkerScriptCache::Compare
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsIOService::NewChannelFromURIWithProxyFlags2, nsIOService::NewChannelFromURI2, NS_NewChannelInternal
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at PR_NewCondVar, CondVar, nsEventQueue, nsISupportsPriority
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Initialize, mozilla::dom::workers::serviceWorkerScriptCache::Compare, mozilla::dom::workers::ServiceWorkerRegisterJob::ContinueUpdate, apply
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at WeakPtr, SupportsWeakPtr, MessageListener, IProtocol
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at nsScriptLoader::ConvertToUTF16, mozilla::dom::workers::serviceWorkerScriptCache::, nsStreamLoader::OnStopRequest, nsInputStreamPump::OnStateStop
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at NS_NewLoadGroup, operator->, Initialize, mozilla::dom::workers::serviceWorkerScriptCache::Compare
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsACString_internal::MutatePrep, nsACString_internal::ReplacePrepInternal, nsACString_internal::ReplacePrep
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at MakeUnique, mozilla::dom::cache::CacheStorage::CacheStorage, mozilla::dom::cache::CacheStorage::CreateOnMainThread, CreateCacheStorage
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at RedirectionLimit, mozilla::net::HttpBaseChannel::HttpBaseChannel, mozilla::net::HttpChannelChild::HttpChannelChild, mozilla::net::nsHttpHandler::NewProxiedChannel2
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsACString_internal::MutatePrep, nsACString_internal::SetCapacity, nsACString_internal::SetLength
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::dom::workers::ServiceWorkerManager::SoftUpdate, mozilla::dom::workers::ServiceWorkerManagerChild::RecvNotifySoftUpdate, mozilla::dom::PServiceWorkerManagerChild::OnMessageReceived
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::net::SchedulingContextService::GetSchedulingContext, nsLoadGroup::Init, nsLoadGroupConstructor
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at Alloc, nsAString_internal::MutatePrep, nsAString_internal::ReplacePrepInternal, nsAString_internal::ReplacePrep
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at GetNextID, mozilla::dom::workers::ServiceWorkerInfo::ServiceWorkerInfo, mozilla::dom::workers::ServiceWorkerRegisterJob::ComparisonResult, mozilla::dom::workers::serviceWorkerScriptCache::
 18:55:59  WARNING -  TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at NewPage, nsEventQueue::PutEvent, take, nsThread::PutEvent
looks service worker related.
Flags: needinfo?(ehsan)
Blocks: e10s-tests
tracking-e10s: --- → +
Not sure what information I can provide here.  Clearing needinfo.
Flags: needinfo?(ehsan)
Andrew, do you know what an "indirect leak" is in LSan terminology?
Flags: needinfo?(continuation)
(In reply to :Ehsan Akhgari from comment #6)
> Andrew, do you know what an "indirect leak" is in LSan terminology?

An indirect leak means that according to its conservative analysis, some other leaked block contains a pointer to that leaked block. So in theory if you have a bunch of indirect leaks, and one direct leak, probably the root of the leak is the direct leak. Of course, in the presence of cycles, all bets are off.
Flags: needinfo?(continuation)
(In reply to Andrew McCreight [:mccr8] from comment #7)
> (In reply to :Ehsan Akhgari from comment #6)
> > Andrew, do you know what an "indirect leak" is in LSan terminology?
> 
> An indirect leak means that according to its conservative analysis, some
> other leaked block contains a pointer to that leaked block. So in theory if
> you have a bunch of indirect leaks, and one direct leak, probably the root
> of the leak is the direct leak. Of course, in the presence of cycles, all
> bets are off.

I see.  And the lack of a direct leak suggests a cycle, right?
See Also: → 1230030
(In reply to :Ehsan Akhgari from comment #8)
> I see.  And the lack of a direct leak suggests a cycle, right?

Yes.
I don't think so.  Looking at the error reports it more matches bug 1232558.  Note, we haven't seen this error since I landed bug 1237158 which further suggests the connection.
See Also: 12300301232558
This has not triggered since bug 1237158 landed.  I'm going to close for now.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Blocks: LSan
You need to log in before you can comment on or make changes to this bug.