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/20432] malloc: Minimize interface required for interposition


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

--- Comment #2 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  ef4f97648dc95849e417dd3e6328165de4c22185 (commit)
      from  21e79af4cf72429f98480fa34912a4ce236b09a0 (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=ef4f97648dc95849e417dd3e6328165de4c22185

commit ef4f97648dc95849e417dd3e6328165de4c22185
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Aug 26 22:40:27 2016 +0200

    malloc: Simplify static malloc interposition [BZ #20432]

    Existing interposed mallocs do not define the glibc-internal
    fork callbacks (and they should not), so statically interposed
    mallocs lead to link failures because the strong reference from
    fork pulls in glibc's malloc, resulting in multiple definitions
    of malloc-related symbols.

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

Summary of changes:
 ChangeLog                              |   34 ++++
 include/libc-symbols.h                 |   15 ++
 malloc/Makefile                        |   27 +++-
 malloc/tst-interpose-aux-nothread.c    |   20 +++
 malloc/tst-interpose-aux-thread.c      |   20 +++
 malloc/tst-interpose-aux.c             |  270 ++++++++++++++++++++++++++++++++
 malloc/tst-interpose-aux.h             |   30 ++++
 malloc/tst-interpose-nothread.c        |   20 +++
 malloc/tst-interpose-skeleton.c        |  204 ++++++++++++++++++++++++
 malloc/tst-interpose-static-nothread.c |   19 +++
 malloc/tst-interpose-static-thread.c   |   19 +++
 malloc/tst-interpose-thread.c          |   20 +++
 nptl/tst-tls3-malloc.c                 |  156 +------------------
 sysdeps/mach/hurd/fork.c               |    6 +-
 sysdeps/nptl/fork.c                    |    6 +-
 15 files changed, 706 insertions(+), 160 deletions(-)
 create mode 100644 malloc/tst-interpose-aux-nothread.c
 create mode 100644 malloc/tst-interpose-aux-thread.c
 create mode 100644 malloc/tst-interpose-aux.c
 create mode 100644 malloc/tst-interpose-aux.h
 create mode 100644 malloc/tst-interpose-nothread.c
 create mode 100644 malloc/tst-interpose-skeleton.c
 create mode 100644 malloc/tst-interpose-static-nothread.c
 create mode 100644 malloc/tst-interpose-static-thread.c
 create mode 100644 malloc/tst-interpose-thread.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]