We upgraded our systems to RedHat 7.2 with glibc2.2.4
and all of a sudden, our mod_perl scripts which call
readdir() would either fail with an exception, or
readdir() in list context would return the correct # of
items but each item as an empty string.
We scanned the modperl list and found
Louis Semprini wrote:
We upgraded our systems to RedHat 7.2 with glibc2.2.4
and all of a sudden, our mod_perl scripts which call
readdir() would either fail with an exception, or
readdir() in list context would return the correct # of
items but each item as an empty string.
We scanned
This feature is present when compiling under rh 7.1. With rh 6.2 there
is no problem. This seems to be related as you have said to the glibc
version. I compiled on rh 6.2 and move the httpd binary on rh 7.1 and
there was no problem with readdir anymore.
On Thu, 26 Apr 2001, Lincoln
Stein wrote
Thanks everyone. I'll try backgrading to glibc 2.1. Does anyone know
if the problem is still present in Perl 5.6.1?
Lincoln
Andrew Ho writes:
Hello,
LSPerl 5.6.0 breaks the readdir() function when running under mod_perl.
LSThis is with the most recent versions of Apache and mod_perl
Hi Doug,
Perl 5.6.0 breaks the readdir() function when running under mod_perl.
This is with the most recent versions of Apache and mod_perl, as well
as with older versions. I see the same problem reported in the
mailing list going back to December 2000, but no hint of a
resolution
Hello,
LSPerl 5.6.0 breaks the readdir() function when running under mod_perl.
LSThis is with the most recent versions of Apache and mod_perl, as well
LSas with older versions. I see the same problem reported in the
LSmailing list going back to December 2000, but no hint of a
LSresolution
On Wed, 25 Apr 2001, Andrew Ho wrote:
LSPerl 5.6.0 breaks the readdir() function when running under mod_perl.
LSThis is with the most recent versions of Apache and mod_perl, as well
LSas with older versions. I see the same problem reported in the
LSmailing list going back to December 2000
Hi,
I'm also experiencing issues using readdir() under mod_perl
v1.25/apache 1.3.19 on a perl 5.6.1 system freshly compiled in RH7.1 +
gcc 2.96/glibc 2.2. I _can_ get correct behavior when running readdir()
in perl -e on the command line, but when run thru mod_perl/apache it
returns
On Thu, 26 Apr 2001, Mathew Hennessy wrote:
Hi,
I'm also experiencing issues using readdir() under mod_perl
v1.25/apache 1.3.19 on a perl 5.6.1 system freshly compiled in RH7.1 +
gcc 2.96/glibc 2.2. I _can_ get correct behavior when running readdir()
in perl -e on the command line
Hi!
I have strange problems while using opendir / readdir
under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache
and not a Mason Bug.
I have no problem to run the same directly from the shell.
Is there a known bug?
Kind regards
Cornelius Kuschnereit
Environement:
Apache
On Fri, 30 Mar 2001, Cornelius Kuschnereit wrote:
Hi!
I have strange problems while using opendir / readdir
under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache
and not a Mason Bug.
I have no problem to run the same directly from the shell.
Is there a known bug
Cornelius Kuschnereit wrote:
opendir( DIR, $directory );
opendir( DIR, $directory ) or die "Can't read $directory because of $!";
Cornelius Kuschnereit wrote:
@dirs = readdir( DIR );
foreach $dir (sort @dirs) {
next unless -d "directory/$dir";
print "file: $dir\n";
}
On Fri, 30 Mar 2001, Cornelius Kuschnereit wrote:
I have strange problems while using opendir / readdir
under MasonHQ. I'm not shure, but it seems to be a perl / modperl / Apache
and not a Mason Bug.
I have no problem to run the same directly from the shell.
Is there a known bug
Yes!
I can see all Files and Dirs without . and ..
Can this be a hint why readdir dosn't work?
Thanx! Cornelius
--
the (right) result:
--
Test -x BR
1 file:"/usr/local/apache/bin" length o
ject: open/opendir/readdir fail under latest perl/mod_perl/apache.
Date: Mon, 11 Dec 2000 13:17:59 -0500
From: Damian M Gryski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
I've been trying to use opendir/readdir under mod_perl 1.24 with
apache 1.2.14 under Debian GNU/Linux. The system is an
On Mon, 11 Dec 2000, Richard Dice wrote:
Everyone:
Here's something that myself and my sysadmin guy have been working on
for a bit: opendir appears to be broken for us on a new Apache/mod_perl
installation.
Rich, please send in the relevant parts of the strace output, or may be
you will
Have you looked at the permissions and verified that the uid of the user
running apache has permissions to list the contents of the directory?
It's a good suggestion, but we've been all up and down this one over
here. (For instance, if it didn't have perms, then the opendir/readdir
commands
have perms, then the opendir/readdir
commands would fail -- they're not failing, they're just giving garbage
output.)
yup :)
Damian and I are now going through strace, per Stas' suggestion.
That didn't seem to yield any useful info, but we'll bring it to the
list eventually.
We're now
It shouldn't be gigabytes -- you want to strace only special events like
open and read, and you want to attach to the process only before running
the script (run under -X) -- so you should have just a few lines!!!
% strace -p PID -e trace=open,read
I was talking about ltrace, not strace,
On Mon, 11 Dec 2000, Richard Dice wrote:
It shouldn't be gigabytes -- you want to strace only special events like
open and read, and you want to attach to the process only before running
the script (run under -X) -- so you should have just a few lines!!!
% strace -p PID -e
21 matches
Mail list logo