Created attachment 116307 [details] patch for the fix Fix for potential deadlock issue in Xorg. Block SIGIO, allocate memory and release SIGIO. In case of SIGIO interrupt generated while memory allocation routine (malloc/calloc) is in execution and SIGIO handler in turn try to allocate memory, deadlock can occur. This fix is based on version 1.17.1
The signal handler is not allowed to malloc. The signal handler is not allowed to do a lot of things because they are not reentrant! You have to fix the signal handlers to preallocate and avoid non-sigsafe functions. Please describe the deadlock you see.
Right - allocating memory in a signal handler is never safe - blocking signals around every place in the X server that does malloc will never work. Also, patches against the X server are never applied directly from bugzilla. They *must* be sent to the xorg-devel mailing list for public review - filing bugs for them in bugzilla is not needed often gets them overlooked. See http://wiki.x.org/wiki/Development/Documentation/SubmittingPatches/
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/594.
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.