Public bug reported:

On a qemu chroot with Ubuntu 9.04 installed:

  find /usr -print0 | xargs -0r pwd

produces:
 Error loading /bin/pwd
 Error loading /bin/pwd
 Error loading /bin/pwd
 Error loading /bin/pwd
 /bin/pwd: ignoring non-option arguments
 /usr/src/packages/BUILD/xargs

(pwd is just a quiet command)

note that many other 'sensible looking' commands such as
  find /usr -print0 | LANG=C xargs -0r |wc
don't show the problem.

nor does
  find /usr -print0 | xargs --max-chars 128000 -0r pwd

This can be fixed by changing lib/buildcmd.c : 502 to use a lower value as the 
"sensible_arg_max"
  enum { arg_size = (128u * 1024u) };

Whilst qemu should have a higher arg_max, I think xargs is at fault
since it is hitting an internal hardcoded limit.

** Affects: findutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: arm armel qemu

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to