Red Hat Bugzilla – Bug 537383
[RHEL3] glob crash
Last modified: 2009-11-25 10:56:51 EST
Created attachment 369416 [details]
compress archive with source code and binary
Description of problem:
glob produce seg fault on folder with >65000 files
Version-Release number of selected component (if applicable):
set max stack size to 1024
call simple glob application
Steps to Reproduce:
1. generate >65000 files in folder
2. set ulimit -s 1024, ulimit -c unlimited
3. call glob_test
list of files
file_gen - file generator
glob_test - small application to call glob function on folder with files
by default use gen67000 folder
1MB of stack is awfully small.
Yes, but it's way to reproduce problem in glob quickly
when we set default 10M, the problem reproduced on bigger file count.
like in http://sources.redhat.com/bugzilla/show_bug.cgi?id=3253
yes, in 10Mb max stack size (set by default in RHEL3)
glibc has fault on 654275 files
that has been by use of alloca in glob function
Can be possible patch glibc in RHEL3 as in RHEL4 ?
RHEL3 is too old. It is it's last phase of life where only critical security patches are applied. It is extremely unlikely that any bug fix is applied at this time, especially something as risky like this.
If you don't agree with this you'll have to open a support ticket with your RH contact and make a very good case.