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 dynamic-link/11941] ld.so: Improper assert map->l_init_called in dlclose


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

--- Comment #5 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  57707b7fcc38855869321f8c7827bfe21d729f37 (commit)
      from  b064bba552e38e08a69a91424247ae67de493345 (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=57707b7fcc38855869321f8c7827bfe21d729f37

commit 57707b7fcc38855869321f8c7827bfe21d729f37
Author: Carlos O'Donell <carlos@redhat.com>
Date:   Fri Dec 23 13:30:22 2016 -0500

    Bug 11941: ld.so: Improper assert map->l_init_called in dlclose

    There is at least one use case where during exit a library destructor
    might call dlclose() on a valid handle and have it fail with an
    assertion. We must allow this case, it is a valid handle, and dlclose()
    should not fail with an assert. In the future we might be able to return
    an error that the dlclose() could not be completed because the opened
    library has already been unloaded and destructors have run as part of
    exit processing.

    For more details see:
    https://www.sourceware.org/ml/libc-alpha/2016-12/msg00859.html

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

Summary of changes:
 ChangeLog                         |   14 ++++++
 elf/Makefile                      |   14 +++++-
 elf/dl-close.c                    |   30 ++++++++++---
 elf/tst-nodelete-dlclose-dso.c    |   90 +++++++++++++++++++++++++++++++++++++
 elf/tst-nodelete-dlclose-plugin.c |   40 ++++++++++++++++
 elf/tst-nodelete-dlclose.c        |   35 ++++++++++++++
 6 files changed, 215 insertions(+), 8 deletions(-)
 create mode 100644 elf/tst-nodelete-dlclose-dso.c
 create mode 100644 elf/tst-nodelete-dlclose-plugin.c
 create mode 100644 elf/tst-nodelete-dlclose.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]