This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3840] glibc 2.5: scripts/check-local-headers.sh: argument list too long


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]