* [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters.
@ 2016-10-09 17:04 bugzilla-daemon
2016-10-09 17:08 ` bugzilla-daemon
2016-10-09 17:20 ` bugzilla-daemon
0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2016-10-09 17:04 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1964 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=98172
Bug ID: 98172
Summary: Concurrent call to glClientWaitSync results in
segfault in one of the waiters.
Product: Mesa
Version: 11.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: dri-devel@lists.freedesktop.org
Reporter: shinji.suzuki@gmail.com
QA Contact: dri-devel@lists.freedesktop.org
In my app, a fence is created in Thread-A and it gets passed to Thread-B and
Thread-C to be waited upon. (Each thread has its own context.)
Thread-A issues the call, fence = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE,
0).
Thread-B and C issue the call, glClientWaitSync(fence,
GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
Most of the time, wait in both clients succeed but occasionally one of them
generates segfault. Upon inspection of generated core, it turned out so->fence
in the expression "&so->fence" at line 113 in
src/mesa/state_tracker/st_cb_syncobj.c is NULL, which should be causing the
segfault down the call chain through screen->fence_reference. I think there is
race in executing the code block. If I introduce a mutex in my app with which
to avoid concurrent call to glClientWaitSync, I don't observe segfault
happening.
Here is the snippet of code in question from st_cb_syncobj.c:
if (so->fence &&
screen->fence_finish(screen, so->fence, timeout)) {
screen->fence_reference(screen, &so->fence, NULL);
so->b.StatusFlag = GL_TRUE;
}
My environment is;
Ubuntu 16.04 LTS
Linux a7da 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64
x86_64 x86_64 GNU/Linux
libgl1-mesa-dri:amd64 / 11.2.0-1ubuntu2.2
Radeon HD3300
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3399 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters.
2016-10-09 17:04 [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters bugzilla-daemon
@ 2016-10-09 17:08 ` bugzilla-daemon
2016-10-09 17:20 ` bugzilla-daemon
1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2016-10-09 17:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 228 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=98172
--- Comment #1 from shinji.suzuki@gmail.com ---
Oops, the line number is 114 rather than 113.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1055 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters.
2016-10-09 17:04 [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters bugzilla-daemon
2016-10-09 17:08 ` bugzilla-daemon
@ 2016-10-09 17:20 ` bugzilla-daemon
1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2016-10-09 17:20 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 700 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=98172
shinji.suzuki@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.
|.org |org
QA Contact|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.
|.org |org
Component|Drivers/Gallium/r600 |Mesa core
CC| |shinji.suzuki@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1747 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-09 17:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 17:04 [Bug 98172] Concurrent call to glClientWaitSync results in segfault in one of the waiters bugzilla-daemon
2016-10-09 17:08 ` bugzilla-daemon
2016-10-09 17:20 ` bugzilla-daemon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.