From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12415 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: problem compiling bash-3.2.57 bash-4.4.12, seg fault Date: Sat, 27 Jan 2018 11:45:17 -0500 Message-ID: <20180127164517.GK1627@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1517071418 17319 195.159.176.226 (27 Jan 2018 16:43:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2018 16:43:38 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12431-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jan 27 17:43:34 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 1efTZf-0003qD-Nc for gllmg-musl@m.gmane.org; Sat, 27 Jan 2018 17:43:27 +0100 Original-Received: (qmail 11842 invoked by uid 550); 27 Jan 2018 16:45:30 -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 11824 invoked from network); 27 Jan 2018 16:45:29 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12415 Archived-At: On Sat, Jan 27, 2018 at 08:19:55AM -0800, Po-yi Wang wrote: > hi > > i am attempting to statically compile bash-3.2.57 or bash-4.4.12, with > gcc-4.0.4 binutils-2.24 and musl-1.1.18 musl-gcc wrapper. > (seg fault occurred on arm target)(musl compiled with -g3) What configure command line did you use? By default bash uses (or at least used to use) its own broken malloc replacement that's incompatible with musl (and inherently UB). You need to disable that. Look at the build recipe from any distro using musl, like: https://git.alpinelinux.org/cgit/aports/tree/main/bash/APKBUILD?id=v3.7.0#n72 Rich