From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25259 invoked from network); 17 Apr 2023 17:39:10 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 17 Apr 2023 17:39:10 -0000 Received: (qmail 5349 invoked by uid 550); 17 Apr 2023 17:39:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3991 invoked from network); 17 Apr 2023 16:50:18 -0000 Date: Mon, 17 Apr 2023 18:50:06 +0200 From: Robert Clausecker To: musl@lists.openwall.com Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [musl] getpwuid() calls getline() which may be redefined Greetings, I'm the maintainer of schilytools [1], a suite of tools including cdrecord, mkisofs, star, smake, and others. To produce Linux binary releases for our users, I investigated building static binaries with musl and found that the star command experienced problems [3]: when built with smake LINKMODE=static LDOPTX=-static INS_RBASE=/opt/schily SHLIB_BUILD=\# the program hangs reading from stdin. With the help of psykose from your IRC channel, we found that this is due to getpwuid() calling getline(), a symbol which this program uses for a custom function with a POSIX-incompatible signature. This use of the getline() symbol dates back to UNOS [2], an early UNIX close. We'll try to work around this issue, likely by renaming our getline() to something else. I have filed this bug report with you so you may decide if you wish to route the getline() call through an internal symbol alias, proofing your library against incompatible external redefinitions. Yours, Robert Clausecker [1]: https://codeberg.org/schilytools/schilytools [2]: https://en.wikipedia.org/wiki/UNOS_(operating_system) [3]: https://codeberg.org/schilytools/schilytools/issues/31 -- () ascii ribbon campaign - for an 8-bit clean world /\ - against html email - against proprietary attachments