You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Ian Holsman <li...@holsman.net> on 2004/02/22 23:23:13 UTC

[mp2] massive failure on OS/X with 2.0.49-dev

Hi.
I tried this with 5.8.3 as well (same box), and got a similiar result.
..now when I tried this with 2.1.0-dev I got a different set of errors.

also.. when I try this on my linux box, it works with ZERO errors.
(so I'm assuming it is something with this boxes configuration)
anybody else with OS/X care to confirm this? 


-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

90% of tests are failing with httpd-2.0.49-dev on darwin 10.3.x

2. Used Components and their Configuration:

*** mod_perl version 1.9913

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS         => /usr/local/apache2/bin/apxs
  MP_COMPAT_1X    => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.49-dev
Server built:   Feb 22 2004 20:29:37
Server's Module Magic Number: 20020903:7
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_POSIXSEM_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="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/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 1 RC3) 
configuration:
  Platform:
    osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
    uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25 
16:58:41 pdt 2003; 
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh 
powerpc '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  
-Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
    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='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN 
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN 
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 
1495)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    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, prototype=define
  Linker and Libraries:
    ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, 
libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup 
-L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        RC3
  Built under darwin
  Compiled at Sep 12 2003 19:50:49
  %ENV:
    PERL5LIB="/sw/lib/perl5:/sw/lib/perl5"
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /sw/lib/perl5
    /sw/lib/perl5
    /System/Library/Perl/5.8.1/darwin-thread-multi-2level
    /System/Library/Perl/5.8.1
    /Library/Perl/5.8.1/darwin-thread-multi-2level
    /Library/Perl/5.8.1
    /Library/Perl
    /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
    /Network/Library/Perl/5.8.1
    /Network/Library/Perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.04
LWP            : 5.75
mod_perl       : 1.26, 1.9910, 1.9911


3. This is the core dump trace: (if you get a core dump):

  no trace.

This report was generated by t/REPORT on Sun Feb 22 22:14:44 2004 GMT.

-------------8<---------- End Bug Report --------------8<----------

start of verbose testoutput.

server localhost:8550 listening (TestDirective::perlloadmodule6)
t/apache/add_config.....................request has failed (the response 
code was: 500)
see t/logs/error_log for more details
dubious
        Test returned status 22 (wstat 5632, 0x1600)
t/apache/cgihandler.....................1..2
# Running under perl version 5.008001 for darwin
# Current time local: Mon Feb 23 09:17:42 2004
# Current time GMT:   Sun Feb 22 22:17:42 2004
# Using Test.pm version 1.24
not ok 1
# Failed test 1 in t/apache/cgihandler.t at line 16
not ok 2
# Failed test 2 in t/apache/cgihandler.t at line 20
FAILED tests 1-2
        Failed 2/2 tests, 0.00% okay
t/apache/conftree.......................request has failed (the response 
code was: 500)
see t/logs/error_log for more details
dubious
        Test returned status 22 (wstat 5632, 0x1600)
t/apache/constants......................1..17


t/log/error_log
[Mon Feb 23 09:17:34 2004] [info] Init: Initializing OpenSSL library
[Mon Feb 23 09:17:34 2004] [info] Init: Seeding PRNG with 0 bytes of 
entropy
[Mon Feb 23 09:17:34 2004] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Mon Feb 23 09:17:35 2004] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Mon Feb 23 09:17:35 2004] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Mon Feb 23 09:17:35 2004] [info] Init: Initializing (virtual) servers 
for SSL
[Mon Feb 23 09:17:35 2004] [info] Server: Apache/2.0.49-dev, Interface: 
mod_ssl/2.0.49-dev, Library: OpenSSL/0.9.7c
END in modperl_extra.pl, pid=6922
Attempt to free unreferenced scalar at 
/System/Library/Perl/5.8.1/Test/Harness.pm line 31.
[Mon Feb 23 09:17:39 2004] [info] Init: Initializing OpenSSL library
[Mon Feb 23 09:17:39 2004] [info] Init: Seeding PRNG with 0 bytes of 
entropy
[Mon Feb 23 09:17:39 2004] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Mon Feb 23 09:17:40 2004] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Mon Feb 23 09:17:40 2004] [info] Init: Initializing (virtual) servers 
for SSL
[Mon Feb 23 09:17:40 2004] [info] Server: Apache/2.0.49-dev, Interface: 
mod_ssl/2.0.49-dev, Library: OpenSSL/0.9.7c
[Mon Feb 23 09:17:40 2004] [notice] Apache/2.0.49-dev (Unix) 
mod_perl/1.99_13-dev Perl/v5.8.1 mod_ssl/2.0.49-dev OpenSSL/0.9.7c config
ured -- resuming normal operations
[Mon Feb 23 09:17:40 2004] [info] Server built: Feb 22 2004 20:29:37
[Mon Feb 23 09:17:40 2004] [debug] prefork.c(1015): AcceptMutex: 
posixsem (default: posixsem)
[Mon Feb 23 09:17:42 2004] [error] server reached MaxClients setting, 
consider raising the MaxClients setting
[Mon Feb 23 09:18:13 2004] [info] Child process pid=6929 is exiting
[Mon Feb 23 09:18:13 2004] [info] Child process pid=6926 is exiting
[Mon Feb 23 09:18:13 2004] [info] removed PID file 
/usr/local/src/modperl-2.0/t/logs/httpd.pid (pid=6924)
[Mon Feb 23 09:18:13 2004] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=6924
Attempt to free unreferenced scalar at 
/System/Library/Perl/5.8.1/Test/Harness.pm line 31.
~

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] massive failure on OS/X with 2.0.49-dev

Posted by Stas Bekman <st...@stason.org>.
Ian Holsman wrote:
> In article <40...@stason.org>, Stas Bekman <st...@stason.org> 
> wrote:
> 
> 
>>>Apache::Request: -
>>>CGI            : 3.04
>>>LWP            : 5.75
>>>mod_perl       : 1.26, 1.9910, 1.9911
>>
>>How come that you have 1.9910 and 1.9911 installed? Did you install once with 
>>MP_INST_APACHE2=1 and once without? But then you also have 1.26 under the 
>>same 
>>tree.
> 
> 
> 5.6.1 is the version of perl which comes shipped with OS/X, and OS/X 
> comes shipped with mod-perl & apache 1.3.x

Yes, the above report is generated by searching @INC. And according to your 
report it's:

     /sw/lib/perl5
     /sw/lib/perl5
     /System/Library/Perl/5.8.1/darwin-thread-multi-2level
     /System/Library/Perl/5.8.1
     /Library/Perl/5.8.1/darwin-thread-multi-2level
     /Library/Perl/5.8.1
     /Library/Perl
     /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
     /Network/Library/Perl/5.8.1
     /Network/Library/Perl

So are there any 5.6.1 things in it? /sw/lib/perl5? 5.6.1 and 5.8.1 are not 
binary compatible. If not, how is it possible that it finds mod_perl in the 
5.6.1 tree?


> I'm guessing I forced a install or didn't clean up after myself properly
> (I hardly use that perl.. I like to get waste my time fixing other 
> peoples bugs in OS's, & server code (probably why I got involved in 
> apache2 many moons ago)

It probably doesn't affect the build since it puts the build libs first in 
@INC. But it can definitely mess up your installed version if you have more 
than one mp2 installed.

> I've added the hostname in /etc/hosts so that it resolves to itself, and 
> am using perl 5.8.3 (which just built & tested ok with this 2.1.0-dev 
> without the hostname change thing)

Try checking out the version before 20040217 as I've suggested.

> same problem.
> gotta laugh tho.. the 'unsupported' version is more stable than the 
> supported one for me.

I'd compare the build options of the two:

httpd -V

> ps.. I'm 95% sure that it is a problem with my setup somehow, so If no 
> one else has the problem it's probably safe to ignore it.


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] massive failure on OS/X with 2.0.49-dev

Posted by Ian Holsman <li...@holsman.net>.
In article <40...@stason.org>, Stas Bekman <st...@stason.org> 
wrote:

> > Apache::Request: -
> > CGI            : 3.04
> > LWP            : 5.75
> > mod_perl       : 1.26, 1.9910, 1.9911
> 
> How come that you have 1.9910 and 1.9911 installed? Did you install once with 
> MP_INST_APACHE2=1 and once without? But then you also have 1.26 under the 
> same 
> tree.

5.6.1 is the version of perl which comes shipped with OS/X, and OS/X 
comes shipped with mod-perl & apache 1.3.x

I'm guessing I forced a install or didn't clean up after myself properly
(I hardly use that perl.. I like to get waste my time fixing other 
peoples bugs in OS's, & server code (probably why I got involved in 
apache2 many moons ago)


I've added the hostname in /etc/hosts so that it resolves to itself, and 
am using perl 5.8.3 (which just built & tested ok with this 2.1.0-dev 
without the hostname change thing)

same problem.
gotta laugh tho.. the 'unsupported' version is more stable than the 
supported one for me.


Regards
Ian.

ps.. I'm 95% sure that it is a problem with my setup somehow, so If no 
one else has the problem it's probably safe to ignore it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] massive failure on OS/X with 2.0.49-dev

Posted by Stas Bekman <st...@stason.org>.
Ian Holsman wrote:
> Hi.
> I tried this with 5.8.3 as well (same box), and got a similiar result.
> ..now when I tried this with 2.1.0-dev I got a different set of errors.

It's quite possible that it won't work with 2.1.0 since it's not officially 
supported at the moment, but Geoff tries to keep up with it when he gets a chance.

> also.. when I try this on my linux box, it works with ZERO errors.
> (so I'm assuming it is something with this boxes configuration)
> anybody else with OS/X care to confirm this? 

Could these two recent changes be the cause?
http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107739532515332&w=2
http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=107706426125503&w=2

Try checking out on some date before 20040217 and try again.

> *** Packages of interest status:
> 
> Apache::Request: -
> CGI            : 3.04
> LWP            : 5.75
> mod_perl       : 1.26, 1.9910, 1.9911

How come that you have 1.9910 and 1.9911 installed? Did you install once with 
MP_INST_APACHE2=1 and once without? But then you also have 1.26 under the same 
tree.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org