Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 May 2018 19:16:16 -0400
From: Jameson Nash <>
To: "Bob B." <>
Subject: Re: dl_iterate_phdr() behaves differently on musl and glibc

Cool, my motivation for creating `libwhich` in part was to be able to
inspect how different systems handle dynamic libraries and this reflection

So seems like the main difference is just that on Ubuntu the first entry
doesn't have a name, and those are explicitly skipped in my code (

Indeed, the example in the Ubuntu manpage also clarifies that: "The first
shared object for which output is displayed (where the name is an empty
string) is the main program"

Which seems to suggest that users should just unconditionally skip the
first entry if they aren't interested in the program name. Does that sound


On Mon, May 28, 2018 at 6:32 PM Bob B. <> wrote:

> > Rather than special-casing knowledge of particular systems I think the
> > code should just be fixed so that it doesn't break if the main program
> > is included.
> I'm CC'ing the libwhich people so let them know and discuss.
> For context -

Content of type "text/html" skipped

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.