[Webkit-unassigned] [Bug 157973] [Wayland] PlatformDisplayWayland destructor is super crashy

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 31 10:31:56 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157973

Zan Dobersek <zan at falconsigh.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zan at falconsigh.net

--- Comment #4 from Zan Dobersek <zan at falconsigh.net> ---
If we're committed to destructing the PlatformDisplay object, then using atexit() manually might work better than a static std::unique_ptr<> object.

The PlatformDisplayWayland constructor would do the EGL initialization, setting up exit-time callbacks in Mesa. We should register the destruction of this object with atexit() afterwards, since the callbacks passed to atexit() are called in reverse order.

This showcases the problem:
https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4bc0-81c5-3956e82276f3/entry/be_careful_when_using_the_atexit_routine_with_static_objects?lang=en

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160531/2e6db244/attachment.html>


More information about the webkit-unassigned mailing list