Tricky gpgme_wait bug.
Igor Belyi
gpgme at katehok.ac93.org
Mon Apr 25 19:51:58 CEST 2005
Igor Belyi wrote:
> Igor Belyi wrote:
>
>> There's a strange gpgme bug hit by gpgme_wait when there's a sleep
>> happen between calls and when the asynchronous command is
>> 'gpgme_op_verify_start' resulting in an error.
>
>
> Ok, I think I know what causes this problem but I don't quite
> understand what is the best way to fix it.
>
> The extra sleep between gpgme_wait causes _gpgme_io_select to get
> signal on more than one file handler for the same context. As a result
> an error reported on the first handle causes all context handlers to
> be closed and the associated data released. When the second selected
> handle get processed it causes segmentation fault.
And just to reply to myself, attached is a proposed patch fixing the
problem.
I do hope it helps,
Igor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpgme1.0-gpgme_signals_in_wait.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
Url : /pipermail/attachments/20050425/070fe896/gpgme1.0-gpgme_signals_in_wait.bin
More information about the Gnupg-devel
mailing list