[Mesa-dev] [Bug 94088] [llvmpipe] SIGFPE pthread_barrier_destroy.c:40

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 22 04:39:07 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94088

Steve Langasek <steve.langasek at canonical.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Steve Langasek <steve.langasek at canonical.com> ---
Hello,

The patch for this bug is incomplete.  In between the calls to
pipe_barrier_init() and pipe_barrier_destroy() are calls to
pipe_barrier_wait(), which is implemented on top of pthread_barrier_wait().

Since pipe_barrier_init() has not been called, the calls to
pthread_barrier_wait() have undefined behavior, as per
<http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_barrier_wait.html>,
<http://linux.die.net/man/3/pthread_barrier_wait>.

The applied commit is sufficient to fix the immediate SIGFPE problem with
glibc, but the API is still being used incorrectly and could result in future
crashes on other implementations.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160322/cc7ab169/attachment.html>


More information about the mesa-dev mailing list