<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><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#c1">Comment # 1</a>
              on <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">bug 101556</a>
              from <span class="vcard"><a class="email" href="mailto:florianlink@gmail.com" title="Florian Link <florianlink@gmail.com>"> <span class="fn">Florian Link</span></a>
</span></b>
        <pre>I reverted the commit from 

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

and then the crash is gone. The problem seems to be: 

stw_context.c: line 442:
         if (old_ctx->shared) {
            struct pipe_fence_handle *fence = NULL;
            old_ctx->st->flush(old_ctx->st,
                               ST_FLUSH_FRONT | ST_FLUSH_WAIT, &fence);
         }
         else {
            old_ctx->st->flush(old_ctx->st, ST_FLUSH_FRONT, NULL);
         }

if I change that back to just:

            old_ctx->st->flush(old_ctx->st, ST_FLUSH_FRONT, NULL);

then the crash is gone. Since the fence pointer points to NULL and stays NULL,
the old_ctx->st->flush crashes.</pre>
        </div>
      </p>


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

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