From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3362 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: util-linux-2.23 mount segmentation fault error Date: Sat, 25 May 2013 12:26:04 -0400 Message-ID: <20130525162604.GY20323@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1369499178 7971 80.91.229.3 (25 May 2013 16:26:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 May 2013 16:26:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3366-gllmg-musl=m.gmane.org@lists.openwall.com Sat May 25 18:26:19 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UgHIQ-0004pO-G6 for gllmg-musl@plane.gmane.org; Sat, 25 May 2013 18:26:18 +0200 Original-Received: (qmail 24093 invoked by uid 550); 25 May 2013 16:26:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24082 invoked from network); 25 May 2013 16:26:17 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3362 Archived-At: On Sun, May 26, 2013 at 12:46:17AM +0900, plan9assembler wrote: > Hi, > > i had compile util-linux-2.23 successfully, but when i test mount binary, > it getting segmentation fault. > http://plan9assembler.wordpress.com/2013/05/25/udev-in-x86_64-linux-musl/ Did you get any warnings building it? My best guess, since you're on a 64-bit system, is that mount used some function which returns a pointer without having a prototype in scope, and thus the return value got treated as an int then extended to a pointer via gcc's harmful implicit int-to-pointer conversion. Rich