<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [wayland egl] intel_do_flush_locked failed: invalid argument, crash"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63404">63404</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[wayland egl] intel_do_flush_locked failed: invalid argument, crash
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joe.konno@linux.intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When using the DRI2 EGL Wayland backend, varying circumstances will elicit the
following stderr printf, followed by a mesa crash, resulting in a black, hung
display:

intel_do_flush_locked failed: Invalid argument

It is difficult to consistently reproduce. What initially got me looking was a
usage scenario where multiple instances of a Wayland client ('gears', which
borrows heavily from 'glxgears') were being launched. It's a roll of the dice
which instance brings the issue to the fore.

So far, usage scenarios that cause this issue:

  * launch multiple instances of a GL or EGL client (Weston 'gears' or
'simple-egl') in rapid succession on Weston w/ drm-backend
    - on the order of gears [& gears]+
  * launching the drm-backend of the Weston display manager
  * launching a GLMark2 GL|ES2 benchmark using the es2-wayland backend

This regression seems to have occurred somewhere in Mesa master between commit
'8aa8b05' and '032e554'. This regression is not seen on the 9.0 branch.
Bisecting this is proving tedious, and progress slow.

If anyone would like to help with bisection, by all means.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>