New issue
Advanced search Search tips

Issue 826016 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 822231
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Crash in MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab

Project Member Reported by jyasskin@chromium.org, Mar 26 2018

Issue description

This is different from the crash in https://chromium-swarm.appspot.com/task?id=3c7be7b364773410&refresh=10&show_raw=1, but uses the same test flags.

As of f299db8a1,

$ cat out/asan/args.gn 
is_component_build = true
is_asan = true
is_lsan = true
is_debug = false
enable_nacl = false
use_goma = true

$ ninja -C out/asan/ browser_tests
$ ASAN_OPTIONS="detect_odr_violation=0
detect_leaks=1 symbolize=1 external_symbolizer_path=$PWD/third_party/llvm-build/Release+Asserts/bin/llvm-symbolizer" out/asan/browser_tests --brave-new-test-launcher --test-launcher-retry-limit=0 --test-launcher-bot-mode --enable-features=Mus  --gtest_filter=MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab |tools/valgrind/asan/asan_symbolize.py

Gives:

...

[116496:116496:0326/141754.302680:ERROR:gl_surface_egl.cc(895)] Error trying to initialize the native window.                                                                                                      
[116496:116496:0326/141754.302798:ERROR:gles2_command_buffer_stub.cc(226)] ContextResult::kFatalFailure: Failed to create surface.
[116496:116496:0326/141754.303418:WARNING:x11_util.cc(1362)] X error received: serial 156, error_code 3 (BadWindow), request_code 3, minor_code 0 (Unknown)
[116405:116405:0326/141754.351548:ERROR:gpu_process_transport_factory.cc(1011)] Lost UI shared context.
[116405:116405:0326/141754.351924:ERROR:software_output_device_x11.cc(25)] XGetWindowAttributes failed for window 1
[116405:116450:0326/141754.374903:ERROR:instance.cc(49)] Unable to locate service manifest for ui
[116405:116450:0326/141754.374999:ERROR:service_manager.cc(930)] Failed to resolve service name: ui
[116405:116405:0326/141754.387650:WARNING:x11_util.cc(1362)] X error received: serial 184, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[116405:116405:0326/141754.387793:WARNING:x11_util.cc(1362)] X error received: serial 185, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
BrowserTestBase received signal: Segmentation fault. Backtrace:
    #0 0x00000297cbc1 in __interceptor_backtrace /b/build/slave/linux_upload_clang/build/src/third_party/llvm/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:3980:13
    #1 0x7feaceaae24c in base::debug::StackTrace::StackTrace(unsigned long) ../../base/debug/stack_trace_posix.cc:808:41
    #2 0x000008d00186 in content::(anonymous namespace)::DumpStackTraceSignalHandler(int) ../../content/public/test/browser_test_base.cc:86:5
    #3 0x7feaa8fe8030 in killpg ??:?
    #4 0x7feaa8fe8030 in ?? ??:0
    #5 0x7feaaa2ebb12 in XRenderCreatePicture ??:0:0                                                     
    #6 0x7feaae97a6a3 in viz::SoftwareOutputDeviceX11::EndPaint() ../../components/viz/service/display_embedder/software_output_device_x11.cc:86:9
    #7 0x7feaae859768 in viz::SoftwareRenderer::FinishDrawingFrame() ../../components/viz/service/display/software_renderer.cc:66:19
    #8 0x7feaae7aa2c9 in viz::DirectRenderer::DrawFrame(std::__1::vector<std::__1::unique_ptr<viz::RenderPass, std::__1::default_delete<viz::RenderPass> >, std::__1::allocator<std::__1::unique_ptr<viz::RenderPass, std::__1::default_delete<viz::RenderPass> > > >*, float, gfx::Size const&) ../../components/viz/service/display/direct_renderer.cc:334:3
    #9 0x7feaae7bb1ba in viz::Display::DrawAndSwap() ../../components/viz/service/display/display.cc:356:16
    #10 0x7feaae7ca96c in viz::DisplayScheduler::DrawAndSwap() ../../components/viz/service/display/display_scheduler.cc:213:27
    #11 0x7feaae7c6aab in viz::DisplayScheduler::OnBeginFrameDeadline() ../../components/viz/service/display/display_scheduler.cc:503:19
    #12 0x7feaceab0471 in Run ../../base/callback.h:95:12


Removing --enable-features=Mus makes the crash go away.
 
This also crashes, in a third way, when run with an empty args.gn and:

out/dbg/browser_tests --brave-new-test-launcher --test-launcher-retry-limit=0 --test-launcher-bot-mode --enable-features=Mus  --gtest_filter=MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab:

[189102:189102:0326/161324.699563:FATAL:discardable_memory_allocator.cc(19)] Check failed: !allocator || !g_discardable_allocator. 
#0 0x7fdbee31c4ad base::debug::StackTrace::StackTrace()
#1 0x7fdbee31aa6c base::debug::StackTrace::StackTrace()
#2 0x7fdbee3a129a logging::LogMessage::~LogMessage()
#3 0x7fdbee3a6236 base::DiscardableMemoryAllocator::SetInstance()
#4 0x7fdbe17767a4 aura::WindowTreeClient::WindowTreeClient()
#5 0x7fdbe1770d1b aura::WindowTreeClient::CreateForWindowTreeFactory()
#6 0x7fdbdcf86184 views::MusClient::MusClient()
#7 0x00000a1ab985 ChromeBrowserMainExtraPartsViews::ServiceManagerConnectionStarted()
#8 0x000005cdd330 ChromeBrowserMainParts::ServiceManagerConnectionStarted()
#9 0x7fdbe61cf0e6 content::BrowserMainLoop::InitializeMojo()
#10 0x7fdbe61c8b31 content::BrowserMainLoop::BrowserThreadsStarted()
#11 0x7fdbe502dafd _ZN4base8internal13FunctorTraitsIMN7content12ChildProcessEFvvEvE6InvokeIPS3_JEEEvS5_OT_DpOT0_
#12 0x7fdbe502da74 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIMN7content12ChildProcessEFvvEJPS5_EEEvOT_DpOT0_
#13 0x7fdbe502da25 _ZN4base8internal7InvokerINS0_9BindStateIMN7content12ChildProcessEFvvEJNS0_17UnretainedWrapperIS4_EEEEEFvvEE7RunImplIS6_NSt3__15tupleIJS8_EEEJLm0EEEEvOT_OT0_NSD_16integer_sequenceImJXspT1_EEEE
#14 0x7fdbe50308cc _ZN4base8internal7InvokerINS0_9BindStateIMN7content14ServiceFactoryEFvvEJNS0_17UnretainedWrapperIS4_EEEEEFvvEE3RunEPNS0_13BindStateBaseE
#15 0x7fdbe4f4154d _ZNKR4base17RepeatingCallbackIFvvEE3RunEv
#16 0x7fdbe6ea8d4d content::StartupTaskRunner::RunAllTasksNow()

Labels: Sheriff-Chromium

Comment 3 by w...@chromium.org, Apr 2 2018

Filed  issue 828039  for the try-bot check flake in this test.

Comment 4 by w...@chromium.org, Apr 2 2018

Labels: -Pri-3 M-67 Pri-1

Comment 5 by shend@chromium.org, Apr 5 2018

Cc: -zhaobin@chromium.org
Owner: zhaobin@chromium.org
Status: Assigned (was: Untriaged)
This is causing flaky build failures on Mac: https://ci.chromium.org/buildbot/chromium.memory/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/26889

Assigning to zhaobin@, PTAL thanks!
Components: Internals>MUS Internals>Services>Viz
Owner: m...@chromium.org
zhaobin@ is no longer on the team.
miu@, this seems Viz/Mus related, would you mind taking a look or assigning to the right person?
Components: Internals>Cast
Project Member

Comment 8 by bugdroid1@chromium.org, Apr 6 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/05f707aed96cc1e321f50bceb79123074586600b

commit 05f707aed96cc1e321f50bceb79123074586600b
Author: Stephen McGruer <smcgruer@chromium.org>
Date: Fri Apr 06 16:26:33 2018

Disable flaky MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab

This test is crashing consistently on Linux ASAN bots.

https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab

https://test-results.appspot.com/dashboards/flakiness_dashboard.html#testType=mus_browser_tests&tests=MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab

Following example in crrev.com/7bd70e542e44ee67671cb5a64d6751ed1ed7ed03
this change prefixes the test with "MANUAL_", not "DISABLED_".

Bug:  826016 
Change-Id: I931cfcb34063ab11199782b9432120a7638e7d96

TBR=amp

Change-Id: I931cfcb34063ab11199782b9432120a7638e7d96
Reviewed-on: https://chromium-review.googlesource.com/998660
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548800}
[modify] https://crrev.com/05f707aed96cc1e321f50bceb79123074586600b/chrome/test/media_router/media_router_one_ua_integration_browsertest.cc

Labels: -Sheriff-Chromium
Project Member

Comment 10 by bugdroid1@chromium.org, Apr 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0e98cd744c61c76de1914fc85171ae51b0bfba2f

commit 0e98cd744c61c76de1914fc85171ae51b0bfba2f
Author: Morten Stenshorne <mstensho@chromium.org>
Date: Thu Apr 19 12:18:03 2018

Disable flaky MediaRouterIntegrationOneUANoReceiverBrowserTest.ReconnectSessionSameTab

Prefixing it with MANUAL_ instead of DISABLED_, since that seems to be
what everyone else is doing here.

TBR=zhaobin@chromium.org

Bug:  834681 ,  826016 
Change-Id: I0dcf73c92a277863d7c9f94101ac7334e5dd4de3
Reviewed-on: https://chromium-review.googlesource.com/1019142
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551988}
[modify] https://crrev.com/0e98cd744c61c76de1914fc85171ae51b0bfba2f/chrome/test/media_router/media_router_one_ua_integration_browsertest.cc

Mergedinto: 822231
Status: Duplicate (was: Assigned)

Sign in to add a comment