This is the mail archive of the glibc-bugs@sourceware.org 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 malloc/22830] malloc_stats doesn't restore cancellation state on stderr


https://sourceware.org/bugzilla/show_bug.cgi?id=22830

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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  402ecba487804e9196769f39a8d157847d3b3104 (commit)
      from  4f5b921eb9b775aa3549a9bcd684c3013132f04b (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=402ecba487804e9196769f39a8d157847d3b3104

commit 402ecba487804e9196769f39a8d157847d3b3104
Author: Zack Weinberg <zackw@panix.com>
Date:   Sat Feb 10 16:24:17 2018 -0500

    [BZ #22830] malloc_stats: restore cancellation for stderr correctly.

    malloc_stats means to disable cancellation for writes to stderr while
    it runs, but it restores stderr->_flags2 with |= instead of =, so what
    it actually does is disable cancellation on stderr permanently.

        [BZ #22830]
        * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
            correctly.
            * malloc/tst-malloc-stats-cancellation.c: New test case.
            * malloc/Makefile: Add new test case.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                              |    8 ++
 malloc/Makefile                        |    2 +
 malloc/malloc.c                        |    2 +-
 malloc/tst-malloc-stats-cancellation.c |  216 ++++++++++++++++++++++++++++++++
 4 files changed, 227 insertions(+), 1 deletions(-)
 create mode 100644 malloc/tst-malloc-stats-cancellation.c

-- 
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]