<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ivb] meta mutex deadlock"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98532#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ivb] meta mutex deadlock"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98532">bug 98532</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Very, very strange. Something seems to be wrong with how it is linking to
pthreads (or something like that). This "fixes" it:

iff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
index 43e803e..ada1ff4 100644
--- a/include/c11/threads_posix.h
+++ b/include/c11/threads_posix.h
@@ -212,10 +212,14 @@ mtx_init(mtx_t *mtx, int type)
         return thrd_success;
     }

+#if 0
     pthread_mutexattr_init(&attr);
     pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
     pthread_mutex_init(mtx, &attr);
     pthread_mutexattr_destroy(&attr);
+#else
+    *mtx = (pthread_mutex_t)PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+#endif
     return thrd_success;
 }</pre>
        </div>
      </p>


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

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