[Bug 7436] New: unreliable pipe handling

bugzilla at busybox.net bugzilla at busybox.net
Sun Sep 14 07:20:58 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7436

           Summary: unreliable pipe handling
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: mjt+busybox at tls.msk.ru
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


As has been submitted to debian BTS, http://bugs.debian.org/761423#10 --
sometimes, pipe between two components of bysybox (in this case it is find and
dd) does not work in a reliable way.  Quoting the testcase here.

----
    % busybox sh

    BusyBox v1.22.1 (Debian 1:1.22.0-8) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ $ mkdir /tmp/emptytest
    ~ $ touch /tmp/emptytest/.x
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null
    /tmp/emptytest/
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    /tmp/emptytest/.x
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    /tmp/emptytest/.x
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    ~ $ find /tmp/emptytest/ -name "*?" | dd count=1 2>/dev/null 
    /tmp/emptytest/
    /tmp/emptytest/.x

The output should be always:

    /tmp/emptytest/
    /tmp/emptytest/.x
----

I can confirm this result on my box too.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list