solution to readdir/opendir mod_perl problem: rebuild!

2002-04-05 Thread Louis Semprini
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

Re: solution to readdir/opendir mod_perl problem: rebuild!

2002-04-05 Thread Stas Bekman
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

Re: readdir()

2001-08-16 Thread Pierre Laplante
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

Re: readdir()

2001-04-26 Thread Lincoln Stein
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

readdir()

2001-04-25 Thread Lincoln Stein
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

Re: readdir()

2001-04-25 Thread Andrew Ho
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

Re: readdir()

2001-04-25 Thread Paul J. Lucas
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

Re: readdir()

2001-04-25 Thread Mathew Hennessy
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

Re: readdir()

2001-04-25 Thread Stas Bekman
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

Strange Problem with opendir / readdir

2001-03-30 Thread Cornelius Kuschnereit
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

Re: Strange Problem with opendir / readdir

2001-03-30 Thread Stas Bekman
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

[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)
Cornelius Kuschnereit wrote: opendir( DIR, $directory ); opendir( DIR, $directory ) or die "Can't read $directory because of $!";

[OT] Re: Strange Problem with opendir / readdir

2001-03-30 Thread Alexander Farber (EED)
Cornelius Kuschnereit wrote: @dirs = readdir( DIR ); foreach $dir (sort @dirs) { next unless -d "directory/$dir"; print "file: $dir\n"; }

Re: Strange Problem with opendir / readdir

2001-03-30 Thread Paul J. Lucas
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

RE: [Mason] Strange Problem with opendir / readdir

2001-03-30 Thread Cornelius Kuschnereit
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

open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
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

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
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

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
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

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
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

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
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,

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
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