On Fri, 13 Dec 2002, Stas Bekman wrote:

> Any special reason for calling modperl_init_vhost() after modperl_run() which
> already does that? This is in the 'perldo' command callback.

yes, because a <Perl> section or PerlLoadModule may have already triggered 
modperl_run, in which case modperl_run is a noop.  and yes, the startup 
stuff is ugly, only because of early bootstrap required by <Perl> or 
PerlLoadModule.  if you have ideas on howto fix that, great.

current cvs does not work for me, seems related to this area...


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

% t/TEST      
*** setting ulimit to allow core files
ulimit -c unlimited; t/TEST 
/home/dougm/apache/farm/install/prefork-debug-shared-all-exp/bin/httpd  -d 
/home/dougm/apache/modperl-2.0/t -f /home/dougm/apache/modperl-2.0/t/conf/httpd.conf 
-DAPACHE2 
using Apache/2.1.0-dev (prefork MPM)

waiting for server to start: .Syntax error on line 635 of 
/home/dougm/apache/modperl-2.0/t/conf/httpd.conf:
mod_perl is already running, too late for PerlSwitches
!!! 
server has died with status 255 (t/logs/error_log wasn't created, start the server in 
the debug mode)


2. Used Components and their Configuration:

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX    => /home/dougm/apache/farm/install/prefork-debug-shared-all-exp
  MP_CCOPTS       => -Wall -Werror
  MP_DEBUG        => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1 1
  MP_LIBNAME      => mod_perl
  MP_MAINTAINER   => 1
  MP_OPTIONS_FILE => ../.makepl_args.mod_perl2
  MP_TRACE        => 1
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /home/dougm/apache/farm/install/prefork-debug-shared-all-exp/bin/httpd -V
Server version: Apache/2.1.0-dev
Server built:   Dec 17 2002 11:03:23
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="/home/dougm/apache/farm/install/prefork-debug-shared-all-exp"
 -D 
SUEXEC_BIN="/home/dougm/apache/farm/install/prefork-debug-shared-all-exp/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"


*** /home/dougm/perl/farm/install/perl-5.8.0-debug/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.4.7-10, archname=i686-linux
    uname='linux mako.covalent.net 2.4.7-10 #1 thu sep 6 17:27:27 edt 2001 i686 
unknown '
    config_args='-des -Dcc=gcc -Doptimize=-g 
-Dprefix=/home/dougm/perl/farm/install/perl-5.8.0-debug'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', 
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 -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Built under linux
  Compiled at Sep  6 2002 09:42:32
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /home/dougm/perl/farm/install/perl-5.8.0-debug/lib/5.8.0/i686-linux
    /home/dougm/perl/farm/install/perl-5.8.0-debug/lib/5.8.0
    /home/dougm/perl/farm/install/perl-5.8.0-debug/lib/site_perl/5.8.0/i686-linux
    /home/dougm/perl/farm/install/perl-5.8.0-debug/lib/site_perl/5.8.0
    /home/dougm/perl/farm/install/perl-5.8.0-debug/lib/site_perl
    .


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

  [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Tue Dec 17 19:44:03 2002 GMT.

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

Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to