This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/21045] [powerpc-nofpu] swapcontext does not restore signal mask

--- Comment #1 from cvs-commit at gcc dot <cvs-commit at gcc dot> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b040e1b0842c35ab444e8502db6ae59389d1e3d5 (commit)
      from  502697713f4f129b602d7213253a9982ee1989f1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;h=b040e1b0842c35ab444e8502db6ae59389d1e3d5

commit b040e1b0842c35ab444e8502db6ae59389d1e3d5
Author: Joseph Myers <>
Date:   Mon Jan 16 21:34:48 2017 +0000

    Make soft-float powerpc swapcontext restore the signal mask (bug 21045).

    The soft-float powerpc version of swapcontext does not restore the
    signal mask, resulting in stdlib/tst-setcontext2 failing:

    after getcontext
    after setcontext
    after swapcontext
    FAIL: SIGUSR2 is blocked after swapcontext.

    This patch fixes this by adjusting the arguments passed to
    __sigprocmask so that it restores the saved signal mask as well as
    saving the existing one.  (For hard-float, this code is only used for
    a compat symbol, not for the current version of swapcontext.)

    Tested for soft-float powerpc.

        [BZ #21045]
        * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
        (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
        to __sigprocmask.


Summary of changes:
 ChangeLog                                          |    7 +++++++
 .../linux/powerpc/powerpc32/swapcontext-common.S   |    3 ++-
 2 files changed, 9 insertions(+), 1 deletions(-)

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]