Closed Bug 1378025 Opened 7 years ago Closed 6 years ago

Intermittent LeakSanitizer | leak at mozilla::layers::BufferTextureData::CreateInternal, mozilla::layers::BufferTextureData::CreateForYCbCr, mozilla::layers::TextureClient::CreateForYCbCr, mozilla::layers::YCbCrTextureClientAllocationHelper::Allocate

Categories

(Core :: Graphics: Layers, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1458166

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: bulk-close-intermittents, intermittent-failure, Whiteboard: [gfx-noted][stockwell disable-recommended])

Component: Audio/Video → Graphics: Layers
Whiteboard: [gfx-noted]
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
New failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=175365793&repo=mozilla-inbound&lineNumber=3443
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Hello! Since reopening this a a very high failure rate (19 out of 23 jobs). Did some retriggers to find where this restarted failing and found the following;

Range: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-searchStr=asan%20opt-mochitest-media-e10s-1&tochange=b2a75639bd93809b0fb7d1be9393d18e7c85fd92&fromchange=fd0feb0058fc93361dc94df776a9fea43c0aab82&selectedJob=175981977

The push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=0c5a4939300c48255f926c49c56bfb66ed17184a&filter-searchStr=asan%20opt-mochitest-media-e10s-1&selectedJob=175981977

Andrea please take a look at this. Thank you. 

Part of the log:

[task 2018-04-27T16:23:17.378Z] 16:23:17     INFO - TEST-START | dom/media/test/test_video_dimensions.html
[task 2018-04-27T16:23:18.642Z] 16:23:18     INFO - GECKO(1534) | MEMORY STAT | vsize 20973823MB | residentFast 1001MB
[task 2018-04-27T16:23:18.663Z] 16:23:18     INFO - TEST-OK | dom/media/test/test_video_dimensions.html | took 1288ms
[task 2018-04-27T16:23:18.741Z] 16:23:18     INFO - TEST-START | Shutdown
[task 2018-04-27T16:23:18.742Z] 16:23:18     INFO - Passed:  9353
[task 2018-04-27T16:23:18.743Z] 16:23:18     INFO - Failed:  0
[task 2018-04-27T16:23:18.744Z] 16:23:18     INFO - Todo:    46
[task 2018-04-27T16:23:18.745Z] 16:23:18     INFO - Mode:    e10s
[task 2018-04-27T16:23:18.747Z] 16:23:18     INFO - Slowest: 107428ms - /tests/dom/media/test/test_playback.html
[task 2018-04-27T16:23:18.766Z] 16:23:18     INFO - SimpleTest FINISHED
[task 2018-04-27T16:23:18.766Z] 16:23:18     INFO - TEST-INFO | Ran 1 Loops
[task 2018-04-27T16:23:18.767Z] 16:23:18     INFO - SimpleTest FINISHED
[task 2018-04-27T16:23:19.133Z] 16:23:19     INFO - GECKO(1534) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2018-04-27T16:23:19.203Z] 16:23:19     INFO - GECKO(1534) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2018-04-27T16:23:19.608Z] 16:23:19     INFO - GECKO(1534) | 1524846199601	Marionette	DEBUG	Received observer notification xpcom-will-shutdown
[task 2018-04-27T16:23:19.609Z] 16:23:19     INFO - GECKO(1534) | 1524846199602	Marionette	DEBUG	New connections will no longer be accepted
[task 2018-04-27T16:23:20.161Z] 16:23:20     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:20.163Z] 16:23:20     INFO - GECKO(1534) | Suppressions used:
[task 2018-04-27T16:23:20.164Z] 16:23:20     INFO - GECKO(1534) |   count      bytes template
[task 2018-04-27T16:23:20.164Z] 16:23:20     INFO - GECKO(1534) |     650      20736 nsComponentManagerImpl
[task 2018-04-27T16:23:20.166Z] 16:23:20     INFO - GECKO(1534) |       3        624 mozJSComponentLoader::LoadModule
[task 2018-04-27T16:23:20.170Z] 16:23:20     INFO - GECKO(1534) |       2        288 libfontconfig.so
[task 2018-04-27T16:23:20.170Z] 16:23:20     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:20.736Z] 16:23:20     INFO - GECKO(1534) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00F9,name=PContent::Msg_AccumulateChildHistograms) Closed channel: cannot send/recv
[task 2018-04-27T16:23:20.737Z] 16:23:20     INFO - GECKO(1534) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00FA,name=PContent::Msg_AccumulateChildKeyedHistograms) Closed channel: cannot send/recv
[task 2018-04-27T16:23:20.740Z] 16:23:20     INFO - GECKO(1534) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00FE,name=PContent::Msg_RecordDiscardedData) Closed channel: cannot send/recv
[task 2018-04-27T16:23:20.762Z] 16:23:20     INFO - GECKO(1534) | Crash Annotation GraphicsCriticalError: |[C0][GFX1]: Texture deallocated too late during shutdown (t=808.464)
[task 2018-04-27T16:23:20.763Z] 16:23:20     INFO - GECKO(1534) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00CD,name=PContent::Msg_GraphicsError) Closed channel: cannot send/recv
[task 2018-04-27T16:23:20.763Z] 16:23:20     INFO - GECKO(1534) | [GFX1]: Texture deallocated too late during shutdown
[task 2018-04-27T16:23:20.766Z] 16:23:20     INFO - GECKO(1534) | Crash Annotation GraphicsCriticalError: |[C0][GFX1]: Texture deallocated too late during shutdown (t=808.464) |[C1][GFX1]: Texture deallocated too late during shutdown (t=808.469)
[task 2018-04-27T16:23:20.768Z] 16:23:20     INFO - GECKO(1534) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00CD,name=PContent::Msg_GraphicsError) Closed channel: cannot send/recv
[task 2018-04-27T16:23:20.769Z] 16:23:20     INFO - GECKO(1534) | [GFX1]: Texture deallocated too late during shutdown
[task 2018-04-27T16:23:22.526Z] 16:23:22     INFO - GECKO(1534) | =================================================================
[task 2018-04-27T16:23:22.526Z] 16:23:22    ERROR - GECKO(1534) | ==1584==ERROR: LeakSanitizer: detected memory leaks
[task 2018-04-27T16:23:22.526Z] 16:23:22     INFO - GECKO(1534) | Direct leak of 240 byte(s) in 2 object(s) allocated from:
[task 2018-04-27T16:23:22.527Z] 16:23:22     INFO - GECKO(1534) |     #0 0x4c1c93 in malloc /builds/worker/workspace/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88:3
[task 2018-04-27T16:23:22.527Z] 16:23:22     INFO - GECKO(1534) |     #1 0x4f26fd in moz_xmalloc /builds/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:70:17
[task 2018-04-27T16:23:22.527Z] 16:23:22     INFO - GECKO(1534) |     #2 0x7f2ae5dfe147 in operator new /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:156:12
[task 2018-04-27T16:23:22.530Z] 16:23:22     INFO - GECKO(1534) |     #3 0x7f2ae5dfe147 in mozilla::layers::BufferTextureData::CreateInternal(mozilla::layers::LayersIPCChannel*, mozilla::layers::BufferDescriptor const&, mozilla::gfx::BackendType, int, mozilla::layers::TextureFlags) /builds/worker/workspace/build/src/gfx/layers/BufferTexture.cpp:155
[task 2018-04-27T16:23:22.533Z] 16:23:22     INFO - GECKO(1534) |     #4 0x7f2ae5dfeb7a in mozilla::layers::BufferTextureData::CreateForYCbCr(mozilla::layers::KnowsCompositor*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, unsigned int, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, unsigned int, mozilla::StereoMode, mozilla::YUVColorSpace, unsigned int, mozilla::layers::TextureFlags) /builds/worker/workspace/build/src/gfx/layers/BufferTexture.cpp:224:10
[task 2018-04-27T16:23:22.536Z] 16:23:22     INFO - GECKO(1534) |     #5 0x7f2ae6145dcc in mozilla::layers::TextureClient::CreateForYCbCr(mozilla::layers::KnowsCompositor*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, unsigned int, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits>, unsigned int, mozilla::StereoMode, mozilla::YUVColorSpace, unsigned int, mozilla::layers::TextureFlags) /builds/worker/workspace/build/src/gfx/layers/client/TextureClient.cpp:1306:5
[task 2018-04-27T16:23:22.536Z] 16:23:22     INFO - GECKO(1534) |     #6 0x7f2ae614e433 in mozilla::layers::YCbCrTextureClientAllocationHelper::Allocate(mozilla::layers::KnowsCompositor*) /builds/worker/workspace/build/src/gfx/layers/client/TextureClientRecycleAllocator.cpp:124:10
[task 2018-04-27T16:23:22.538Z] 16:23:22     INFO - GECKO(1534) |     #7 0x7f2ae614fecf in mozilla::layers::TextureClientRecycleAllocator::CreateOrRecycle(mozilla::layers::ITextureClientAllocationHelper&) /builds/worker/workspace/build/src/gfx/layers/client/TextureClientRecycleAllocator.cpp:205:45
[task 2018-04-27T16:23:22.538Z] 16:23:22     INFO - GECKO(1534) |     #8 0x7f2ae629ac72 in mozilla::layers::SharedPlanarYCbCrImage::Allocate(mozilla::layers::PlanarYCbCrData&) /builds/worker/workspace/build/src/gfx/layers/ipc/SharedPlanarYCbCrImage.cpp:157:65
[task 2018-04-27T16:23:22.543Z] 16:23:22     INFO - GECKO(1534) |     #9 0x7f2ae629a9ad in mozilla::layers::SharedPlanarYCbCrImage::CopyData(mozilla::layers::PlanarYCbCrData const&) /builds/worker/workspace/build/src/gfx/layers/ipc/SharedPlanarYCbCrImage.cpp:83:27
[task 2018-04-27T16:23:22.543Z] 16:23:22     INFO - GECKO(1534) |     #10 0x7f2ae9c975e6 in mozilla::VideoData::SetVideoDataToImage(mozilla::layers::PlanarYCbCrImage*, mozilla::VideoInfo const&, mozilla::VideoData::YCbCrBuffer const&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, bool) /builds/worker/workspace/build/src/dom/media/MediaData.cpp
[task 2018-04-27T16:23:22.544Z] 16:23:22     INFO - GECKO(1534) |     #11 0x7f2ae9c97e8e in mozilla::VideoData::CreateAndCopyData(mozilla::VideoInfo const&, mozilla::layers::ImageContainer*, long, mozilla::media::TimeUnit const&, mozilla::media::TimeUnit const&, mozilla::VideoData::YCbCrBuffer const&, bool, mozilla::media::TimeUnit const&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::layers::KnowsCompositor*) /builds/worker/workspace/build/src/dom/media/MediaData.cpp:351:8
[task 2018-04-27T16:23:22.549Z] 16:23:22     INFO - GECKO(1534) |     #12 0x7f2aea356cb8 in mozilla::FFmpegVideoDecoder<55>::DoDecode(mozilla::MediaRawData*, unsigned char*, int, bool*, nsTArray<RefPtr<mozilla::MediaData> >&) /builds/worker/workspace/build/src/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp:337:5
[task 2018-04-27T16:23:22.551Z] 16:23:22     INFO - GECKO(1534) |     #13 0x7f2aea351f59 in mozilla::FFmpegDataDecoder<55>::DoDecode(mozilla::MediaRawData*, bool*, nsTArray<RefPtr<mozilla::MediaData> >&) /builds/worker/workspace/build/src/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp:178:10
[task 2018-04-27T16:23:22.552Z] 16:23:22     INFO - GECKO(1534) |     #14 0x7f2aea351704 in mozilla::FFmpegDataDecoder<55>::ProcessDecode(mozilla::MediaRawData*) /builds/worker/workspace/build/src/dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp:133:20
[task 2018-04-27T16:23:22.553Z] 16:23:22     INFO - GECKO(1534) |     #15 0x7f2aea3597d1 in applyImpl<mozilla::FFmpegDataDecoder<LIBAV_VER>, RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true> > (mozilla::FFmpegDataDecoder<LIBAV_VER>::*)(mozilla::MediaRawData *), StoreRefPtrPassByPtr<mozilla::MediaRawData> , 0> /builds/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:1165:12
[task 2018-04-27T16:23:22.555Z] 16:23:22     INFO - GECKO(1534) |     #16 0x7f2aea3597d1 in apply<mozilla::FFmpegDataDecoder<LIBAV_VER>, RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true> > (mozilla::FFmpegDataDecoder<LIBAV_VER>::*)(mozilla::MediaRawData *)> /builds/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:1171
[task 2018-04-27T16:23:22.556Z] 16:23:22     INFO - GECKO(1534) |     #17 0x7f2aea3597d1 in Invoke /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/MozPromise.h:1367
[task 2018-04-27T16:23:22.562Z] 16:23:22     INFO - GECKO(1534) |     #18 0x7f2aea3597d1 in mozilla::detail::ProxyRunnable<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true>, RefPtr<mozilla::MozPromise<nsTArray<RefPtr<mozilla::MediaData> >, mozilla::MediaResult, true> > (mozilla::FFmpegDataDecoder<55>::*)(mozilla::MediaRawData*), mozilla::FFmpegDataDecoder<55>, mozilla::MediaRawData*>::Run() /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/MozPromise.h:1392
[task 2018-04-27T16:23:22.562Z] 16:23:22     INFO - GECKO(1534) |     #19 0x7f2ae3a16b6e in mozilla::TaskQueue::Runner::Run() /builds/worker/workspace/build/src/xpcom/threads/TaskQueue.cpp:243:12
[task 2018-04-27T16:23:22.563Z] 16:23:22     INFO - GECKO(1534) |     #20 0x7f2ae3a46047 in nsThreadPool::Run() /builds/worker/workspace/build/src/xpcom/threads/nsThreadPool.cpp:229:14
[task 2018-04-27T16:23:22.564Z] 16:23:22     INFO - GECKO(1534) |     #21 0x7f2ae3a467bc in non-virtual thunk to nsThreadPool::Run() /builds/worker/workspace/build/src/xpcom/threads/nsThreadPool.cpp
[task 2018-04-27T16:23:22.564Z] 16:23:22     INFO - GECKO(1534) |     #22 0x7f2ae3a2f979 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/workspace/build/src/xpcom/threads/nsThread.cpp:1096:14
[task 2018-04-27T16:23:22.564Z] 16:23:22     INFO - GECKO(1534) |     #23 0x7f2ae3a4b3b0 in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/workspace/build/src/xpcom/threads/nsThreadUtils.cpp:519:10
[task 2018-04-27T16:23:22.572Z] 16:23:22     INFO - GECKO(1534) |     #24 0x7f2ae4925c5b in mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/workspace/build/src/ipc/glue/MessagePump.cpp:334:20
[task 2018-04-27T16:23:22.572Z] 16:23:22     INFO - GECKO(1534) |     #25 0x7f2ae4879619 in RunInternal /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:326:10
[task 2018-04-27T16:23:22.574Z] 16:23:22     INFO - GECKO(1534) |     #26 0x7f2ae4879619 in RunHandler /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:319
[task 2018-04-27T16:23:22.574Z] 16:23:22     INFO - GECKO(1534) |     #27 0x7f2ae4879619 in MessageLoop::Run() /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:299
[task 2018-04-27T16:23:22.576Z] 16:23:22     INFO - GECKO(1534) |     #28 0x7f2ae3a2a1a8 in nsThread::ThreadFunc(void*) /builds/worker/workspace/build/src/xpcom/threads/nsThread.cpp:425:11
[task 2018-04-27T16:23:22.576Z] 16:23:22     INFO - GECKO(1534) |     #29 0x7f2b00bd647e in _pt_root /builds/worker/workspace/build/src/nsprpub/pr/src/pthreads/ptthread.c:201:5
[task 2018-04-27T16:23:22.580Z] 16:23:22     INFO - GECKO(1534) |     #30 0x7f2b04f756b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
[task 2018-04-27T16:23:22.581Z] 16:23:22     INFO - GECKO(1534) | Indirect leak of 128 byte(s) in 2 object(s) allocated from:
[task 2018-04-27T16:23:22.581Z] 16:23:22     INFO - GECKO(1534) |     #0 0x4c1c93 in malloc /builds/worker/workspace/moz-toolchain/src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88:3
[task 2018-04-27T16:23:22.581Z] 16:23:22     INFO - GECKO(1534) |     #1 0x4f26fd in moz_xmalloc /builds/worker/workspace/build/src/memory/mozalloc/mozalloc.cpp:70:17
[task 2018-04-27T16:23:22.582Z] 16:23:22     INFO - GECKO(1534) |     #2 0x7f2ae492c426 in operator new /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/mozalloc.h:156:12
[task 2018-04-27T16:23:22.582Z] 16:23:22     INFO - GECKO(1534) |     #3 0x7f2ae492c426 in NewSegment /builds/worker/workspace/build/src/ipc/glue/Shmem.cpp:74
[task 2018-04-27T16:23:22.582Z] 16:23:22     INFO - GECKO(1534) |     #4 0x7f2ae492c426 in CreateSegment /builds/worker/workspace/build/src/ipc/glue/Shmem.cpp:84
[task 2018-04-27T16:23:22.584Z] 16:23:22     INFO - GECKO(1534) |     #5 0x7f2ae492c426 in mozilla::ipc::Shmem::Alloc(mozilla::ipc::Shmem::PrivateIPDLCaller, unsigned long, mozilla::ipc::SharedMemory::SharedMemoryType, bool, bool) /builds/worker/workspace/build/src/ipc/glue/Shmem.cpp:431
[task 2018-04-27T16:23:22.584Z] 16:23:22     INFO - GECKO(1534) |     #6 0x7f2ae492bba2 in mozilla::ipc::IToplevelProtocol::ToplevelState::CreateSharedMemory(unsigned long, mozilla::ipc::SharedMemory::SharedMemoryType, bool, int*) /builds/worker/workspace/build/src/ipc/glue/ProtocolUtils.cpp:806:5
[task 2018-04-27T16:23:22.586Z] 16:23:22     INFO - GECKO(1534) |     #7 0x7f2ae4928a67 in CreateSharedMemory /builds/worker/workspace/build/src/ipc/glue/ProtocolUtils.h:265:24
[task 2018-04-27T16:23:22.587Z] 16:23:22     INFO - GECKO(1534) |     #8 0x7f2ae4928a67 in mozilla::ipc::IProtocol::AllocUnsafeShmem(unsigned long, mozilla::ipc::SharedMemory::SharedMemoryType, mozilla::ipc::Shmem*) /builds/worker/workspace/build/src/ipc/glue/ProtocolUtils.cpp:506
[task 2018-04-27T16:23:22.589Z] 16:23:22     INFO - GECKO(1534) |     #9 0x7f2ae625a8f7 in AllocUnsafeShmem /builds/worker/workspace/build/src/gfx/layers/ipc/ImageBridgeChild.cpp:823:29
[task 2018-04-27T16:23:22.590Z] 16:23:22     INFO - GECKO(1534) |     #10 0x7f2ae625a8f7 in mozilla::layers::ImageBridgeChild::ProxyAllocShmemNow(mozilla::layers::SynchronousTask*, mozilla::layers::AllocShmemParams*) /builds/worker/workspace/build/src/gfx/layers/ipc/ImageBridgeChild.cpp:862
[task 2018-04-27T16:23:22.591Z] 16:23:22     INFO - GECKO(1534) |     #11 0x7f2ae6281179 in apply<RefPtr<mozilla::layers::ImageBridgeChild>, void (mozilla::layers::ImageBridgeChild::*)(mozilla::layers::SynchronousTask *, mozilla::layers::AllocShmemParams *), mozilla::layers::SynchronousTask *, mozilla::layers::AllocShmemParams *, 0, 1> /builds/worker/workspace/build/src/obj-firefox/dist/include/mtransport/runnable_utils.h:86:5
[task 2018-04-27T16:23:22.592Z] 16:23:22     INFO - GECKO(1534) |     #12 0x7f2ae6281179 in mozilla::runnable_args_memfn<RefPtr<mozilla::layers::ImageBridgeChild>, void (mozilla::layers::ImageBridgeChild::*)(mozilla::layers::SynchronousTask*, mozilla::layers::AllocShmemParams*), mozilla::layers::SynchronousTask*, mozilla::layers::AllocShmemParams*>::Run() /builds/worker/workspace/build/src/obj-firefox/dist/include/mtransport/runnable_utils.h:156
[task 2018-04-27T16:23:22.596Z] 16:23:22     INFO - GECKO(1534) |     #13 0x7f2ae487c003 in RunTask /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:452:9
[task 2018-04-27T16:23:22.596Z] 16:23:22     INFO - GECKO(1534) |     #14 0x7f2ae487c003 in DeferOrRunPendingTask /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:460
[task 2018-04-27T16:23:22.596Z] 16:23:22     INFO - GECKO(1534) |     #15 0x7f2ae487c003 in MessageLoop::DoWork() /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:535
[task 2018-04-27T16:23:22.596Z] 16:23:22     INFO - GECKO(1534) |     #16 0x7f2ae487dfb8 in base::MessagePumpDefault::Run(base::MessagePump::Delegate*) /builds/worker/workspace/build/src/ipc/chromium/src/base/message_pump_default.cc:36:31
[task 2018-04-27T16:23:22.597Z] 16:23:22     INFO - GECKO(1534) |     #17 0x7f2ae4879619 in RunInternal /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:326:10
[task 2018-04-27T16:23:22.599Z] 16:23:22     INFO - GECKO(1534) |     #18 0x7f2ae4879619 in RunHandler /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:319
[task 2018-04-27T16:23:22.599Z] 16:23:22     INFO - GECKO(1534) |     #19 0x7f2ae4879619 in MessageLoop::Run() /builds/worker/workspace/build/src/ipc/chromium/src/base/message_loop.cc:299
[task 2018-04-27T16:23:22.603Z] 16:23:22     INFO - GECKO(1534) |     #20 0x7f2ae48973af in base::Thread::ThreadMain() /builds/worker/workspace/build/src/ipc/chromium/src/base/thread.cc:181:16
[task 2018-04-27T16:23:22.604Z] 16:23:22     INFO - GECKO(1534) |     #21 0x7f2ae488a08c in ThreadFunc(void*) /builds/worker/workspace/build/src/ipc/chromium/src/base/platform_thread_posix.cc:38:13
[task 2018-04-27T16:23:22.606Z] 16:23:22     INFO - GECKO(1534) |     #22 0x7f2b04f756b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
[task 2018-04-27T16:23:22.609Z] 16:23:22     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:22.610Z] 16:23:22     INFO - GECKO(1534) | Suppressions used:
[task 2018-04-27T16:23:22.611Z] 16:23:22     INFO - GECKO(1534) |   count      bytes template
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) |     650      20736 nsComponentManagerImpl
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) |       8       1664 mozJSComponentLoader::LoadModule
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) |     611      17713 libfontconfig.so
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) |       1         29 libglib-2.0.so
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:22.615Z] 16:23:22     INFO - GECKO(1534) | SUMMARY: AddressSanitizer: 368 byte(s) leaked in 4 allocation(s).
[task 2018-04-27T16:23:23.888Z] 16:23:23     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:23.888Z] 16:23:23     INFO - GECKO(1534) | Suppressions used:
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |   count      bytes template
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |     663      21136 nsComponentManagerImpl
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |      44       9152 mozJSComponentLoader::LoadModule
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |     611      17509 libfontconfig.so
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |       4        176 _PR_Getfd
[task 2018-04-27T16:23:23.890Z] 16:23:23     INFO - GECKO(1534) |       1         29 libglib-2.0.so
[task 2018-04-27T16:23:23.891Z] 16:23:23     INFO - GECKO(1534) | -----------------------------------------------------
[task 2018-04-27T16:23:24.102Z] 16:23:24     INFO - TEST-INFO | Main app process: exit 0
[task 2018-04-27T16:23:24.104Z] 16:23:24     INFO - TEST-INFO | LeakSanitizer | To show the addresses of leaked objects add report_objects=1 to LSAN_OPTIONS
[task 2018-04-27T16:23:24.106Z] 16:23:24     INFO - TEST-INFO | LeakSanitizer | This can be done in testing/mozbase/mozrunner/mozrunner/utils.py
[task 2018-04-27T16:23:24.107Z] 16:23:24    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at NewSegment, CreateSegment, mozilla::ipc::Shmem::Alloc, mozilla::ipc::IToplevelProtocol::ToplevelState::CreateSharedMemory
[task 2018-04-27T16:23:24.108Z] 16:23:24    ERROR - TEST-UNEXPECTED-FAIL | LeakSanitizer | leak at mozilla::layers::BufferTextureData::CreateInternal, mozilla::layers::BufferTextureData::CreateForYCbCr, mozilla::layers::TextureClient::CreateForYCbCr, mozilla::layers::YCbCrTextureClientAllocationHelper::Allocate
[task 2018-04-27T16:23:24.112Z] 16:23:24     INFO - runtests.py | Application ran for: 0:13:35.452576
[task 2018-04-27T16:23:24.113Z] 16:23:24     INFO - zombiecheck | Reading PID log: /tmp/tmpe5BK0Vpidlog
[task 2018-04-27T16:23:24.113Z] 16:23:24     INFO - ==> process 1534 launched child process 1555
[task 2018-04-27T16:23:24.114Z] 16:23:24     INFO - ==> process 1534 launched child process 1584
[task 2018-04-27T16:23:24.115Z] 16:23:24     INFO - ==> process 1534 launched child process 1634
[task 2018-04-27T16:23:24.116Z] 16:23:24     INFO - zombiecheck | Checking for orphan process with PID: 1584
[task 2018-04-27T16:23:24.117Z] 16:23:24     INFO - zombiecheck | Checking for orphan process with PID: 1634
[task 2018-04-27T16:23:24.118Z] 16:23:24     INFO - zombiecheck | Checking for orphan process with PID: 1555
[task 2018-04-27T16:23:24.119Z] 16:23:24     INFO - runtests.py | Running with e10s: True
[task 2018-04-27T16:23:24.120Z] 16:23:24     INFO - runtests.py | Running tests: start.
[task 2018-04-27T16:23:24.120Z] 16:23:24     INFO - 
[task 2018-04-27T16:23:24.137Z] 16:23:24     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox -marionette -foreground -profile /tmp/tmp2tDzfO.mozrunner
[task 2018-04-27T16:23:24.154Z] 16:23:24     INFO - runtests.py | Application pid: 4293
Flags: needinfo?(amarchesini)
:aryx, do you think we should back out bug 1454889 as it appears to be the root cause for the spike in failures?
Flags: needinfo?(aryx.bugmail)
In the last 7 days, there are 137 failures.
They occur on Linux x64 asan.
Recent failure log: https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-central&job_id=177160086&lineNumber=3448
[task 2018-05-06T09:55:07.109Z] 09:55:07     INFO - GECKO(1572) | ###!!! [Child][MessageChannel] Error: (msgtype=0x2D00CD,name=PContent::Msg_GraphicsError) Closed channel: cannot send/recv
[task 2018-05-06T09:55:07.109Z] 09:55:07     INFO - GECKO(1572) | [GFX1]: Texture deallocated too late during shutdown
[task 2018-05-06T09:55:08.942Z] 09:55:08     INFO - GECKO(1572) | =================================================================
[task 2018-05-06T09:55:08.944Z] 09:55:08    ERROR - GECKO(1572) | ==1627==ERROR: LeakSanitizer: detected memory leaks
Moving the NI to Randell. Could it be that we don't trace/unlink the stream correctly in media objects?
Flags: needinfo?(amarchesini) → needinfo?(rjesup)
FYI.  Something regressed around 2 weeks ago it appears (bug 1454889 perhaps triggered this, but is there an underlying bug that landing that exposed, perhaps?)
Flags: needinfo?(rjesup)
Flags: needinfo?(jyavenard)
Flags: needinfo?(apehrson)
The errors and backtrace given in comment 14 indicates that this is a playback mochitest, no streams are involved and as such any links to bug 1454889 would be a coincidence.
Flags: needinfo?(jyavenard)
(In reply to Jean-Yves Avenard [:jya] from comment #26)
> The errors and backtrace given in comment 14 indicates that this is a
> playback mochitest, no streams are involved and as such any links to bug
> 1454889 would be a coincidence.

Not true. dom/media/test/test_video_dimensions.html uses both URL.createObjectURL() with a MediaStream, and HTMLMediaElement.mozCaptureStreamUntilEnded() which returns a MediaStream [1].

The same is true for dom/media/test/test_streams_individual_pause.html which was also modified by bug 1454889 [2].

This could perhaps be related to bug 1458166. If so it has been fixed -- it could be worth putting bug 1454889 back on try to see. Could you do this Andrea?

[1] https://searchfox.org/mozilla-central/rev/3f17a234769d25fca5144ebb8abc8e1cb3c56c16/dom/media/test/test_video_dimensions.html#57
[2] https://hg.mozilla.org/mozilla-central/rev/0c5a4939300c
Flags: needinfo?(apehrson) → needinfo?(amarchesini)
Comment 14 mentions "Texture deallocated too late during shutdown" two times too, but they appear to not be fatal here. I assume an opt build. This speaks in favor of bug 1458166 being behind this leak. If we can confirm we can dup this one.
> This could perhaps be related to bug 1458166. If so it has been fixed -- it
> could be worth putting bug 1454889 back on try to see. Could you do this
> Andrea?

Done: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b568e34493797742ad83deea0a439cdda9dbf4ce
Let's see how it goes.
Flags: needinfo?(amarchesini) → needinfo?(apehrson)
LGTM. I retriggered a bunch of linux x64 ASAN opt mda-1 and this leak doesn't show up there at all.
Blocks: 1454889
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Flags: needinfo?(aryx.bugmail)
Flags: needinfo?(apehrson)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.