Skip to content

Updating webrender to 46791f3fd9188ab3178ab612de168ec554669be7 causes macOS jemalloc crashes #27472

Closed

Description

@jdm

servo/webrender@46791f3

#27454 shows that CI runs just fine when updating to servo/webrender@1f810c7, and then starting with servo/webrender@46791f3 we see a (relatively) high volume of shutdown crashes that look like:

 ▶ CRASH [expected FAIL] /css/CSS2/tables/fixed-table-layout-003e12.xht
  │ 
  │ _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  │ Shutting down the Constellation after generating an output file or exit flag specified
  │ 12 threads are still running after shutdown (bad).
  │ _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
  │ Shutting down the Constellation after generating an output file or exit flag specified
  │ Stack trace
  │    0: <servo::backtrace::Print as core::fmt::Debug>::fmt
  │    1: core::fmt::write
  │    2: std::io::Write::write_fmt
  │    3: servo::backtrace::print
  │    4: servo::install_crash_handler::handler
  │    5: __sigtramp
  │    6: __os_unfair_lock_unowned_abort
  │    7: __os_unfair_lock_unlock_slow
  │    8: _arena_dalloc_bin_locked_impl
  │    9: __rjem_je_tcache_bin_flush_small
  │   10: _tcache_flush_cache
  │   11: _tcache_destroy
  │   12: __rjem_je_tsd_cleanup
  │   13: _tsd_cleanup_wrapper
  │   14: __pthread_tsd_cleanup
  │   15: __pthread_exit
  │   16: __pthread_body
  └   17: __pthread_start

This is going to prevent us from upgrading webrender until it's solved.

Activity

  1. added
    I-crash
    P-mac
    on Jul 31, 2020
  2. jdm commented on Jul 31, 2020

    @jdm
    MemberAuthor

    I'm going to see if running with ASAN enabled makes any difference (see #27190).

  3. jdm commented on Aug 2, 2020

    @jdm
    MemberAuthor

    This is a different stack trace from the same changeset:

    1 unexpected results that are NOT known-intermittents:
      â–¶ CRASH [expected OK] /html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/open-features-tokenization-top-left.html
      │ 
      │ _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ [2020-08-01T22:38:41Z ERROR servo::browser] Multiple top level browsing contexts not supported yet.
      │ Stack trace for thread "main"
      │    0: backtrace::backtrace::trace_unsynchronized
      │    1: <servo::backtrace::Print as core::fmt::Debug>::fmt
      │    2: core::fmt::write
      │    3: std::io::Write::write_fmt
      │    4: servo::backtrace::print
      │    5: servo::install_crash_handler::handler
      │    6: __sigtramp
      │    7: __os_unfair_lock_unowned_abort
      │    8: __os_unfair_lock_unlock_slow
      │    9: _arena_dalloc_bin_locked_impl
      │   10: __rjem_je_tcache_bin_flush_small
      │   11: __rjem_je_tcache_event_hard
      │   12: __rjem_mallocx
      │   13: alloc::raw_vec::finish_grow
      │   14: alloc::raw_vec::RawVec<T,A>::reserve
      │   15: servo::app::App::winit_event_to_servo_event
      │   16: winit::platform::platform::events_loop::EventsLoop::run_forever::{{closure}}
      │   17: winit::platform::platform::events_loop::UserCallback::call_with_event
      │   18: winit::platform::platform::events_loop::EventsLoop::run_forever
      │   19: servo::app::App::run
      │   20: servo::main
      │   21: std::rt::lang_start::{{closure}}
      │   22: std::panicking::try::do_call
      │   23: ___rust_try
      │   24: std::panicking::try
      │   25: std::rt::lang_start_internal
      â””   26: std::rt::lang_start
    
  4. jdm commented on Aug 2, 2020

    @jdm
    MemberAuthor

    ASAN in #27474 did not appear to expose any new output, sadly.

  5. jdm commented on Aug 4, 2020

    @jdm
    MemberAuthor

    I was able to reproduce the crash in a debug build by closing the window shortly after startup.

  6. atouchet commented on Sep 11, 2023

    @atouchet
    Contributor

    WebRender was updated to servo/webrender@e491e1a in #30323. Is this issue still relevant?

  7. jdm commented on Sep 12, 2023

    @jdm
    MemberAuthor

    Enough things have changed in the meantime that we probably can close this and open new issues uf they appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-webrenderI-crashP-mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions