From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2942 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.toybox,gmane.linux.lib.musl.general Subject: toybox: Rough edges in pending Date: Mon, 18 Mar 2013 23:50:43 -0700 Message-ID: <20130318235043.7e89ec83.idunham@lavabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363675850 11514 80.91.229.3 (19 Mar 2013 06:50:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 06:50:50 +0000 (UTC) Cc: musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org To: toybox-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org Original-X-From: toybox-bounces-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org Tue Mar 19 07:51:16 2013 Return-path: Envelope-to: glt-toybox@m.gmane.org Original-Received: from che.dreamhost.com ([66.33.216.23]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UHqOA-00061Q-8p for glt-toybox@m.gmane.org; Tue, 19 Mar 2013 07:51:14 +0100 Original-Received: from che.dreamhost.com (localhost [127.0.0.1]) by che.dreamhost.com (Postfix) with ESMTP id 447EBFE98; Mon, 18 Mar 2013 23:50:51 -0700 (PDT) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by che.dreamhost.com (Postfix) with ESMTP id D94E3FE98 for ; Mon, 18 Mar 2013 23:50:49 -0700 (PDT) Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id 1993211BACB; Tue, 19 Mar 2013 01:50:48 -0500 (CDT) Original-Received: from caracal (50-0-229-108.dsl.static.sonic.net [50.0.229.108]) by lavabit.com with ESMTP id K7S1NS1W3XPQ; Tue, 19 Mar 2013 01:50:48 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=fqGVActyar673VHg3o5Ymu1pR51zYRY4kQB1b378PvZveHmYILo30FOKADNn6wQ7JBFuLY30yMZpocmnR9xKXdDgtgML0b8eEvLlK6jxxXvTG1owF4bbWXHKVk6wHYSYRZfcuOlORa4pAmrrhAx9JDqU6OOpVLxWSfloxTVTTvw=; h=Date:From:To:Cc:Subject:Message-Id:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) X-BeenThere: toybox-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: All-in-one linux command line utility package List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: toybox-bounces-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org Original-Sender: toybox-bounces-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org Xref: news.gmane.org gmane.linux.toybox:264 gmane.linux.lib.musl.general:2942 Archived-At: Hello, I don't expect these to be very high priority, but I ran into a few rough edges when enabling almost all the toys in pending: -sh: toys/pending/sh.c: In function 'run_pipeline': toys/pending/sh.c:303: warning: assignment from incompatible pointer type Apparently, gcc doesn't recognize both rebound and toys.rebound Also, when toybox is built with musl, and toybox sh executes ls, I get a hang; strace indicates that something funny is going on: execve("./toybox-musl", ["./toybox-musl", "sh", "-c", "ls"], [/* 22 vars */]) = 0 getuid32() = 1000 geteuid32() = 1000 umask(0) = 022 umask(022) = 0 getuid32() = 1000 geteuid32() = 1000 brk(0) = 0x8081000 brk(0x8082000) = 0x8082000 umask(0) = 022 umask(022) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0 vfork(Config.in README kconfig scripts toybox_unstripped toys.h LICENSE configure lib toybox toynet.h www Makefile generated main.c toybox-musl toys ) = 27832 --- SIGCHLD (Child exited) @ 0 (0) --- wait4(27832, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 27832 pause(^C With glibc, that last is: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 opost isig icanon echo ...}) = 0 vfork(Config.in README kconfig scripts toybox_unstripped toys.h LICENSE configure lib toybox toynet.h www Makefile generated main.c toybox-musl toys ) = 27838 waitpid(27838, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 27838 --- SIGCHLD (Child exited) @ 0 (0) --- exit_group(1) = ? I anticipate this is a bug in musl, so I'll cross-post. Thanks, Isaac Dunham