patch set for #90289

Nikos Mavrogiannopoulos nmav at redhat.com
Wed Jun 24 01:03:14 PDT 2015


This patch set eliminates two issues in the proxy module:
1. A process using the proxy module would crash if at some point after
initializing it would fork(). - patch set 0001-0002
2. A process using the proxy module would call C_Finalize in a child
process. - patch set 0003-0004

The issue (1) is very tricky to debug, the reason that the crash
happened on the parent is not clear to me (they are different processes
after all). The crash is in binding_C_Finalize() after having passed
from ffi. See the comments in 0004 for the fix.

regards,
Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-test-case-for-crash-after-a-fork-in-proxy-modu.patch
Type: text/x-patch
Size: 2411 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/p11-glue/attachments/20150624/bc6114bf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Do-not-finalize-modules-created-in-another-pid.patch
Type: text/x-patch
Size: 2289 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/p11-glue/attachments/20150624/bc6114bf/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-test-case-for-bug-90289-deadlock-on-C_Initialize.patch
Type: text/x-patch
Size: 2586 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/p11-glue/attachments/20150624/bc6114bf/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-In-proxy-module-don-t-call-C_Finalize-on-a-forked-pr.patch
Type: text/x-patch
Size: 2347 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/p11-glue/attachments/20150624/bc6114bf/attachment-0003.bin>


More information about the p11-glue mailing list