Bug 3382 - rtlinux build crash
: rtlinux build crash
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/findutils)
: unstable
: all Linux
: P2 minor
Assigned To:
:
: http://www2.fsmlabs.com/pipermail/rtl...
:
:
:
  Show dependency tree
 
Reported: 2003-12-16 23:57 by
Modified: 2005-07-13 15:45 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-12-16 23:57:24
I am getting next error, when I build rtlinux-3.2-pre3 after make dep:
"xargs: environment is too large for exec"
I made next patch to avoid this problem:
Make big arg_max
--- findutils-4.1.20.orig/xargs/xargs.c 2003-11-08 18:01:17 +0300
+++ findutils-4.1.20/xargs/xargs.c      2003-11-08 18:06:10 +0300
@@ -300,8 +300,8 @@
      have it at 1 meg).  Things will work fine with a large ARG_MAX but it
      will probably hurt the system more than it needs to; an array of this
      size is allocated.  */
-  if (arg_max > 20 * 1024)
-    arg_max = 20 * 1024;
+  if (arg_max > 64 * 1024)
+    arg_max = 64 * 1024;

   /* Take the size of the environment into account.  */
   arg_max -= env_size (environ);


Steps to Reproduce:
1.tar -xjf rtlinux-3.2-pre3.tar.bz2; cd rtlinux-3.2-pre3
2.ln -s <path_to_kernel> linux
3.make config; make dep
Actual Results:  
make: error

Expected Results:  
make: done
------- Comment #1 From 2003-12-17 15:32:14 -------
You'd better clean up your environment; see "printenv |wc". 
 
* Wed Dec 17 2003 Dmitry V. Levin <ldv@altlinux.org> 4.1.20-alt2 
- xargs: increased ARG_MAX limit from 20K to 64K, on popular demand. 
 
------- Comment #2 From 2003-12-22 10:48:22 -------
One kb don't solve this problem.
-----------------------------------
[sin@localhost SPECS]$ printenv |wc
     55      66    1455
-----------------------------------
Thank you!