The first test it hangs on is t/api/request_rec.  The line of code it
stops on is pretty uncomplicated:
my $mtime = (stat __FILE__)[9]; #line 124

adding the -T under perl doesn't change a thing.  I'm not quite sure
where to remove it for modperl so I haven't tried that.  '

I just realized that the bug report I sent was from the compile the
build without large file support in perl.  

I did recompile apache with large file support sort of.  There's no
configure option to enable it so I added -D_LARGEFILE_SOURCE in the
ccflags.  httpd still doesn't advertise that is supports large files. 
The other thing I notice is that modperl doesn't respect perl's ccflags
(as advertised by perl -V).  It drops the -D_LARGEFILE_SOURCE.  I forced
it in using MP_CCOPTS, but it didn't help.

Let me just clarify things a bit regarding what does and does not work
for make test.

my perl 5.8.2 install with LFS works fine with modperl.  compiles, test
and runs sucessfully.

perl 5.6.2  with LFS hangs in make test.

perl 5.6.2 without LFS finishes make test with errors.

The bug report that I sent earlier was from the  perl 5.6.2 without LFS.

This one is from perl 5.6.2 with LFS.  The apache doesn't advertise LFS
but it was compiled with -D_LARGEFILE_SOURCE:

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

  [DESCRIBE THE PROBLEM HERE]

2. Used Components and their Configuration:

*** mod_perl version 1.9914

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_APXS        => /usr/opt/httpd-2.0.50/bin/apxs
  MP_COMPAT_1X   => 1
  MP_GENERATE_XS => 1
  MP_LIBNAME     => mod_perl
  MP_USE_DSO     => 1
  MP_USE_STATIC  => 1


*** /usr/opt/httpd-2.0.50/bin/httpd -V
Server version: Apache/2.0.50
Server built:   Aug  5 2004 16:06:12
Server's Module Magic Number: 20020903:8
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 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/opt/httpd-2.0.50"
 -D SUEXEC_BIN="/usr/opt/httpd-2.0.50/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/opt/perl-5.6.2/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 2) configuration:
  Platform:
    osname=hpux, osvers=11.11, archname=PA-RISC2.0
    uname='hp-ux cars-l b.11.11 u 9000800 134921527 unlimited-user
license '
    config_args='-Accflags=+Z -Accflags=-DPERL_POLLUTE
-Dprefix=/usr/opt/perl-5.6.2 -Doptimize=-g
-Dloclibpth=/usr/opt/perl-5.6.2/lib /lib /usr/lib /usr/ccs/lib
/usr/opt/libiconv-1.9.1/lib /usr/opt/readline-4.3/lib
/usr/opt/openssl-0.9.7d/lib /usr/opt/ncurses-5.3/lib
/usr/opt/gettext-0.12.1/lib /usr/opt/jpeg.v6b/lib /opt/informix/lib
/usr/opt/zlib-1.1.4/lib /usr/opt/db-4.1.25/lib /usr/opt/expat-1.95.6/lib
/usr/opt/gzip-1.2.4/lib /usr/opt/freetds-0.61/lib
/usr/opt/libpng-1.2.6rc1/lib /usr/opt/bzip2-1.0.2/lib
/usr/opt/gdbm-1.8.3/lib /usr/opt/freetype-2.1.5/lib
/usr/opt/gd-2.0.15/lib /usr/opt/tiff-v3.5.7/lib
-Dlocincpth=/usr/opt/perl-5.6.2/include /include /usr/include
/usr/ccs/include /usr/opt/libiconv-1.9.1/include
/usr/opt/readline-4.3/include /usr/opt/openssl-0.9.7d/include
/usr/opt/ncurses-5.3/include /usr/opt/gettext-0.12.1/include
/usr/opt/jpeg.v6b/include /opt/informix/incl /usr/opt/zlib-1.1.4/include
/usr/opt/db-4.1.25/include /usr/opt/expat-1.95.6/include
/usr/opt/gzip-1.2.4/include /usr/opt/freetds-0.61/include
/usr/opt/libpng-1.2.6rc1/include /usr/opt/bzip2-1.0.2/include
/usr/opt/gdbm-1.8.3/include /usr/opt/freetype-2.1.5/include
/usr/opt/gd-2.0.15/include /usr/opt/tiff-v3.5.7/include
-Dcc=/opt/ansic/bin/cc -Dlibs=-lnsl -lnm -lndbm -lgdbm -ldb -lmalloc
-ldld -lm -lcrypt -lsec -lpthread -lc -lcl -e -Duselargefiles'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='/opt/ansic/bin/cc', ccflags =' -Ae -D_HPUX_SOURCE
-Wl,+vnocompatwarnings +Z -DPERL_POLLUTE -DDEBUGGING
-I/usr/opt/libiconv-1.9.1/include -I/usr/opt/readline-4.3/include
-I/usr/opt/openssl-0.9.7d/include -I/usr/opt/ncurses-5.3/include
-I/usr/opt/gettext-0.12.1/include -I/usr/opt/jpeg.v6b/include
-I/opt/informix/incl -I/usr/opt/zlib-1.1.4/include
-I/usr/opt/db-4.1.25/include -I/usr/opt/expat-1.95.6/include
-I/usr/opt/freetds-0.61/include -I/usr/opt/libpng-1.2.6rc1/include
-I/usr/opt/bzip2-1.0.2/include -I/usr/opt/gdbm-1.8.3/include
-I/usr/opt/freetype-2.1.5/include -I/usr/opt/gd-2.0.15/include
-I/usr/opt/tiff-v3.5.7/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 ',
    optimize='-g',
    cppflags='-Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +Z
-DPERL_POLLUTE -DDEBUGGING -I/usr/opt/libiconv-1.9.1/include
-I/usr/opt/readline-4.3/include -I/usr/opt/openssl-0.9.7d/include
-I/usr/opt/ncurses-5.3/include -I/usr/opt/gettext-0.12.1/include
-I/usr/opt/jpeg.v6b/include -I/opt/informix/incl
-I/usr/opt/zlib-1.1.4/include -I/usr/opt/db-4.1.25/include
-I/usr/opt/expat-1.95.6/include -I/usr/opt/freetds-0.61/include
-I/usr/opt/libpng-1.2.6rc1/include -I/usr/opt/bzip2-1.0.2/include
-I/usr/opt/gdbm-1.8.3/include -I/usr/opt/freetype-2.1.5/include
-I/usr/opt/gd-2.0.15/include -I/usr/opt/tiff-v3.5.7/include'
    ccversion='B.11.11.29484.GP', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld', ldflags =' -L/usr/opt/perl-5.6.2/lib -L/lib
-L/usr/lib -L/usr/ccs/lib -L/usr/opt/libiconv-1.9.1/lib
-L/usr/opt/readline-4.3/lib -L/usr/opt/openssl-0.9.7d/lib
-L/usr/opt/ncurses-5.3/lib -L/usr/opt/gettext-0.12.1/lib
-L/usr/opt/jpeg.v6b/lib -L/opt/informix/lib -L/usr/opt/zlib-1.1.4/lib
-L/usr/opt/db-4.1.25/lib -L/usr/opt/expat-1.95.6/lib
-L/usr/opt/gzip-1.2.4/lib -L/usr/opt/freetds-0.61/lib
-L/usr/opt/libpng-1.2.6rc1/lib -L/usr/opt/bzip2-1.0.2/lib
-L/usr/opt/gdbm-1.8.3/lib -L/usr/opt/freetype-2.1.5/lib
-L/usr/opt/gd-2.0.15/lib -L/usr/opt/tiff-v3.5.7/lib'
    libpth=/usr/opt/perl-5.6.2/lib /lib /usr/lib /usr/ccs/lib
/usr/opt/libiconv-1.9.1/lib /usr/opt/readline-4.3/lib
/usr/opt/openssl-0.9.7d/lib /usr/opt/ncurses-5.3/lib
/usr/opt/gettext-0.12.1/lib /usr/opt/jpeg.v6b/lib /opt/informix/lib
/usr/opt/zlib-1.1.4/lib /usr/opt/db-4.1.25/lib /usr/opt/expat-1.95.6/lib
/usr/opt/gzip-1.2.4/lib /usr/opt/freetds-0.61/lib
/usr/opt/libpng-1.2.6rc1/lib /usr/opt/bzip2-1.0.2/lib
/usr/opt/gdbm-1.8.3/lib /usr/opt/freetype-2.1.5/lib
/usr/opt/gd-2.0.15/lib /usr/opt/tiff-v3.5.7/lib /usr/local/lib
    libs=-lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm -lcrypt -lsec
-lpthread -lc -lcl
    perllibs=-lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lpthread -lc
-lcl
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='+Z', lddlflags='-b +vnocompatwarnings
-L/usr/opt/perl-5.6.2/lib -L/lib -L/usr/lib -L/usr/ccs/lib
-L/usr/opt/libiconv-1.9.1/lib -L/usr/opt/readline-4.3/lib
-L/usr/opt/openssl-0.9.7d/lib -L/usr/opt/ncurses-5.3/lib
-L/usr/opt/gettext-0.12.1/lib -L/usr/opt/jpeg.v6b/lib
-L/opt/informix/lib -L/usr/opt/zlib-1.1.4/lib -L/usr/opt/db-4.1.25/lib
-L/usr/opt/expat-1.95.6/lib -L/usr/opt/gzip-1.2.4/lib
-L/usr/opt/freetds-0.61/lib -L/usr/opt/libpng-1.2.6rc1/lib
-L/usr/opt/bzip2-1.0.2/lib -L/usr/opt/gdbm-1.8.3/lib
-L/usr/opt/freetype-2.1.5/lib -L/usr/opt/gd-2.0.15/lib
-L/usr/opt/tiff-v3.5.7/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Built under hpux
  Compiled at Aug  5 2004 21:01:16
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /usr/opt/perl-5.6.2/lib/5.6.2/PA-RISC2.0
    /usr/opt/perl-5.6.2/lib/5.6.2
    /usr/opt/perl-5.6.2/lib/site_perl/5.6.2/PA-RISC2.0
    /usr/opt/perl-5.6.2/lib/site_perl/5.6.2
    /usr/opt/perl-5.6.2/lib/site_perl
    .

*** Packages of interest status:

Apache::Request: -
CGI            : 2.752
LWP            : -
mod_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 Fri Aug  6 02:23:07 2004 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]

Anything else I should try? Any other useful info I should provide?

And of course the most important question,  is this a fight worth
fighting?  I expect most people are using MP2 with perl 5.8.x.  I
unfortunately have some legacy perl modules with binary components that
have no src (should say the vendor won't release the src ;) ) that will
only work with 5.6.x.  I'm happy to persue this, but I don't want to
waste too much of your time with this unless you see a benefit to the
community.  

---
Will Fulmer
Database Administrator
Northampton Community College
Bethlehem, PA
>>> Stas Bekman <[EMAIL PROTECTED]> 08/05/04 2:02 PM >>>
William Fulmer wrote:
> I was trying to compile Apache/2.0.50 mod_perl/1.99_14 Perl/v5.6.2
under
> HP-UX with HP's ANSI C compiler.  Everything compiled fine, but during
> make test, any test that tried to do a stat on __FILE__ would hang. 
> Running the same type of code under perl worked fine. 

Was it really the same under perl? e.g. mod_perl's test suite runs with 
-T. any difference if you add -T to your perl test/remove -T from 
mod_perl's test suite?

> I had previously
> compiled mod_perl/1.99_14 with perl 5.8.2 and that worked fine.  I had
> some other priorities at work that prevented me from pursuing this, so
I
> am just getting back to it.
> 
> The problem turned out to be related to my perl install, but I don't
> understand why.  The thing that made it work was turning off large
file
> support in my perl 5.6.2 install.  The reason that I don't understand
is
> that my perl 5.8.2 install had large file support enabled and the
> mod_perl tested fine (which is to say test completes with errors
without
> hanging).  I'm not even sure whether this is a problem with perl 5.6.2
> or mod_perl.  Any insight on this?

I don't know. It's possible. I've checked your previous Apache config 
report and it doesn't seem to have LFS-support enabled. So may be that 
was the problem? Perl had it, but not Apache? Can you send a new report 
to see the up-to-date config?
http://perl.apache.org/docs/2.0/user/help/help.html#Important_Information

-- 
__________________________________________________________________
Stas Bekman            JAm_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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to