mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham-N9AOi2cAC9ZBDgjK7y7TUQ@public.gmane.org>
To: toybox-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org
Cc: musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org
Subject: toybox: Rough edges in pending
Date: Mon, 18 Mar 2013 23:50:43 -0700	[thread overview]
Message-ID: <20130318235043.7e89ec83.idunham@lavabit.com> (raw)

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 <unfinished ...>

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 <idunham-N9AOi2cAC9ZBDgjK7y7TUQ@public.gmane.org>

             reply	other threads:[~2013-03-19  6:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19  6:50 Isaac Dunham [this message]
2013-03-19  9:42 ` Szabolcs Nagy
2013-03-19 11:09   ` Szabolcs Nagy
     [not found]     ` <20130319110939.GJ19010-4P1ElwuDYu6sTnJN9+BGXg@public.gmane.org>
2013-03-19 17:33       ` [musl] " Rob Landley
2013-03-19 17:20 ` [Toybox] " Rob Landley
2013-03-19 19:32   ` [musl] " Isaac Dunham
2013-03-20  6:22     ` [Toybox] " Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130318235043.7e89ec83.idunham@lavabit.com \
    --to=idunham-n9aoi2cac9zbdgjk7y7tuq@public.gmane.org \
    --cc=musl-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8@public.gmane.org \
    --cc=toybox-oU9gvf+ajcRUPo+8YfT7LV6hYfS7NtTn@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).