The default arg size used in xargs is further checked against the posix api reported limits. It is possible the upper limit is 128K on qemu/versatile/arm, but note that whatever value is selected is further validated against sysconf(_SC_ARG_MAX). However, as noted in sysconf itself, this does not account for space needed to pass the env variables for exec(), and this may be why setting a value of 127k may restrict the size enough not to immediately fail, but still fails sometimes, depending on what is in the env or what space is also needed for the file path for exec. However, before changing xargs, we should validate what sysconf(_SC_ARG_MAX) reports as the kernel may have wrong or different values than that actually supported by the QEMU emulation of versatile, which may be different from real hardware. Hence, lets make sure we are not fixing the wrong problem in the wrong place...
-- xargs on qemu has bad ARG_MAX https://bugs.launchpad.net/bugs/372121 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
