This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3840] glibc 2.5: scripts/check-local-headers.sh: argument list too long
- From: "balagi at justmail dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jan 2007 13:02:17 -0000
- Subject: [Bug libc/3840] glibc 2.5: scripts/check-local-headers.sh: argument list too long
- References: <20070106151946.3840.balagi@justmail.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From balagi at justmail dot de 2007-01-07 13:02 -------
Correction: not fgrep emits the error message, bash do it after doing a execve.
I built glibc 2.5 on a i686 linux with kernel 2.6.19.1
running glibc 2.3.2 and bash 3.2.
The build generates 7216 *.d files (../a is the build directory):
~/var/tmp/glibc-2.5$ fgrep /usr/include ../a/*/*.d
bash: /usr/bin/fgrep: Argument list too long
~/var/tmp/glibc-2.5$ find ../a -name '*.d' | wc -l
7216
A look into the linux kernel gives:
max arg count: (PAGE_SIZE*MAX_ARG_PAGES-sizeof(void*))/sizeof(void*) = (4096*32-
4)/4 = 32767
max arg memory: PAGE_SIZE*MAX_ARG_PAGES-sizeof(void*) = 131068 bytes
But the memory size needed to store the arguments for */*.d is above 150000
bytes, so the linux kernel emits an E2BIG error in sys_execve !
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3840
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.