[Mesa-dev] [Bug 91646] dlopen'ing libudev.so.1 from static library initializer corrupts TLS state

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 15 10:17:01 PDT 2015


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

--- Comment #1 from Tobias Jakobi <liquid.acid at gmx.net> ---
The problem seems to originate from here:
http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/clover/api/platform.cpp#n29

The platform object is created during static initialization and somewhere in
the class hierarchy a dlopen() is triggered. Since _clover_platform only seems
to be used in clGetPlatformIDs(), my idea would be to make this object static
and put it into the function itself, so it only gets initialization when the
function is first called.

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


More information about the mesa-dev mailing list