develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010711.003] readdir() as used in Cwd::abs_path throws erroron AIX 4.3

Thread Next
From:
Hans Ecke
Date:
July 11, 2001 22:19
Subject:
[ID 20010711.003] readdir() as used in Cwd::abs_path throws erroron AIX 4.3
Message ID:
Pine.LNX.4.33.0107112308310.8732-100000@sonduk.mines.edu
Hi List,

when using the FindBin module, I noticed this warning message which was
emited at module startup:

> /bin/perl -w /lair/hecke/autoflow/scripts/run_flow
/lair/hecke/testflows/2d-tutorials19/tutor2d-watson/04a-preprocess/
readdir(/lair/hecke/autoflow/scripts//../../..): A system call received
a parameter that is not valid. at /usr/opt/lib/perl5/5.6.0/FindBin.pm
line 162
readdir(/lair/hecke/autoflow/scripts//../../..): A file descriptor does
not refer to an open file. at /usr/opt/lib/perl5/5.6.0/FindBin.pm line
163

/lair/hecke is my homedir. The executable, however, was not run by me.

Looking at FindBin's sourcecode, it seems the problem lies in
Cwd::abs_path:

> /bin/perl -MCwd -e'print
Cwd::abs_path("/lair/hecke/autoflow/scripts")."\n"'
readdir(/lair/hecke/autoflow/scripts/../../..): A file descriptor does
not refer to an open file. at -e line 1

This time, I run it as the owner of /lair/hecke.

This is the first time I have seen that particular error message.
Has something similar ever been reported?

Appended you will find the output of "/bin/perl -V".

Please CC me on the discussion as I'm not a member of p5p.

Thank you very much

Hans Ecke

##################################################################

hecke@tiny:/lair/hecke/autoflow 575> /bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=aix, osvers=4.3.2.0, archname=aix
    uname='aix tiny 3 4 002255664c00 '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -q32 -D_LARGE_FILES -qlonglong'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/opt/lib -b32'
    libpth=/usr/opt/lib /lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lC -lc -lcrypt -lbsd -lPW
-liconv
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='
-bE:/usr/opt/lib/perl5/5.6.0/aix/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -b noentry -lC -lc -L/usr/opt/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under aix
  Compiled at Nov 28 2000 23:02:38
  %ENV:
    PERL5LIB="/lair/hecke/apps/lib/perl5/site-lib"
  @INC:
    /lair/hecke/apps/lib/perl5/site-lib
    /usr/opt/lib/perl5/5.6.0/aix
    /usr/opt/lib/perl5/5.6.0
    /usr/opt/lib/perl5/site_perl/5.6.0/aix
    /usr/opt/lib/perl5/site_perl/5.6.0
    /usr/opt/lib/perl5/site_perl
    .


-- 
Hans Ecke                      hans@ecke.ws
Department of Geophysics       http://hans.ecke.ws
Colorado School of Mines       Tel: (USA) 303-273-3733
Golden, Colorado               Fax: (USA) 303-273-3478

The opinions expressed herein are those of absolutely everyone at the
Colorado School of Mines: the dean, management, staff, faculty,
students, their spouses, children, dogs, and cats. In fact, everyone
in Golden also agrees. No, make that Colorado.



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