Bug 3382 - rtlinux build crash
Summary: rtlinux build crash
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: findutils (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL: http://www2.fsmlabs.com/pipermail/rtl...
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-16 23:57 MSK by Evgeny Sinelnikov
Modified: 2005-07-13 15:45 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Sinelnikov 2003-12-16 23:57:24 MSK
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 Dmitry V. Levin 2003-12-17 15:32:14 MSK
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 Evgeny Sinelnikov 2003-12-22 10:48:22 MSK
One kb don't solve this problem.
-----------------------------------
[sin@localhost SPECS]$ printenv |wc
     55      66    1455
-----------------------------------
Thank you!