Skip to content

barrier: Complain loudly if bogus barriers are created

Jonas Ådahl requested to merge jadahl/mutter:wip/bail-on-bogus-barriers into master

The API allows for invalid barriers to be created; in an X11 session, this could result in involutary early exit, so guard against those with soft asserts. These will be logged in the journal as warnings, but will avoid the crash unless compiled out.

Note that this doesn't fix the bug, it just makes it more detectable.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1901610

Merge request reports