You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/04/25 04:47:27 UTC

Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

On 25 Apr 2001 dougm@apache.org wrote:

> dougm       01/04/24 19:02:20
>
>   Modified:    Apache-Test/lib/Apache TestConfigPerl.pm
>                t/filter/TestFilter input_msg.pm
>   Log:
>   seems that Perls < bleedperl leak __DATA__ filehandles
>   this causes a core dump if a .pm containing __DATA__ is loaded at startup
>   bandaid by using __END__ instead

5.6.1 doesn't dump a core with this patch :) and make test starts
normally.

Now I get:

filter/input_msg....malformed response at
/home/stas/apache.org/modperl-2.0/blib/lib/Apache/TestRequest.pm line 191.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



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


Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 25 Apr 2001, Stas Bekman wrote:
 
> I did (cvs up'ped both trees!), something doesn't get cleaned up. I didn't
> use 'make clean'. Will make sure to use 'make clean' from now on.

yeah, i always run 'make testclean && ./buildconf' after cvs up httpd-2.0

> I did yet another 'cvs up' to get your last commit:
> 
> All tests successful.
> Files=26, Tests=145, 13 wallclock secs (11.42 cusr +  0.94 csys = 12.36
> CPU)

cool!
 
> Doug can go to sleep peacefully now :)

zzzzzzzz.....


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


Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

Posted by Stas Bekman <st...@stason.org>.
On Tue, 24 Apr 2001, Doug MacEachern wrote:

> > [Wed Apr 25 11:43:13 2001] [notice] child pid 19955 exit signal
> > Segmentation fault (11)
> >
> > => no core file
>
> you can always do this:
> % t/TEST -debug
>
> in another shell:
> % t/TEST -run
>
> then the -debug shell will have a (gdb) prompt, type 'where' for
> stacktrace.

good to know :)

> > Server built:   Apr 18 2001 17:03:17
>
> you need to update your httpd-2.0 tree and re-install.
> i'm surprised you were able to compile.

I did (cvs up'ped both trees!), something doesn't get cleaned up. I didn't
use 'make clean'. Will make sure to use 'make clean' from now on.

I did yet another 'cvs up' to get your last commit:

All tests successful.
Files=26, Tests=145, 13 wallclock secs (11.42 cusr +  0.94 csys = 12.36
CPU)

Doug can go to sleep peacefully now :)

Thanks!

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




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


Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

Posted by Doug MacEachern <do...@covalent.net>.
> [Wed Apr 25 11:43:13 2001] [notice] child pid 19955 exit signal
> Segmentation fault (11)
>
> => no core file

you can always do this:
% t/TEST -debug

in another shell:
% t/TEST -run

then the -debug shell will have a (gdb) prompt, type 'where' for
stacktrace.
 
> Server built:   Apr 18 2001 17:03:17

you need to update your httpd-2.0 tree and re-install.
i'm surprised you were able to compile.


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


Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

Posted by Stas Bekman <st...@stason.org>.
On Tue, 24 Apr 2001, Doug MacEachern wrote:

> On Wed, 25 Apr 2001, Stas Bekman wrote:
>
> > 5.6.1 doesn't dump a core with this patch :) and make test starts
> > normally.
>
> cool.
>
> > Now I get:
> >
> > filter/input_msg....malformed response at
> > /home/stas/apache.org/modperl-2.0/blib/lib/Apache/TestRequest.pm line 191.
>
> and t/logs/error_log says what?  btw, error_log will have less noise if
> you:
> % (cd src/modules/perl && cvs up && make) && make test

done that:

t/logs/error_log
[Wed Apr 25 11:43:01 2001] [notice] Apache/2.0.18-dev (Unix)
mod_perl/1.99_01-dev Perl/v5.6.1 configured -- resuming normal operations
[Wed Apr 25 11:43:01 2001] [info] Server built: Apr 18 2001 17:03:17
[Wed Apr 25 11:43:03 2001] [error] [client 127.0.0.1] File does not exist:
/index.html
[Wed Apr 25 11:43:03 2001] [error] server reached MaxClients setting,
consider raising the MaxClients setting
[Wed Apr 25 11:43:08 2001] [error] [client 127.0.0.1] access to
/TestHooks::authz failed, reason: user jobbob not allowed access
[Wed Apr 25 11:43:09 2001] [error] [client 127.0.0.1] File does not exist:
/nope
[Wed Apr 25 11:43:13 2001] [notice] child pid 19955 exit signal
Segmentation fault (11)

=> no core file

[Wed Apr 25 11:43:18 2001] [warn] child process 19994 still did not exit,
sending a SIGTERM
[Wed Apr 25 11:43:19 2001] [warn] child process 19994 still did not exit,
sending a SIGTERM
[Wed Apr 25 11:43:23 2001] [warn] child process 19994 still did not exit,
sending a SIGTERM


> if error_log says nothing useful, lemme see your perl util/config.pl
> and i will try to duplicate

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
    MP_APXS              => /home/stas/httpd-2.0/bin/apxs
    MP_CCOPTS            => -DMP_IOBUFSIZE=16384
    MP_DEBUG             => 1
    MP_GENERATE_XS       => 1
    MP_LIBNAME           => libmodperl
    MP_TRACE             => 1
    MP_USE_DSO           => 1


*** /home/stas/httpd-2.0/bin/httpd -V
Server version: Apache/2.0.18-dev
Server built:   Apr 18 2001 17:03:17
Server's Module Magic Number: 20010224:1
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/threaded"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_FCNTL_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/stas/httpd-2.0"
 -D SUEXEC_BIN="/home/stas/httpd-2.0/sbin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


*** /home/stas/perl-5.6.1/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.2.17-21mdk, archname=i686-linux-thread-multi
    uname='linux stas.extropia.com 2.2.17-21mdk #1 thu oct 5 13:16:08 cest 2000 i686 unknown '
    config_args='-des -Dprefix=/home/stas/perl-5.6.1 -Dusethreads -Doptimize=-g -Duseshrplib'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='2.95.3 19991030 (prerelease)', 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, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
  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 MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Apr 18 2001 16:34:01
  @INC:
    /home/stas/perl-5.6.1/lib/5.6.1/i686-linux-thread-multi
    /home/stas/perl-5.6.1/lib/5.6.1
    /home/stas/perl-5.6.1/lib/site_perl/5.6.1/i686-linux-thread-multi
    /home/stas/perl-5.6.1/lib/site_perl/5.6.1
    /home/stas/perl-5.6.1/lib/site_perl
    .

I've got all confused with the version of cvs I have on my PC and
notebook, so I've cvs up in httpd-2.0 and mod_perl, and got a new
situation:

waiting for server to warm up......ok
server localhost:8529 started (pid=4690)
server localhost:8530 listening (TestProtocol::echo)
server localhost:8531 listening (TestFilter::input_msg)
malformed response at Apache-Test/lib/Apache/TestRequest.pm line 191.
still waiting for server to warm up...malformed response at
Apache-Test/lib/Apache/TestRequest.pm line 191.
Use of uninitialized value in numeric ge (>=) at
Apache-Test/lib/Apache/TestServer.pm line 302.
make: *** [run_tests] Error 9

Also if this happens, the server won't stop on exit. I had to kill it
manually.

here is t/logs/error_log
[Wed Apr 25 12:07:14 2001] [notice] Apache/2.0.18-dev (Unix)
mod_perl/1.99_01-dev Perl/v5.6.1 configured -- resuming normal operations
[Wed Apr 25 12:07:14 2001] [info] Server built: Apr 18 2001 17:03:17
[Wed Apr 25 12:07:17 2001] [error] server reached MaxClients setting,
consider raising the MaxClients setting
[Wed Apr 25 12:07:17 2001] [notice] child pid 4692 exit signal
Segmentation fault (11)
[Wed Apr 25 12:07:19 2001] [notice] child pid 4695 exit signal
Segmentation fault (11)

no core file...

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



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


Re: cvs commit: modperl-2.0/t/filter/TestFilter input_msg.pm

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 25 Apr 2001, Stas Bekman wrote:
 
> 5.6.1 doesn't dump a core with this patch :) and make test starts
> normally.

cool.
 
> Now I get:
> 
> filter/input_msg....malformed response at
> /home/stas/apache.org/modperl-2.0/blib/lib/Apache/TestRequest.pm line 191.

and t/logs/error_log says what?  btw, error_log will have less noise if
you:
% (cd src/modules/perl && cvs up && make) && make test

if error_log says nothing useful, lemme see your perl util/config.pl
and i will try to duplicate



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