Summary: | [ivb] meta mutex deadlock | ||
---|---|---|---|
Product: | Mesa | Reporter: | Chris Wilson <chris> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED DUPLICATE | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | kenneth |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Chris Wilson
2016-11-01 16:30:59 UTC
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; } |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.