From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12848 Path: news.gmane.org!.POSTED!not-for-mail From: "Bob B." Newsgroups: gmane.linux.lib.musl.general Subject: Re: dl_iterate_phdr() behaves differently on musl and glibc Date: Mon, 28 May 2018 23:39:59 +0200 Message-ID: References: <20180528200243.GH1392@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1527543487 31183 195.159.176.226 (28 May 2018 21:38:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 21:38:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12864-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 28 23:38:03 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fNPq7-00083E-Bp for gllmg-musl@m.gmane.org; Mon, 28 May 2018 23:38:03 +0200 Original-Received: (qmail 21764 invoked by uid 550); 28 May 2018 21:40:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21740 invoked from network); 28 May 2018 21:40:11 -0000 Importance: normal Sensitivity: Normal In-Reply-To: <20180528200243.GH1392@brightrain.aerifal.cx> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:JWguUKqQc9FHaZYoGcq3xcTMLUI5kkIVkasglGvCxrf /N82QwIYVC6nWcZxvJDOiTvuVoprQD6KdW7YfTKrVgtyYjJLhS Wl4ctONcW6SgigBCP4bEJWGTqVN9zg9rjqW/7feE8AafygWgry u1P6L75kizHOZDl4La+nuquFnaRppfREWsEE9GtRxTZgGR937L ZXNUtFNasBOF/F32ONP+cccYZZHl22HVdSU0iJ9mMtFgfHjfR7 9AmJeK43wEGPymVnOS+Vvi6kxao2uSqPctW25aQTpoBcrJFwqa AryM18= X-UI-Out-Filterresults: notjunk:1;V01:K0:YKpEehmwFlA=:jZ/i/XOIWfcAPWRua8LUiR 49Pu430Hj8X7vuHBzxaUNbGkxZIei/IECZNODEzRXHmo6S+k+idO5rZqXwI+1osv61ER6YnWu W3U9BTie0/ZBlS4eQvIDxZd+FER+8g/YBaa8BMA/imnklDZ0BeoSYRqKxDNA78i1nf0BFuY8o fEvtWH0FES9nxey+WiH0aPl1FQA2paXC/jRnufMojclO3bw33Me4VbVkmZ7l3lhVWppkWnbgu j32IJijm2MWKfqf8BTHqQf5tRS3PgjP1g76FI5tZH+1Th8UGMnGCXWoxYiQIAy9VIzKHF+wxy qzALP+5OhIDhiRgDep4310Ftby3OjqdBfiiLqJFrLU1O4jwtPhKuHY/OYoQ0DnxWF+Z2HqB2k X6Vwd2zEvfNicxMgiTiHhSm1yngnWom79cKLzNwUFJeDIRIV8x7H1taKMqmreg97YRpXPgSLV noK+6trddFenW4oI7czJne1i3sNj3ap7/ZnqMrnipV75ijKPyjsy Xref: news.gmane.org gmane.linux.lib.musl.general:12848 Archived-At: > Is there a reason musl's behavior is problematic here? Even without > the ambiguity I'd be hesitant to change it since programs may be > relying on it. Looking around I found that it caused confusion with libwhich[0] (a program like `which` for dynamic libraries). There's an issue opened[1] about it working differently on musl then it does on other systems. But I wonder if it causes any problems... Looking at the code, it looks like Apple systems do the same thing as musl and they treated it individually by skipping the first program on the report (itself)[2] Might be worth checking what other systems do (BSDs especially I think) before making the decision. A clarification on POSIX should also take place. Is that a too bureaucratic process? [0] https://github.com/vtjnash/libwhich [1] https://github.com/vtjnash/libwhich/issues/6 [2] https://github.com/vtjnash/libwhich/blob/master/libwhich.c#L175