Page MenuHome GnuPG

gpg-agent modifies SigBlk mask of all processes spawned in the X session (i386)
Closed, ResolvedPublic

Description

Pleaes see http://bugs.debian.org/499569 for the full investigation and the
proposed patch. From the report:

[..] gnupg-agent somehow manages to change the SigBlk mask causing all child
processes that are spawned part of the X session to have the SigBlk mask set
causing real-time signals to be blocked. This breaks all applications spawned in
that X session that rely on real-time signals. [..]

[..] pth seems to mess with the sigprocmask on i386 at least. As such
deinitializing pth (with pth_kill) before execv seems like a good idea. Because
that does not quite do the trick, I also "manually" save and restore the
sigprogmask.[..]

Patch at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499569#17.

It has been reported as serious, because it breaks unrelated software on the system.

Details

External Link
http://bugs.debian.org/499569
Version
2.0.11

Event Timeline

dleidert set External Link to http://bugs.debian.org/499569.
dleidert set Version to 2.0.11.
dleidert added a subscriber: dleidert.
werner added a subscriber: werner.

Although it is an application error to assume a certain sigprocmask beyond
what's defined by POSIX, we should be nice and try to kill pth too.

Saving and restoring the sigprocmask has been in palce since December. Just the
pth_kill as missing. It should not be needed but it should not harm either.

Fixed in r5032.

werner removed a project: Restricted Project.Jun 17 2009, 4:15 PM

2.0.12 has been released.

werner claimed this task.