From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14077 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-1.1.22 -static segfaults in __init_tls Date: Mon, 15 Apr 2019 15:07:37 +0200 Message-ID: <20190415130737.GF26605@port70.net> References: <20190415105917.3zwos4rdvipm6ypa@m.mifar.in> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="256454"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: Sami Farin , musl@lists.openwall.com Original-X-From: musl-return-14093-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 15 15:07:53 2019 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.89) (envelope-from ) id 1hG1Ky-0014Sj-GX for gllmg-musl@m.gmane.org; Mon, 15 Apr 2019 15:07:52 +0200 Original-Received: (qmail 30552 invoked by uid 550); 15 Apr 2019 13:07:50 -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 30534 invoked from network); 15 Apr 2019 13:07:49 -0000 Mail-Followup-To: Sami Farin , musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20190415105917.3zwos4rdvipm6ypa@m.mifar.in> Xref: news.gmane.org gmane.linux.lib.musl.general:14077 Archived-At: * Sami Farin [2019-04-15 12:59:17 +0200]: > Fedora 29 Linux, gcc-8.3.1-2.fc29, x86_64 kernel 4.19.33. > > $ cat musl_crash.c; musl-gcc musl_crash.c -static; ./a.out > int main(int argc, char* argv[]) { > return 0; > } > > Segmentation fault this is likely a broken binutils if the ldflag -Wl,--build-id or -Wl,-z,noseparate-code fixes it then it's https://sourceware.org/bugzilla/show_bug.cgi?id=23428 report it to fedora as it affects anything static linked. (even with glibc if all non-executable load sections are turned off such as the note section for build-id)