Re: [mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-06 Thread Haroon Rafique
On Yesterday at 11:17am, SB=Stas Bekman [EMAIL PROTECTED] wrote:

SB Is it possible that you have an old install and it gets loaded
SB instead? Can you try nuking any preinstalled mod_perl libs?
SB 

Hi Stas,

This will be a long email (I think you're probably used to looking at long 
emails already :-). Thanks for your helpful suggestions and 
wonderful support again.

I have made some progress and here are my findings.

Here's what I did. Based upon your suspicion that the tests were failing 
because of some preinstalled mod_perl libs (true: the system had mod_perl 
1.99_08 installed), I did a local perl install:

1. Installed xstow to make life easier when installing/removing files
2. Installed perl in ~/stow/perl-5.8.0
3. Compiled mod_perl against locally installed perl

Experience with 1.99_09:

In the first batch of test, I had one failure for filter/in_bbs_msg.t. 

-- begin -
filter/in_bbs_msg# connecting to localhost.localdomain:8535
server side has failed (response code: 404),
see t/logs/error_log for more details
dubious
Test returned status 29 (wstat 7424, 0x1d00)
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
-- end   -

Running t/TEST -verbose filter/in_bbs_msg.t, I got the following from 
t/logs/error_log

-- begin -
[Thu Jun 05 10:10:40 2003] [error] [client 127.0.0.1] File does not exist: 
/home/haroon/src/build/mod_perl-1.99_09/t/htdocs/input_filter.html
-- end   -


Experience with 1.99_10-dev (up to date with CVS till yesterday):
=

The first batch of tests passes 100%, so the filter/in_bbs_msg.t from 
1.99_09 is fixed. However, ModPerl-Registry tests fail with:

Failed Test  Stat Wstat Total Fail  Failed  List of Failed
---
redirect.t  22 100.00%  1-2
special_blocks.t   122  16.67%  6 10

Running t/TEST -verbose redirect.t special_blocks.t gave me the 
following output:

-- begin -
/servers/httpd-2.0.44-pl/bin/httpd  -d 
/home/haroon/src/build/modperl-2.0/ModPerl-Registry/t -f 
/home/haroon/src/build/modperl-2.0/ModPerl-Registry/t/conf/httpd.conf 
-DAPACHE2 
using Apache/2.0.44 (prefork MPM)

waiting for server to start: .
waiting for server to start: ok (waited 3 secs)
server localhost.localdomain:8529 started
redirect..1..2
# testing : test redirect: existing target
# expected: ok
# received: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
# htmlhead
# title302 Found/title
# /headbody
# h1Found/h1
# pThe document has moved a 
href=http://localhost.localdomain:8529/registry/basic.pl;here/a./p
# /body/html
not ok 1
# Failed test 1 in redirect.t at line 16
# testing : test redirect: non-existing target
# expected: 404
# received: 302
not ok 2
# Failed test 2 in redirect.t at line 27
FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
special_blocks1..12
# testing : ModPerl::PerlRun is running BEGIN blocks on the first req
# expected: begin ok
# received: begin ok
ok 1
# testing : ModPerl::PerlRun is running BEGIN blocks on the second req
# expected: begin ok
# received: begin ok
ok 2
# testing : ModPerl::PerlRun is running END blocks on the first req
# expected: end ok
# received: end ok
ok 3
# testing : ModPerl::PerlRun is running END blocks on the second req
# expected: end ok
# received: end ok
ok 4
# testing : ModPerl::Registry is running BEGIN blocks on the first req
# expected: begin ok
# received: begin ok
ok 5
# testing : ModPerl::Registry is not running BEGIN blocks on the second 
req
# expected: 
# received: undef
not ok 6
# Failed test 6 in special_blocks.t at line 70
# testing : ModPerl::Registry is running END blocks on the first req
# expected: end ok
# received: end ok
ok 7
# testing : ModPerl::Registry is running END blocks on the second req
# expected: end ok
# received: end ok
ok 8
# testing : ModPerl::RegistryBB is running BEGIN blocks on the first req
# expected: begin ok
# received: begin ok
ok 9
# testing : ModPerl::RegistryBB is not running BEGIN blocks on the second 
req
# expected: 
# received: undef
not ok 10
# Failed test 10 in special_blocks.t at line 70 fail #2
# testing : ModPerl::RegistryBB is running END blocks on the first req
# expected: end ok
# received: end ok
ok 11
# testing : ModPerl::RegistryBB is running END blocks on the second req
# expected: end ok
# received: end ok
ok 12
FAILED tests 6, 10
Failed 2/12 tests, 83.33% okay
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
---
redirect.t  22 100.00%  1-2
special_blocks.t  

Re: [mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-06 Thread Stas Bekman
Haroon Rafique wrote:
On Yesterday at 11:17am, SB=Stas Bekman [EMAIL PROTECTED] wrote:

SB Is it possible that you have an old install and it gets loaded
SB instead? Can you try nuking any preinstalled mod_perl libs?
SB 

Hi Stas,

This will be a long email (I think you're probably used to looking at long 
emails already :-). Thanks for your helpful suggestions and 
wonderful support again.
;)

I have made some progress and here are my findings.

Here's what I did. Based upon your suspicion that the tests were failing 
because of some preinstalled mod_perl libs (true: the system had mod_perl 
1.99_08 installed), I did a local perl install:

1. Installed xstow to make life easier when installing/removing files
2. Installed perl in ~/stow/perl-5.8.0
3. Compiled mod_perl against locally installed perl
Great. So that explains why I had a flash of this problem and then couldn't 
reproduce it. Once the current problems are resolved it'd be nice to track 
that problem. I believe that the cause is a wrong @INC. So if you can keep the 
old setup untouched that would be great.

We are now discussing adding a bootstrap checking on all mod_perl libraries. 
We have too many problem reports just because old libraries kick in.

Experience with 1.99_09:

In the first batch of test, I had one failure for filter/in_bbs_msg.t. 

-- begin -
filter/in_bbs_msg# connecting to localhost.localdomain:8535
server side has failed (response code: 404),
see t/logs/error_log for more details
dubious
Test returned status 29 (wstat 7424, 0x1d00)
*** server localhost.localdomain:8529 shutdown
!!! error running tests (please examine t/logs/error_log)
-- end   -
Running t/TEST -verbose filter/in_bbs_msg.t, I got the following from 
t/logs/error_log

-- begin -
[Thu Jun 05 10:10:40 2003] [error] [client 127.0.0.1] File does not exist: 
/home/haroon/src/build/mod_perl-1.99_09/t/htdocs/input_filter.html
-- end   -
Yup, this one is resolved:

cvs log t/filter/in_bbs_msg.t
...

revision 1.4
date: 2003/05/11 22:59:21;  author: stas;  state: Exp;  lines: +2 -9
- get rid of the http://hostname:port in the GET request, as some lwp's
fail  to remove it from the GET line
- replace manually coded exception handling with GET_BODY_ASSERT macro
PR:
Obtained from:
Submitted by:
Reviewed by:
I tend not to clutter the Changes file with test fixes, since they aren't 
relevant to final users.

So the 1.99_09 thread ends here. Will continue the rest in the other thread.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-04 Thread Haroon Rafique
On Today at 12:03pm, SB=Stas Bekman [EMAIL PROTECTED] wrote:

SB 
SB  In the case of 1.99_09, following happens after running make test
SB  
SB  [Mon Jun 02 15:55:16 2003] [error] Invalid CODE attribute:  
SB  TestFilter::out_init_basic at
SB  /home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm
SB  line 33 BEGIN failed--compilation aborted at
SB  /home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm
SB  line 33. Compilation failed in require at (eval 21) line 3.
SB 
SB I hate when this happens :( I remember seeing this problem at some
SB point, but I wasn't able to reproduce it since then. I have exactly
SB the same perl build as in your report. The only difference is that
SB I've built it with:  -Doptimize='-g'. I'm not sure if it'd make any
SB difference. But can you try building a custom perl using
SB -Doptimize='-g' and all the options that you had:

Hi Stas,

Unfortunately I only have developer access on that machine. Since I don't 
have root access does this mean that first I might have to install perl as 
a regular user in my home directory and then install mod_perl built 
against the locally built perl?

SB 
SB  config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686
SB  -Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc
SB  -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr
SB  -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr
SB  -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid
SB  -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
SB  -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005
SB  -Uversiononly -Dpager=/usr/bin/less -isr'
SB 
SB and give it another try?
SB 
SB Anybody else sees this problem?
SB 

We could wait and see if anyone else has the same problem.

SB Another difference from perl -v is
SB -libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
SB -gnulibc_version='2.2.92'
SB +libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so
SB +gnulibc_version='2.2.5'
SB 
SB but I doubt this has anything to do with it.
SB 

Cheers,
--
Haroon Rafique
[EMAIL PROTECTED]



Re: [mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-04 Thread Stas Bekman
Haroon Rafique wrote:
On Today at 12:03pm, SB=Stas Bekman [EMAIL PROTECTED] wrote:

SB 
SB  In the case of 1.99_09, following happens after running make test
SB  
SB  [Mon Jun 02 15:55:16 2003] [error] Invalid CODE attribute:  
SB  TestFilter::out_init_basic at
SB  /home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm
SB  line 33 BEGIN failed--compilation aborted at
SB  /home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm
SB  line 33. Compilation failed in require at (eval 21) line 3.
SB 
SB I hate when this happens :( I remember seeing this problem at some
SB point, but I wasn't able to reproduce it since then. I have exactly
SB the same perl build as in your report. The only difference is that
SB I've built it with:  -Doptimize='-g'. I'm not sure if it'd make any
SB difference. But can you try building a custom perl using
SB -Doptimize='-g' and all the options that you had:

Hi Stas,

Unfortunately I only have developer access on that machine. Since I don't 
have root access does this mean that first I might have to install perl as 
a regular user in my home directory and then install mod_perl built 
against the locally built perl?
Yes, it should be pretty easy. However I have forgotten that I have a 
system-wise perl-5.8.0 installed which is compliled without debugging and 
seems to have the same build and I don't have this problem with it. In any 
case please give it a try, since I know that I have changed something and the 
problem was gone.

Is it possible that you have an old install and it gets loaded instead? Can 
you try nuking any preinstalled mod_perl libs?

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


[mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-03 Thread Haroon Rafique
system details are posted as cut-and-paste from t/REPORT output at the end 
of the email.

Background:

1. make test passes 100% with 1.99_08
2. make test fails to start the webservers with 1.99_09
3. make test fails to start the webservers with 1.99_10-dev (cvs)

In the case of 1.99_09, following happens after running make test

[Mon Jun 02 15:55:16 2003] [error] Invalid CODE attribute: 
TestFilter::out_init_basic at 
/home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm 
line 33
BEGIN failed--compilation aborted at 
/home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm 
line 33.
Compilation failed in require at (eval 21) line 3.

[Mon Jun 02 15:55:16 2003] [error] Can't load Perl module 
TestFilter::out_init_basic for server localhost.localdomain:8529, 
exiting...

Strangely enough, line 33 in the offending file is a closing curly brace 
for sub init : FilterInitHandler.

Similar error but slightly different filenames/line numbers with 
1.99_10-dev, as follows:

[Mon Jun 02 16:00:07 2003] [error] Invalid CODE attribute: 
TestFilter::in_init_basic at 
/home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm 
line 30
BEGIN failed--compilation aborted at 
/home/haroon/src/build/modperl-2.0/t/filter/TestFilter/in_init_basic.pm 
line 30.
Compilation failed in require at (eval 35) line 3.

[Mon Jun 02 16:00:07 2003] [error] Can't load Perl module 
TestFilter::in_init_basic for server localhost.localdomain:8529, 
exiting...

Similarly, line 30 in the offending file is a closing curly brace for sub 
init : FilterInitHandler.

Used Components and their Configuration:

*** mod_perl version 1.9910

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX   = /servers/httpd-2.0.44-pl
  MP_COMPAT_1X   = 1
  MP_GENERATE_XS = 1
  MP_LIBNAME = mod_perl
  MP_USE_DSO = 1
  MP_USE_STATIC  = 1


*** /servers/httpd-2.0.44-pl/bin/httpd -V
Server version: Apache/2.0.44
Server built:   Feb 18 2003 14:18:08
Server's Module Magic Number: 20020903:0
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/prefork
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/servers/httpd-2.0.44-pl
 -D SUEXEC_BIN=/servers/httpd-2.0.44-pl/bin/suexec
 -D DEFAULT_PIDLOG=logs/httpd.pid
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_LOCKFILE=logs/accept.lock
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf


*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.4.18-11smp, archname=i386-linux-thread-multi
uname='linux daffy.perf.redhat.com 2.4.18-11smp #1 smp thu aug 15 
06:41:59 edt 2002 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red 
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux 
-Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads 
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm 
-Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio 
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less 
-isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing 
-I/usr/include/gdbm'
ccversion='', gccversion='3.2 20020822 (Red Hat Linux Rawhide 3.2-5)', 
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.2.92'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: 

Re: [mp2] make test fails on redhat 8.0 with 1.99_09 and 1.99_10-devsources

2003-06-03 Thread Stas Bekman
Haroon Rafique wrote:
system details are posted as cut-and-paste from t/REPORT output at the end 
of the email.

Background:

1. make test passes 100% with 1.99_08
2. make test fails to start the webservers with 1.99_09
3. make test fails to start the webservers with 1.99_10-dev (cvs)
Right, the new feature was introduced in 1.99_09

In the case of 1.99_09, following happens after running make test

[Mon Jun 02 15:55:16 2003] [error] Invalid CODE attribute: 
TestFilter::out_init_basic at 
/home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm 
line 33
BEGIN failed--compilation aborted at 
/home/haroon/src/build/mod_perl-1.99_09/t/filter/TestFilter/out_init_basic.pm 
line 33.
Compilation failed in require at (eval 21) line 3.
I hate when this happens :( I remember seeing this problem at some point, but 
I wasn't able to reproduce it since then. I have exactly the same perl build 
as in your report. The only difference is that I've built it with: 
-Doptimize='-g'. I'm not sure if it'd make any difference. But can you try 
building a custom perl using -Doptimize='-g' and all the options that you had:

config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red 
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux 
-Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads 
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm 
-Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio 
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less 
-isr'
and give it another try?

Anybody else sees this problem?

Another difference from perl -v is
-libc=/lib/libc-2.2.92.so, so=so, useshrplib=true, libperl=libperl.so
-gnulibc_version='2.2.92'
+libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so
+gnulibc_version='2.2.5'
but I doubt this has anything to do with it.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com