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 malloc/19431] Deadlock between fflush, getdelim, and fork

--- Comment #7 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  e67f54ab1a6253dd69cb2c770d785c7eb6d2172c (commit)
      from  87ab10d6524fe4faabd7eb3eac5868165ecfb323 (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=e67f54ab1a6253dd69cb2c770d785c7eb6d2172c

commit e67f54ab1a6253dd69cb2c770d785c7eb6d2172c
Author: Samuel Thibault <>
Date:   Thu Sep 22 01:45:48 2016 +0200

    hurdmalloc: Run fork handler as late as possible [BZ #19431]

    This is the hurd-specific follow-up for
    29d794863cd6e03115d3670707cc873a9965ba92 : hurdmalloc also needs the
    same fix

        * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
        (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
        (malloc_fork_child): Rename to _hurd_malloc_fork_child.
        (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
        (_hurd_fork_parent_hook): Drop malloc_fork_parent.
        (_hurd_fork_child_hook): Drop malloc_fork_child.
        * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
        _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
        * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
        after locking locks (notably hurd_dtable_lock). Call
        _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
        before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before


Summary of changes:
 ChangeLog                |   17 +++++++++++++++++
 hurd/hurdmalloc.c        |   15 ++++++---------
 hurd/hurdmalloc.h        |    4 ++++
 sysdeps/mach/hurd/fork.c |   15 +++++++++------
 4 files changed, 36 insertions(+), 15 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]