crash with Perlbal-1.41

Cal Henderson calh at yahoo-inc.com
Tue May 30 22:19:26 UTC 2006


hi,

i'm testing out perlbal-1.41 with the following config:

---------------------------------------------------------------
CREATE POOL my_apaches
  POOL my_apaches ADD 127.0.0.1:81

CREATE SERVICE balancer
  SET listen          = 0.0.0.0:80
  SET role            = reverse_proxy
  SET pool            = my_apaches
  SET persist_client  = on
  SET persist_backend = on
  SET verify_backend  = on
  SET buffer_uploads  = on
  SET buffer_uploads_path = /export/home/tmp
ENABLE balancer

---------------------------------------------------------------

it tripped out after about 5 minutes of moderate load with this 
console message:

---------------------------------------------------------------
beginning run
Undef client_ip (Perlbal::ClientProxy=ARRAY(0xa1a5504)) in 
assign_client.  Closing. at 
/home/calh/perlbal/lib/perl5/site_perl/5.8.6/Perlbal/BackendHTTP.pm 
line 179.
Undef client_ip (Perlbal::ClientProxy=ARRAY(0xaefbe58)) in 
assign_client.  Closing. at 
/home/calh/perlbal/lib/perl5/site_perl/5.8.6/Perlbal/BackendHTTP.pm 
line 179.
crash log: Can't use string ("�") as a SCALAR ref while "strict 
refs" in use at 
/home/calh/perlbal/lib/perl5/site_perl/5.8.6/Perlbal/ClientProxy.pm 
line 923.
ending run
---------------------------------------------------------------

the subsequent attempt (still running as of writing this email) is 
giving out periodic error messages about 'Undef client_ip' roughly 
once every 2 minutes / 5000 requests. host is load balanced, with no 
DSR and no NAT'ing.

any ideas?


thanks,

--cal


my perl looks like this:


$ /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=linux, osvers=2.6.9-5.elsmp, 
archname=i686-linux-thread-multi
    uname='linux deadrat4.inktomisearch.com 2.6.9-5.elsmp #1 smp wed 
jan 5 19:30:39 est 2005 i686 i686 i386 gnulinux '
    config_args='-Duselargefiles -de -Dperladmin=prod-eng at yahoo-inc.com 
 -Dusethreads=yes -A 
define:optimize=-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops 
 -pipe -A define:cc=gcc -A define:ld=gcc'
    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  
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -march=pentium3 -fprefetch-loop-arrays -funroll-loops 
 -pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing 
 -pipe -I/usr/local/include'
    ccversion='', gccversion='3.4.3 20041212 (Red Hat 3.4.3-9.EL4)', 
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 -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, 
libperl=libperl.a
    gnulibc_version='2.3.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    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 Jul 29 2005 11:21:08
  @INC:
    /usr/local/lib/perl5/5.8.6/i686-linux-thread-multi
    /usr/local/lib/perl5/5.8.6
    /usr/local/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.8.6
    /usr/local/lib/perl5/site_perl
    .



More information about the perlbal mailing list