On Fri, Oct 15, 2010 at 2:16 AM, <[email protected]> wrote:
> I work for a company that uses busybox and am upgrading us to 1.17.3.
> 'seq' has been fixed since our old version so that 'seq <n> 0 <n+1>'
> now returns an infinite sequence of <n> rather than exiting
> immediately. As a result, the following testcase in seq.tests now
> fails:
>
> testing "seq count by zero" "seq 4 0 8 | head -n 10"
> "4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n" "" ""
>
> The device is running an OMAP 3430 and linux 2.6.24. When I build
> from the same source tree and .config file for my Ubuntu
> 2.6.28-19-generic x86 laptop, the test case *passes*. Running strace
> against busybox's seq on the two systems doesn't show much difference;
> certainly it doesn't tell me why seq keeps running on the device once
> write(stdout,...) starts failing.
Can you show me the strace log? I tested it here and I see:
execve("./busybox", ["./busybox", "seq", "4", "0", "5"], [/* 48 vars */]) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xffc535e0) = -1 EINVAL
(Invalid argument)
getpid() = 10368
getuid32() = 0
write(1, "4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n"..., 1024) = 1024
write(1, "4", 1) = 1
write(1, "\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4"..., 1024) = 1024
write(1, "\n", 1) = 1
write(1, "4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n"..., 1024) = 1024
write(1, "4", 1) = 1
write(1, "\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4"..., 1024) = 1024
write(1, "\n", 1) = 1
write(1, "4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n"..., 1024) = 1024
write(1, "4", 1) = 1
write(1, "\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4"..., 1024) = 1024
write(1, "\n", 1) = 1
write(1, "4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n"..., 1024) = 1024
write(1, "4", 1) = 1
write(1, "\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4\n4"..., 1024)
= -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
+++ killed by SIGPIPE +++
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox