[QUESTION] Some tests fail on Debian

[QUESTION] Some tests fail on Debian

am 27.01.2011 15:39:31 von Alexander Aparzev

Hi.

I have a problem installing mod_perl. Some tests fail.

Configuration:

- mod_perl 2.0.4
- Linux version 2.6.26-1-amd64 (Debian 2.6.26-13lenny2)
- Apache/2.2.9 (Debian)

Failing tests:

t/modperl/pnotes2.......................NOK 1/12# Failed test 1 in
t/modperl/pnotes2.t at line 25
t/modperl/pnotes2.......................NOK 2/12# Failed test 2 in
t/modperl/pnotes2.t at line 25 fail #2
t/modperl/pnotes2.......................NOK 3/12# Failed test 3 in
t/modperl/pnotes2.t at line 25 fail #3
# Failed test 4 in t/modperl/pnotes2.t at line 25 fail #4
t/modperl/pnotes2.......................NOK 4/12# Failed test 5 in
t/modperl/pnotes2.t at line 25 fail #5
t/modperl/pnotes2.......................NOK 5/12# Failed test 6 in
t/modperl/pnotes2.t at line 25 fail #6
t/modperl/pnotes2.......................NOK 6/12# Failed test 7 in
t/modperl/pnotes2.t at line 25 fail #7
t/modperl/pnotes2.......................NOK 7/12# Failed test 8 in
t/modperl/pnotes2.t at line 25 fail #8
t/modperl/pnotes2.......................NOK 8/12# Failed test 9 in
t/modperl/pnotes2.t at line 25 fail #9
t/modperl/pnotes2.......................NOK 9/12# Failed test 10 in
t/modperl/pnotes2.t at line 25 fail #10
t/modperl/pnotes2.......................NOK 10/12# Failed test 11 in
t/modperl/pnotes2.t at line 25 fail #11
t/modperl/pnotes2.......................NOK 11/12# Failed test 12 in
t/modperl/pnotes2.t at line 25 fail #12
t/modperl/pnotes2.......................FAILED tests 1-12
Failed 12/12 tests, 0.00% okay

t/hooks/cleanup.........................ok 1/2# Failed test 2 in
t/hooks/cleanup.t at line 38
t/hooks/cleanup.........................FAILED test 2
Failed 1/2 tests, 50.00% okay

t/hooks/cleanup2........................ok 1/2# Failed test 2 in
t/hooks/cleanup2.t at line 43
t/hooks/cleanup2........................FAILED test 2
Failed 1/2 tests, 50.00% okay

t/perl/api..............................FAILED test 2
Failed 1/2 tests, 50.00% okay

Thanks in advance for any tips.

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 18:08:53 von Fred Moyer

Can you try the unofficial release candidate here?

http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz

On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev
wrote:
> Hi.
>
> I have a problem installing mod_perl. Some tests fail.
>
> Configuration:
>
> - mod_perl 2.0.4
> - Linux version 2.6.26-1-amd64 (Debian 2.6.26-13lenny2)
> - Apache/2.2.9 (Debian)
>
> Failing tests:
>
> t/modperl/pnotes2.......................NOK 1/12# Failed test 1 in
> t/modperl/pnotes2.t at line 25
> t/modperl/pnotes2.......................NOK 2/12# Failed test 2 in
> t/modperl/pnotes2.t at line 25 fail #2
> t/modperl/pnotes2.......................NOK 3/12# Failed test 3 in
> t/modperl/pnotes2.t at line 25 fail #3
> # Failed test 4 in t/modperl/pnotes2.t at line 25 fail #4
> t/modperl/pnotes2.......................NOK 4/12# Failed test 5 in
> t/modperl/pnotes2.t at line 25 fail #5
> t/modperl/pnotes2.......................NOK 5/12# Failed test 6 in
> t/modperl/pnotes2.t at line 25 fail #6
> t/modperl/pnotes2.......................NOK 6/12# Failed test 7 in
> t/modperl/pnotes2.t at line 25 fail #7
> t/modperl/pnotes2.......................NOK 7/12# Failed test 8 in
> t/modperl/pnotes2.t at line 25 fail #8
> t/modperl/pnotes2.......................NOK 8/12# Failed test 9 in
> t/modperl/pnotes2.t at line 25 fail #9
> t/modperl/pnotes2.......................NOK 9/12# Failed test 10 in
> t/modperl/pnotes2.t at line 25 fail #10
> t/modperl/pnotes2.......................NOK 10/12# Failed test 11 in
> t/modperl/pnotes2.t at line 25 fail #11
> t/modperl/pnotes2.......................NOK 11/12# Failed test 12 in
> t/modperl/pnotes2.t at line 25 fail #12
> t/modperl/pnotes2.......................FAILED tests 1-12
> =A0 =A0 =A0 =A0Failed 12/12 tests, 0.00% okay
>
> t/hooks/cleanup.........................ok 1/2# Failed test 2 in
> t/hooks/cleanup.t at line 38
> t/hooks/cleanup.........................FAILED test 2
> =A0 =A0 =A0 =A0Failed 1/2 tests, 50.00% okay
>
> t/hooks/cleanup2........................ok 1/2# Failed test 2 in
> t/hooks/cleanup2.t at line 43
> t/hooks/cleanup2........................FAILED test 2
> =A0 =A0 =A0 =A0Failed 1/2 tests, 50.00% okay
>
> t/perl/api..............................FAILED test 2
> =A0 =A0 =A0 =A0Failed 1/2 tests, 50.00% okay
>
> Thanks in advance for any tips.
>
>
>

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 20:19:57 von Fred Moyer

On Thu, Jan 27, 2011 at 11:25 AM, Alexander Aparzev
wrote:
> On 27.01.2011 18:08, Fred Moyer wrote:
>>> I have a problem installing mod_perl. Some tests fail.
>
> Thank you for the hint, Fred. Gave it a try. Regrettably, the same result.
> There is nothing unusual in t/logs/error_log either.

Can you run the failing tests with verbose mode and post the results here?

./t/TEST -verbose t/modperl/pnotes2.t

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 20:25:25 von Alexander Aparzev

On 27.01.2011 18:08, Fred Moyer wrote:
> Can you try the unofficial release candidate here?
>
> http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz
>
> On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev
> wrote:
>> Hi.
>>
>> I have a problem installing mod_perl. Some tests fail.

Thank you for the hint, Fred. Gave it a try. Regrettably, the same
result. There is nothing unusual in t/logs/error_log either.

Best regards

Alexander

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 20:44:57 von Alexander Aparzev

On 27.01.2011 20:19, Fred Moyer wrote:
> Can you run the failing tests with verbose mode and post the results here?
>
> ./t/TEST -verbose t/modperl/pnotes2.t

Sure. Did it:

[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/home/justme/sources/mod_perl-2.0.5-rc1/t/TEST -verbose
't/modperl/pnotes2.t'
/usr/sbin/apache2 -d /home/justme/sources/mod_perl-2.0.5-rc1/t -f
/home/justme/sources/mod_perl-2.0.5-rc1/t/conf/httpd.conf -D APACHE2 -D
PERL_USEITH
READS
using Apache/2.2.9 (itk MPM)

waiting 300 seconds for server to start: .[Thu Jan 27 20:31:58 2011]
[info] 6 Apache2:: modules loaded
[Thu Jan 27 20:31:58 2011] [info] 0 APR:: modules loaded
[Thu Jan 27 20:31:58 2011] [info] base server + 29 vhosts ready to run tests
...
waiting 300 seconds for server to start: ok (waited 1 secs)
server localhost:8529 started
server localhost:8530 listening (perlsections)
server localhost:8531 listening (inherit)
server localhost:8532 listening (filter_out_apache)
server localhost:8533 listening (TestModules::proxy)
server localhost:8534 listening (TestUser::rewrite)
server localhost:8535 listening (TestModperl::perl_options2)
server localhost:8536 listening (TestModperl::setupenv)
server localhost:8537 listening (TestModperl::perl_options)
server localhost:8538 listening (TestModperl::merge)
server localhost:8539 listening (TestVhost::config)
server localhost:8540 listening (TestVhost::log)
server localhost:8541 listening (TestProtocol::echo_timeout)
server localhost:8542 listening (TestProtocol::pseudo_http)
server localhost:8543 listening (TestProtocol::echo_block)
server localhost:8544 listening (TestProtocol::echo_bbs)
server localhost:8545 listening (TestProtocol::echo_filter)
server localhost:8546 listening (TestProtocol::echo_bbs2)
server localhost:8547 listening (TestProtocol::echo_nonblock)
server localhost:8548 listening (TestPreConnection::note)
server localhost:8549 listening (TestHooks::init)
server localhost:8550 listening (TestHooks::trans)
server localhost:8551 listening (TestHooks::stacked_handlers2)
server localhost:8552 listening (TestHooks::startup)
server localhost:8553 listening (TestHooks::hookrun)
server localhost:8554 listening (TestFilter::in_str_msg)
server localhost:8555 listening (TestFilter::both_str_con_add)
server localhost:8556 listening (TestFilter::in_bbs_inject_header)
server localhost:8557 listening (TestFilter::in_bbs_msg)
server localhost:8558 listening (TestDirective::perlmodule)
server localhost:8559 listening (TestDirective::perlrequire)
server localhost:8560 listening (TestAPI::add_config)
server localhost:8561 listening (TestDirective::perlloadmodule5)
server localhost:8562 listening (TestDirective::perlloadmodule4)
server localhost:8563 listening (TestDirective::perlloadmodule3)
server localhost:8564 listening (TestDirective::perlloadmodule6)
server localhost:8565 listening (TestHooks::push_handlers_anon)
t/modperl/pnotes2....# connecting to
http://localhost:8529/TestModperl__pnotes2
1..12
# Running under perl version 5.010000 for linux
# Current time local: Thu Jan 27 20:32:00 2011
# Current time GMT: Thu Jan 27 19:32:00 2011
# Using Test.pm version 1.25
# Using Apache/Test.pm version 1.34
# Failed test 1 in t/modperl/pnotes2.t at line 25
# testing : http://localhost:8529/TestModperl__pnotes2?1
# expected: 1
# received: 0
not ok 1
# Failed test 2 in t/modperl/pnotes2.t at line 25 fail #2
# testing : http://localhost:8529/TestModperl__pnotes2?2
# expected: 1
# received: 0
not ok 2
# Failed test 3 in t/modperl/pnotes2.t at line 25 fail #3
# testing : http://localhost:8529/TestModperl__pnotes2?3
# expected: 1
# received: 0
not ok 3
# Failed test 4 in t/modperl/pnotes2.t at line 25 fail #4
# testing : http://localhost:8529/TestModperl__pnotes2?4
# expected: 1
# received: 0
not ok 4
# Failed test 5 in t/modperl/pnotes2.t at line 25 fail #5
# testing : http://localhost:8529/TestModperl__pnotes2?5
# expected: 1
# received: 0
not ok 5
# Failed test 6 in t/modperl/pnotes2.t at line 25 fail #6
# testing : http://localhost:8529/TestModperl__pnotes2?6
# expected: 1
# received: 0
not ok 6
# Failed test 7 in t/modperl/pnotes2.t at line 25 fail #7
# testing : http://localhost:8529/TestModperl__pnotes2?7
# expected: 1
# received: 0
not ok 7
# Failed test 8 in t/modperl/pnotes2.t at line 25 fail #8
# testing : http://localhost:8529/TestModperl__pnotes2?8
# expected: 1
# received: 0
not ok 8
# Failed test 9 in t/modperl/pnotes2.t at line 25 fail #9
# testing : http://localhost:8529/TestModperl__pnotes2?9
# expected: 1
# received: 0
not ok 9
# Failed test 10 in t/modperl/pnotes2.t at line 25 fail #10
# testing : http://localhost:8529/TestModperl__pnotes2?10
# expected: 1
# received: 0
not ok 10
# Failed test 11 in t/modperl/pnotes2.t at line 25 fail #11
# testing : http://localhost:8529/TestModperl__pnotes2?11
# expected: 1
# received: 0
not ok 11
# Failed test 12 in t/modperl/pnotes2.t at line 25 fail #12
# testing : http://localhost:8529/TestModperl__pnotes2?12
# expected: 1
# received: 0
not ok 12
FAILED tests 1-12
Failed 12/12 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
------------------------------------------------------------ -------------------
t/modperl/pnotes2.t 12 12 1-12
Failed 1/1 test scripts. 12/12 subtests failed.
Files=1, Tests=12, 4 wallclock secs ( 0.33 cusr + 0.08 csys = 0.41 CPU)
Failed 1/1 test programs. 12/12 subtests failed.
[warning] server localhost:8529 shutdown
[ error] error running tests (please examine t/logs/error_log)

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 20:55:02 von Fred Moyer

On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev
wrote:
> On 27.01.2011 20:19, Fred Moyer wrote:
>>
>> Can you run the failing tests with verbose mode and post the results her=
e?
>>
>> =A0./t/TEST -verbose t/modperl/pnotes2.t
>
> Sure. Did it:
>
> [warning] setting ulimit to allow core files
> ulimit -c unlimited; /usr/bin/perl
> /home/justme/sources/mod_perl-2.0.5-rc1/t/TEST -verbose
> 't/modperl/pnotes2.t'
> /usr/sbin/apache2 =A0-d /home/justme/sources/mod_perl-2.0.5-rc1/t -f
> /home/justme/sources/mod_perl-2.0.5-rc1/t/conf/httpd.conf -D APACHE2 -D
> PERL_USEITHREADS

I just tested this with perl 5.10.0 using ithreads and they all
passed. Can you paste your output of 'perl -V'


> using Apache/2.2.9 (itk MPM)
>
> waiting 300 seconds for server to start: .[Thu Jan 27 20:31:58 2011] [inf=
o]
> 6 Apache2:: modules loaded
> [Thu Jan 27 20:31:58 2011] [info] 0 APR:: modules loaded
> [Thu Jan 27 20:31:58 2011] [info] base server + 29 vhosts ready to run te=
sts
> ..
> waiting 300 seconds for server to start: ok (waited 1 secs)
> server localhost:8529 started
> server localhost:8530 listening (perlsections)
> server localhost:8531 listening (inherit)
> server localhost:8532 listening (filter_out_apache)
> server localhost:8533 listening (TestModules::proxy)
> server localhost:8534 listening (TestUser::rewrite)
> server localhost:8535 listening (TestModperl::perl_options2)
> server localhost:8536 listening (TestModperl::setupenv)
> server localhost:8537 listening (TestModperl::perl_options)
> server localhost:8538 listening (TestModperl::merge)
> server localhost:8539 listening (TestVhost::config)
> server localhost:8540 listening (TestVhost::log)
> server localhost:8541 listening (TestProtocol::echo_timeout)
> server localhost:8542 listening (TestProtocol::pseudo_http)
> server localhost:8543 listening (TestProtocol::echo_block)
> server localhost:8544 listening (TestProtocol::echo_bbs)
> server localhost:8545 listening (TestProtocol::echo_filter)
> server localhost:8546 listening (TestProtocol::echo_bbs2)
> server localhost:8547 listening (TestProtocol::echo_nonblock)
> server localhost:8548 listening (TestPreConnection::note)
> server localhost:8549 listening (TestHooks::init)
> server localhost:8550 listening (TestHooks::trans)
> server localhost:8551 listening (TestHooks::stacked_handlers2)
> server localhost:8552 listening (TestHooks::startup)
> server localhost:8553 listening (TestHooks::hookrun)
> server localhost:8554 listening (TestFilter::in_str_msg)
> server localhost:8555 listening (TestFilter::both_str_con_add)
> server localhost:8556 listening (TestFilter::in_bbs_inject_header)
> server localhost:8557 listening (TestFilter::in_bbs_msg)
> server localhost:8558 listening (TestDirective::perlmodule)
> server localhost:8559 listening (TestDirective::perlrequire)
> server localhost:8560 listening (TestAPI::add_config)
> server localhost:8561 listening (TestDirective::perlloadmodule5)
> server localhost:8562 listening (TestDirective::perlloadmodule4)
> server localhost:8563 listening (TestDirective::perlloadmodule3)
> server localhost:8564 listening (TestDirective::perlloadmodule6)
> server localhost:8565 listening (TestHooks::push_handlers_anon)
> t/modperl/pnotes2....# connecting to
> http://localhost:8529/TestModperl__pnotes2
> 1..12
> # Running under perl version 5.010000 for linux
> # Current time local: Thu Jan 27 20:32:00 2011
> # Current time GMT: =A0 Thu Jan 27 19:32:00 2011
> # Using Test.pm version 1.25
> # Using Apache/Test.pm version 1.34
> # Failed test 1 in t/modperl/pnotes2.t at line 25
> # testing : http://localhost:8529/TestModperl__pnotes2?1
> # expected: 1
> # received: 0
> not ok 1
> # Failed test 2 in t/modperl/pnotes2.t at line 25 fail #2
> # testing : http://localhost:8529/TestModperl__pnotes2?2
> # expected: 1
> # received: 0
> not ok 2
> # Failed test 3 in t/modperl/pnotes2.t at line 25 fail #3
> # testing : http://localhost:8529/TestModperl__pnotes2?3
> # expected: 1
> # received: 0
> not ok 3
> # Failed test 4 in t/modperl/pnotes2.t at line 25 fail #4
> # testing : http://localhost:8529/TestModperl__pnotes2?4
> # expected: 1
> # received: 0
> not ok 4
> # Failed test 5 in t/modperl/pnotes2.t at line 25 fail #5
> # testing : http://localhost:8529/TestModperl__pnotes2?5
> # expected: 1
> # received: 0
> not ok 5
> # Failed test 6 in t/modperl/pnotes2.t at line 25 fail #6
> # testing : http://localhost:8529/TestModperl__pnotes2?6
> # expected: 1
> # received: 0
> not ok 6
> # Failed test 7 in t/modperl/pnotes2.t at line 25 fail #7
> # testing : http://localhost:8529/TestModperl__pnotes2?7
> # expected: 1
> # received: 0
> not ok 7
> # Failed test 8 in t/modperl/pnotes2.t at line 25 fail #8
> # testing : http://localhost:8529/TestModperl__pnotes2?8
> # expected: 1
> # received: 0
> not ok 8
> # Failed test 9 in t/modperl/pnotes2.t at line 25 fail #9
> # testing : http://localhost:8529/TestModperl__pnotes2?9
> # expected: 1
> # received: 0
> not ok 9
> # Failed test 10 in t/modperl/pnotes2.t at line 25 fail #10
> # testing : http://localhost:8529/TestModperl__pnotes2?10
> # expected: 1
> # received: 0
> not ok 10
> # Failed test 11 in t/modperl/pnotes2.t at line 25 fail #11
> # testing : http://localhost:8529/TestModperl__pnotes2?11
> # expected: 1
> # received: 0
> not ok 11
> # Failed test 12 in t/modperl/pnotes2.t at line 25 fail #12
> # testing : http://localhost:8529/TestModperl__pnotes2?12
> # expected: 1
> # received: 0
> not ok 12
> FAILED tests 1-12
> =A0 =A0 =A0 =A0Failed 12/12 tests, 0.00% okay
> Failed Test =A0 =A0 =A0 =A0 Stat Wstat Total Fail =A0List of Failed
> ------------------------------------------------------------ -------------=
------
> t/modperl/pnotes2.t =A0 =A0 =A0 =A0 =A0 =A0 =A0 12 =A0 12 =A01-12
> Failed 1/1 test scripts. 12/12 subtests failed.
> Files=3D1, Tests=3D12, =A04 wallclock secs ( 0.33 cusr + =A00.08 csys =3D=
=A00.41 CPU)
> Failed 1/1 test programs. 12/12 subtests failed.
> [warning] server localhost:8529 shutdown
> [ =A0error] error running tests (please examine t/logs/error_log)
>

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 21:18:41 von Alexander Aparzev

On 27.01.2011 20:55, Fred Moyer wrote:
> On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev
> wrote:
>> On 27.01.2011 20:19, Fred Moyer wrote:
>>>
>>> Can you run the failing tests with verbose mode and post the results here?
>>>
>>> ./t/TEST -verbose t/modperl/pnotes2.t
>>
>> Sure. Did it:
>>
>> [warning] setting ulimit to allow core files
>> ulimit -c unlimited; /usr/bin/perl
>> /home/justme/sources/mod_perl-2.0.5-rc1/t/TEST -verbose
>> 't/modperl/pnotes2.t'
>> /usr/sbin/apache2 -d /home/justme/sources/mod_perl-2.0.5-rc1/t -f
>> /home/justme/sources/mod_perl-2.0.5-rc1/t/conf/httpd.conf -D APACHE2 -D
>> PERL_USEITHREADS
>
> I just tested this with perl 5.10.0 using ithreads and they all
> passed. Can you paste your output of 'perl -V'
>

You're welcome. Lengthy it is, and ugly-looking. If you consider it
unreadable, I could place it someplace outside, in www.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.30.5-dsa-amd64,
archname=x86_64-linux-gnu-thread-multi
uname='linux brahms 2.6.30.5-dsa-amd64 #1 smp mon aug 17 02:18:43
cest 2009 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
-Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr
-Dprivlib=/usr/share/per
l/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr
-Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5
-Dsiteprefix=/usr/local -Dsitelib=/us
r/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dsiteman1dir=/usr/local/m
an/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio
-Uusenm -DDEB
UGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0
-Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
,
optimize='-O2 -g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.7.so, so=so, useshrplib=true,
libperl=libperl.so.5.10.0
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Aug 28 2009 22:24:50
@INC:
/etc/perl
/usr/local/lib/perl/5.10.0
/usr/local/share/perl/5.10.0
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl

Re: [QUESTION] Some tests fail on Debian

am 27.01.2011 22:17:40 von Fred Moyer

My guess is that your 64 bit setup with ithreads is causing this
error. Does anyone else here have 64 bit they can test with an
ithreads enabled perl?

On Thu, Jan 27, 2011 at 12:18 PM, Alexander Aparzev
wrote:
> On 27.01.2011 20:55, Fred Moyer wrote:
>>
>> On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev
>> =A0wrote:
>>>
>>> On 27.01.2011 20:19, Fred Moyer wrote:
>>>>
>>>> Can you run the failing tests with verbose mode and post the results
>>>> here?
>>>>
>>>> =A0./t/TEST -verbose t/modperl/pnotes2.t
>>>
>>> Sure. Did it:
>>>
>>> [warning] setting ulimit to allow core files
>>> ulimit -c unlimited; /usr/bin/perl
>>> /home/justme/sources/mod_perl-2.0.5-rc1/t/TEST -verbose
>>> 't/modperl/pnotes2.t'
>>> /usr/sbin/apache2 =A0-d /home/justme/sources/mod_perl-2.0.5-rc1/t -f
>>> /home/justme/sources/mod_perl-2.0.5-rc1/t/conf/httpd.conf -D APACHE2 -D
>>> PERL_USEITHREADS
>>
>> I just tested this with perl 5.10.0 using ithreads and they all
>> passed. =A0Can you paste your output of 'perl -V'
>>
>
> You're welcome. Lengthy it is, and ugly-looking. If you consider it
> unreadable, I could place it someplace outside, in www.
>
> Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
> =A0Platform:
> =A0 =A0osname=3Dlinux, osvers=3D2.6.30.5-dsa-amd64,
> archname=3Dx86_64-linux-gnu-thread-multi
> =A0 =A0uname=3D'linux brahms 2.6.30.5-dsa-amd64 #1 smp mon aug 17 02:18:4=
3 cest
> 2009 x86_64 gnulinux '
> =A0 =A0config_args=3D'-Dusethreads -Duselargefiles -Dccflags=3D-DDEBIAN
> -Dcccdlflags=3D-fPIC -Darchname=3Dx86_64-linux-gnu -Dprefix=3D/usr
> -Dprivlib=3D/usr/share/per
> l/5.10 -Darchlib=3D/usr/lib/perl/5.10 -Dvendorprefix=3D/usr
> -Dvendorlib=3D/usr/share/perl5 -Dvendorarch=3D/usr/lib/perl5
> -Dsiteprefix=3D/usr/local -Dsitelib=3D/us
> r/local/share/perl/5.10.0 -Dsitearch=3D/usr/local/lib/perl/5.10.0
> -Dman1dir=3D/usr/share/man/man1 -Dman3dir=3D/usr/share/man/man3
> -Dsiteman1dir=3D/usr/local/m
> an/man1 -Dsiteman3dir=3D/usr/local/man/man3 -Dman1ext=3D1 -Dman3ext=3D3pe=
rl
> -Dpager=3D/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uus=
enm
> -DDEB
> UGGING=3D-g -Doptimize=3D-O2 -Duseshrplib -Dlibperl=3Dlibperl.so.5.10.0 -=
Dd_dosuid
> -des'
> =A0 =A0hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
> =A0 =A0useithreads=3Ddefine, usemultiplicity=3Ddefine
> =A0 =A0useperlio=3Ddefine, d_sfio=3Dundef, uselargefiles=3Ddefine, usesoc=
ks=3Dundef
> =A0 =A0use64bitint=3Ddefine, use64bitall=3Ddefine, uselongdouble=3Dundef
> =A0 =A0usemymalloc=3Dn, bincompat5005=3Dundef
> =A0Compiler:
> =A0 =A0cc=3D'cc', ccflags =3D'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=3D64'
> ,
> =A0 =A0optimize=3D'-O2 -g',
> =A0 =A0cppflags=3D'-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasi=
ng -pipe
> -I/usr/local/include'
> =A0 =A0ccversion=3D'', gccversion=3D'4.3.2', gccosandvers=3D''
> =A0 =A0intsize=3D4, longsize=3D8, ptrsize=3D8, doublesize=3D8, byteorder=
=3D12345678
> =A0 =A0d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdbl=
size=3D16
> =A0 =A0ivtype=3D'long', ivsize=3D8, nvtype=3D'double', nvsize=3D8, Off_t=
=3D'off_t',
> lseeksize=3D8
> =A0 =A0alignbytes=3D8, prototype=3Ddefine
> =A0Linker and Libraries:
> =A0 =A0ld=3D'cc', ldflags =3D' -L/usr/local/lib'
> =A0 =A0libpth=3D/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
> =A0 =A0libs=3D-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
> =A0 =A0perllibs=3D-ldl -lm -lpthread -lc -lcrypt
> =A0 =A0libc=3D/lib/libc-2.7.so, so=3Dso, useshrplib=3Dtrue, libperl=3Dlib=
perl.so.5.10.0
> =A0 =A0gnulibc_version=3D'2.7'
> =A0Dynamic Linking:
> =A0 =A0dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D'=
-Wl,-E'
> =A0 =A0cccdlflags=3D'-fPIC', lddlflags=3D'-shared -O2 -g -L/usr/local/lib=
'
>
>
> Characteristics of this binary (from libperl):
> =A0Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0PERL_IMPLICIT_CONTEXT PERL=
_MALLOC_WRAP USE_64_BIT_ALL
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0USE_64_BIT_INT USE_ITHREAD=
S USE_LARGE_FILES
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0USE_PERLIO USE_REENTRANT_A=
PI
> =A0Built under linux
> =A0Compiled at Aug 28 2009 22:24:50
> =A0@INC:
> =A0 =A0/etc/perl
> =A0 =A0/usr/local/lib/perl/5.10.0
> =A0 =A0/usr/local/share/perl/5.10.0
> =A0 =A0/usr/lib/perl5
> =A0 =A0/usr/share/perl5
> =A0 =A0/usr/lib/perl/5.10
> =A0 =A0/usr/share/perl/5.10
> =A0 =A0/usr/local/lib/site_perl
>

Re: [QUESTION] Some tests fail on Debian

am 28.01.2011 09:46:19 von torsten.foertsch

On Thursday, January 27, 2011 20:44:57 Alexander Aparzev wrote:
> using Apache/2.2.9 (itk MPM)

Just a guess, has anyone ever tested itk-MPM?

However, perhaps it's only a matter of bad timing. pnotes2.t is one of mine=
, I
think. It looks as follows:

for my $i (1..12) {
t_client_log_warn_is_expected();
t_start_error_log_watch;
$u=3D"$url?$i"; $ok=3DGET_BODY $u;
select undef, undef, undef, 0.2; # give it time to write the logfile
ok t_cmp scalar(grep {
/pnotes are destroyed after cleanup passed/;
} t_finish_error_log_watch), 1, $u;
}

You see the 200ms pause? Maybe that's too short for itk.

Try the following:

# clean the log
>t/logs/error_log

# run the test
t/TEST -verbose t/modperl/pnotes2.t

# now check the log and see if it contains 12 lines of 'pnotes are ...'
((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_l=
og | wc -l))) && echo ok

The reason for the test is a bug in a former mp2 version where the refcount=
of
the pnotes hash might become wrong:

$ svn log -r584380 t/response/TestModperl/pnotes2.pm=20
=2D--------------------------------------------------------- --------------
r584380 | gozer | 2007-10-13 08:48:14 +0200 (Sat, 13 Oct 2007) | 8 lines

Don't increase the refcnt of the pnotes HV* twice, we
will leak it.

Submitted-By: Torsten Foertsch
Message-Id: <200710111518.18560.torsten.foertsch@gmx.net>
Reviewed-By: gozer

Torsten Förtsch

=2D-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Re: [QUESTION] Some tests fail on Debian

am 28.01.2011 11:42:46 von Alexander Aparzev

On 28.01.2011 09:46, Torsten Förtsch wrote:

> # run the test
> t/TEST -verbose t/modperl/pnotes2.t
>
> # now check the log and see if it contains 12 lines of 'pnotes are ...'
> ((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_log | wc -l)))&& echo ok

Thank you Torsten. No, it doesn't. I am posting the log nevertheless,
with similar-looking entries removed:

END in modperl_extra.pl, pid=10195
[Fri Jan 28 11:21:31 2011] [notice] Apache/2.2.9 (Debian) world
domination series/2.0 mod_perl/2.0.5-rc1 Perl/v5.10.0 configured --
resuming normal operations
[Fri Jan 28 11:21:31 2011] [info] Server built: Dec 31 2010 20:16:52
[Fri Jan 28 11:21:31 2011] [debug] itk.c(1109): AcceptMutex: sysvsem
(default: sysvsem)
[Fri Jan 28 11:21:32 2011] [info] Child process pid=10203 is exiting
[Fri Jan 28 11:21:32 2011] [info] Child process pid=10203 is exiting -
server push
END in modperl_extra.pl, pid=10203

*** The following warn entry is expected and harmless ***
[Fri Jan 28 11:21:32 2011] [info] Child process pid=10204 is exiting
[Fri Jan 28 11:21:32 2011] [info] Child process pid=10204 is exiting -
server push
END in modperl_extra.pl, pid=10204

.... (Similar log entries removed)

*** The following warn entry is expected and harmless ***
[Fri Jan 28 11:21:35 2011] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 8 children,
there are 0 idle, and 3 total children
[Fri Jan 28 11:21:35 2011] [info] Child process pid=10235 is exiting
[Fri Jan 28 11:21:35 2011] [info] Child process pid=10235 is exiting -
server push
END in modperl_extra.pl, pid=10235

.... (Similar log entries removed)

[Fri Jan 28 11:21:36 2011] [info] removed PID file
/home/justme/sources/mod_perl-2.0.5-rc1/t/logs/httpd.pid (pid=10199)
[Fri Jan 28 11:21:36 2011] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=10199

Re: [QUESTION] Some tests fail on Debian

am 28.01.2011 12:07:13 von torsten.foertsch

On Friday, January 28, 2011 11:42:46 Alexander Aparzev wrote:
> > # now check the log and see if it contains 12 lines of 'pnotes are ...'
> > ((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/err=
or_log
> > | wc -l)))&& echo ok
>=20
> Thank you Torsten. No, it doesn't.

Don't know what the itk-MPM does there. It may be that it just doesn't run =
the=20
cleanup hooks knowing that the process will terminate soon.=20

That also might be a reason for you to ignore the error.

Otherwise, get your preferred debugger and ...
Patches are welcome.

Viele Grüße aus Weimar nach Berlin (richtig),
Torsten Förtsch

=2D-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Re: [QUESTION] Some tests fail on Debian

am 28.01.2011 12:26:28 von Alexander Aparzev

On 28.01.2011 12:07, Torsten Förtsch wrote:
> On Friday, January 28, 2011 11:42:46 Alexander Aparzev wrote:
>>> # now check the log and see if it contains 12 lines of 'pnotes are ...'
>>> ((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_log
>>> | wc -l)))&& echo ok
>>
>> Thank you Torsten. No, it doesn't.
>
> Don't know what the itk-MPM does there. It may be that it just doesn't run the
> cleanup hooks knowing that the process will terminate soon.
>
> That also might be a reason for you to ignore the error.
>
> Otherwise, get your preferred debugger and ...
> Patches are welcome.

Would if I could :(

I am a Java developer and an ad-hoc system administrator. I can write a
Perl script, but I cannot possibly debug mod_perl. Besides, there are
other tests failing - see original message.

I think I would just give "make install" a try. Do you think it would be
safe to assume mod_perl cannot possibly destabilize other sites which do
*not* use mod_perl?

>
> Viele Grüße aus Weimar nach Berlin (richtig),
> Torsten Förtsch

Viele Grüße aus Berlin nach Weimar :)

Alexander