[Bug 98532] [ivb] meta mutex deadlock
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 2 11:01:29 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=98532
--- Comment #1 from Chris Wilson <chris at chris-wilson.co.uk> ---
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;
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20161102/568b10bb/attachment-0001.html>
More information about the intel-3d-bugs
mailing list