|
Message-ID: <20170704160509.GE2032@port70.net> Date: Tue, 4 Jul 2017 18:05:10 +0200 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: Re: Multiple bugs in dlopen & dependency tracking * Rich Felker <dalias@...c.org> [2017-07-04 10:53:28 -0400]: > Commit 4ff234f6cba96403b5de6d29d48a59fd73252040 introduced a > regression whereby dlopen RTLD_GLOBAL of a library that was previously > loaded RTLD_LOCAL no longer promotes the library to the global > namespace as intended. This is easy to fix, but there are other > related bugs I've found in the process, and I want to document them > here. Some may be trickier to fix. They relate to the ->deps list for > a dso, which is supposed to contain a dependency-order list of dsos > that dlsym will search when called on the dso handle. These are also > connected to the stalled attempt to do dependency-order execution of > constructors. maybe adding debugging to the dynamic linker would help finding these issues earlier (e.g. if LD_DEBUG is set then print some trace to stderr in whatever format about what the dynamic linker is doing) since using a debugger on the dynamic linker is often non-trivial.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.