From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2910 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: re: musl setup attempt Date: Thu, 14 Mar 2013 12:58:02 +0100 Message-ID: <20130314115802.GA19010@port70.net> 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 1363262297 3752 80.91.229.3 (14 Mar 2013 11:58:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 11:58:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2911-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 14 12:58:38 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 1UG6nt-000096-Op for gllmg-musl@plane.gmane.org; Thu, 14 Mar 2013 12:58:37 +0100 Original-Received: (qmail 26375 invoked by uid 550); 14 Mar 2013 11:58:14 -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 26365 invoked from network); 14 Mar 2013 11:58:14 -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:2910 Archived-At: * LM [2013-03-14 07:02:16 -0400]: > > >...but it would probably be most helpful if you installed strace... > > Am not very familiar with strace, but I ran it on some of the programs > that were displaying errors. > The stderr results from using strace on wavpack were: > > execvc ("./wavpack, ["./wavpack"],[/* 30 vars */]) = -1 EIO > (Input/output error) > dup(2) = 3 > fcntl64 (3,F_GETFL) = 0x8001 (flags > O_WRONLY|O_LARGEFILE) > close(3) = 0 > write (2, "strace: exec: Input/output error"..., 33 strace: exec: there is no execvc syscall, it should be execve if exec fails then something is wrong before the application starts, maybe you can see what happens if you strace the loader, which you can do by strace path/to/libc.so wavpack the output here is $ strace ../lib/libc.so wavpack execve("../lib/libc.so", ["../lib/libc.so", "wavpack"], [/* 33 vars */]) = 0 open("wavpack", O_RDONLY|O_LARGEFILE) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\20\225\4\0104\0\0\0"..., 936) = 936 mmap2(0x8048000, 53248, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x8048000 mmap2(0x8053000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa) = 0x8053000 close(3) = 0 ... (this is in a simple musl environment set up with musl-gcc, although not the latest musl) if you dont know how to debug the issue then post all the relevant information (config.mak, readelf -ld, strace libc.so, musl version, env)