develooper Front page | perl.perl5.porters | Postings from October 1999

[ID 19991023.001] glob failure with large directory

Thread Next
From:
Daniel M. Quinlan
Date:
October 23, 1999 05:58
Subject:
[ID 19991023.001] glob failure with large directory
Message ID:
199910231258.GAA27362@denali.brtt.com
This is a bug report for perl from danq@brtt.com,
generated with the help of perlbug 1.26 running under perl 5.00502.


-----------------------------------------------------------------
[Please enter your report here]
The following script failed for a directory with 5,251 entries:

    #!/opt/antelope/perl/bin/perl
    @a = glob("$ARGV[0]/*") ;
    $a = @a ; 
    print "$a entries : first is $a[0]\n" ;

The directory contains many files, all of a similar format:

    % ls split | wc
	5251    5251  141970
    % ls split | head
    1997-189-10:12:36-Tue-danq
    1997-190-14:40:23-Wed-danq
    1997-190-14:40:34-Wed-danq
    1997-201-15:57:14-Sun-danq
    1997-201-17:22:40-Sun-danq
    1997-201-17:32:05-Sun-danq
    1997-201-18:24:30-Sun-danq
    1997-201-18:28:45-Sun-danq
    1997-201-18:30:41-Sun-danq
    1997-201-18:32:34-Sun-danq

A few filenames have a trailing "+" or "++".

[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00502:

Configured by danq at Wed Feb 17 09:19:08 MST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos denali 5.7 generic sun4u sparc sunw,ultra-1 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags=''
    ccflags =''
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G'

Locally applied patches:
    

---
@INC for perl 5.00502:
    /opt/antelope/perl/lib/5.00502/sun4-solaris
    /opt/antelope/perl/lib/5.00502
    /opt/antelope/perl/lib/site_perl/5.005/sun4-solaris
    /opt/antelope/perl/lib/site_perl/5.005
    .

---
Environment for perl 5.00502:
    HOME=/home/danq
    LANG (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/opt/java/jdk1.1.5/bin:/opt/java/JavaCC/bin:/opt/antelope/dev/bin:/usr/sbin:.:/home/danq/bin:/usr/local/sbin:/usr/local/bin:/opt/local/etc:/opt/local/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/openwin/bin:/bin:/usr/proc/bin:/usr/ucb:/opt/antelope/tcl7.4tk4.0/bin:/opt/antelope/perl/bin
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh

Message from the perl bug squashing team at 'perlbug@perl.org'

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About