You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Volker Kroll <kr...@webgods.de> on 2004/02/11 17:06:39 UTC

my mod_perl Server hangs

Hi.

I have a problem with my response_handler. After some time the system
hangs. I do find in the error_log:

[Tue Feb 10 15:58:43 2004] [error] [client 127.0.0.1] failed to get
bucket brigade: 70014:End of file found

Many thousand times ....

Can someone please give me a hint where to search for a solution?

apache: 2.0.48 with mod_perl 1.99_12
perl: 
 perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.4.9-e.24enterprise,
archname=i686-linux-thread-multi
    uname='linux merkur.ka.livepages.de 2.4.9-e.24enterprise #1 smp tue
may 27 15:59:23 edt 2003 i686 unknown '
    config_args='-des -Dversion=5.8.2 -Dperladmin=kroll@strato-rz.de
-Dcc=gcc -Dinstallprefix=/usr -Dprefix=/usr -Dsiteprefix=/usr
-Dotherlibdirs=/usr/lib/perl5/5.8.2 -Duseshrplib -Dusethreads
-Duseithreads -Dd_dosuid -Dd_semctl_semun -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005
-Uversiononly -Darchname=i686-linux -Dpager=/usr/bin/less -isr'
    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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2
2.96-124.7.2)', 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 -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.2/i686-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Feb  9 2004 02:10:45
  @INC:
    /usr/lib/perl5/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/5.8.2
    /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl/5.6.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/5.8.2/i686-linux-thread-multi
    /usr/lib/perl5/5.8.2

apache config:
ServerRoot "/usr/local/apache-perl"
PidFile /usr/local/apache-perl/logs/httpd.pid
ScoreBoardFile /usr/local/apache-perl/logs/httpd.scoreboard
Timeout 30
KeepAlive Off
MinSpareServers 10
MaxSpareServers 40
StartServers 5
MaxClients         150
MaxRequestsPerChild 20
Listen 127.0.0.1:8000
ExtendedStatus On
LoadModule perl_module modules/mod_perl.so

PerlSetVar StatusOptionsAll On
PerlSetVar StatusDumper On
PerlSetVar StatusPeek On
PerlSetVar StatusLexInfo On
PerlSetVar StatusDeparse On
PerlSetVar StatusDeparseOptions "-p -sC"
PerlSetVar StatusTerse On
PerlSetVar StatusTerseSize On
PerlSetVar StatusTerseSizeMainSummary On
#PerlModule              PIAF 
#PerlModule              PIAF PIAF::Photoalbum 

Alias /PIAF /usr/local/apache-perl/PIAF

<Location /PIAF>
        SetHandler perl-script
        PerlResponseHandler     Apache::PIAF
</Location>
<Location /PIAF/Photoalbum>
        <Limit POST>
                Order allow,deny
                Allow from all
        </Limit>
        SetHandler perl-script
        PerlResponseHandler     PIAF::Photoalbum
</Location>

Apache::PIAF and PIAF::Photoalbum are Modules written by me.

Regards
Volker


-- 
Reporting bugs: 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


Re: my mod_perl Server hangs

Posted by Volker Kroll <kr...@webgods.de>.
On Wed, 2004-02-11 at 19:45, Stas Bekman wrote:
> Volker Kroll wrote:

> > [Tue Feb 10 15:58:43 2004] [error] [client 127.0.0.1] failed to get
> > bucket brigade: 70014:End of file found
> > 
> > Many thousand times ....
> > 
> > Can someone please give me a hint where to search for a solution?
> 
> Not without having a test case that we can reproduce the problem with.
> 
> The report comes from modperl_request_read in 
> src/modules/perl/modperl_io_apache.c.

OK, I looked at it. The error_message seems to come from somewhere else.
And if I looked correctly not from the mod_perl code. Correct?
> 
> This problem is exercised in the test:
> t/filter/TestFilter/in_error.pm

I will have a look.

> In that test a filter dies and thus prevents from the handler to get its data.
> 
> Are you using some filters?

No. I don't. I only use "normal" Response Handlers. But the concept of
Filters is not clear to me right now. 
I will delve a little deeper in the code and the documentation.

Thanks so far.
Volker



-- 
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


Re: my mod_perl Server hangs

Posted by Stas Bekman <st...@stason.org>.
Volker Kroll wrote:
> Hi.
> 
> I have a problem with my response_handler. After some time the system
> hangs. I do find in the error_log:
> 
> [Tue Feb 10 15:58:43 2004] [error] [client 127.0.0.1] failed to get
> bucket brigade: 70014:End of file found
> 
> Many thousand times ....
> 
> Can someone please give me a hint where to search for a solution?

Not without having a test case that we can reproduce the problem with.

The report comes from modperl_request_read in 
src/modules/perl/modperl_io_apache.c.

This problem is exercised in the test:
t/filter/TestFilter/in_error.pm
In that test a filter dies and thus prevents from the handler to get its data.

Are you using some filters?

__________________________________________________________________
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

-- 
Reporting bugs: 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