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/16272] New: dlopen()ing a DT_FILTER library crashes if filtee has constructor


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

            Bug ID: 16272
           Summary: dlopen()ing a DT_FILTER library crashes if filtee has
                    constructor
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: brnguyen at nvidia dot com

Created attachment 7309
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7309&action=edit
Reproduction test case

The attached test case loads a DSO which has a DT_FILTER set to a shared
object with a constructor function.  This segfaults on RHEL 6.4, and on an
ld.so built from commit a9503496671bb22278bd1203182066f0bb28239a, this
crashes with the following assertion:

Inconsistency detected by ld.so: dl-deps.c: 586: _dl_map_object_deps:
Assertion `map->l_searchlist.r_list[0] == map' failed!

This also reproduces if I replace "--Wl,--filter=libtest.so.1" with
"--Wl,--auxiliary=libtest.so.1" in the Makefile.

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