<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [llvmpipe] crashes when GL context is created and a previous context was shared"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101556">101556</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvmpipe] crashes when GL context is created and a previous context was shared
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>17.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>florianlink@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=132131" name="attach_132131" title="Screenshot of the crash, fence pointer is NULL.">attachment 132131</a> <a href="attachment.cgi?id=132131&action=edit" title="Screenshot of the crash, fence pointer is NULL.">[details]</a></span>
Screenshot of the crash, fence pointer is NULL.

I built the current 17.1.3 release on Windows Visual Studio 2015 with LLVM 3.9
(and 4.0 as well).

When I start my Qt application, which creates some GL contexts, I get the crash
that you can see in the attached images, when one of the contexts is created.

I tracked the crash down to the following commit (4 month ago):

<a href="https://github.com/mesa3d/mesa/commit/043883647acaee0b2c67c1c6b496404ebb4e8d67">https://github.com/mesa3d/mesa/commit/043883647acaee0b2c67c1c6b496404ebb4e8d67</a>

As you can see in my screenshot, the fence pointer is NULL and it is not
checked before calling a function that needs a valid fence pointer.

It seems to happen when wglMakeCurrent(NULL,NULL) is called by Qt and the
context that was active before is a shared context, so the bad fence call
happens.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>