On Sun, May 02, 2010 at 11:58:49AM +0200, Giovanni Mascellani wrote:
> Cc:-ing the wb-team.
> 
> Hi, I'm working on a OpenJDK bug: the build fails with:
> 
> make[8]: execvp: /bin/sh: Argument list too long
> 
> I would like to know the value of ARG_MAX used on the buildd nodes.
> Could you also suggest me how to change it on my system? I couldn't find
> anything.

I have no idea why we would change that or how you should do that.
Note that execvp() is a system call.  So this would be a kernel
limit, and setrlimit() doesn't let you set this.

I get:
$ getconf ARG_MAX
2097152

And I get that on all the buildds I've tried it too, but that
wasn't under sbuild, if it somehow managed to change that.

man sysconf(3) also has:
BUGS
       It  is difficult to use ARG_MAX because it is not specified how much of
       the argument space for exec(3) is consumed by  the  user's environment
       variables.


Kurt




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to