[libav-bugs] [Bug 588] New: fate.sh: Argument list too long

bugzilla at libav.org bugzilla at libav.org
Wed Nov 6 17:01:27 CET 2013


           Summary: fate.sh: Argument list too long
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: Lowest
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: michael.kostylev at gmail.com

Running fate.sh on a machine with a low ARG_MAX value may lead to damaged
report file. The report function contains the following command:
    cat ${build}/config.fate ${build}/tests/data/fate/*.rep >>report
The result of *.rep expansion is a few tens of kilobytes and it is growing,
since the new tests are added. If ARG_MAX value is less than the current
environment and argument list, the execve call fails with E2BIG. In our case
this means that
nothing will be written into the report file.

Adding HEVC tests actually broke reporting from a hppa-linux machine, where
increasing ARG_MAX is not easy and requires installation of a new kernel. As a
quick hack I've replaced
     cat ${build}/config.fate ${build}/tests/data/fate/*.rep >>report
    cat ${build}/config.fate >>report
    find ${build}/tests/data/fate -name '*.rep' | xargs cat >>report
Xargs takes care about the ARG_MAX limit and runs the required command as many
times as needed. Also, xargs is a XSI extension.

Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list