Re: [squid-users] squid bug

From: Vladimir Ivaschenko <hazard@dont-contact.us>
Date: Wed, 12 Sep 2001 16:12:00 +0300

Ok, my backtrace:

Program received signal SIGABRT, Aborted.
0x400c4d21 in __kill () from /lib/libc.so.6
(gdb) bt
#0 0x400c4d21 in __kill () from /lib/libc.so.6
#1 0x400581f7 in raise (sig=6) at signals.c:65
#2 0x400c60b8 in abort () at ../sysdeps/generic/abort.c:88
#3 0x80940f3 in fatal_dump ()
#4 0x80ab088 in xstrdup ()
#5 0x806c30a in ftpSendReply ()
#6 0x806b5b8 in ftpSendStor ()
#7 0x806b4ee in ftpRestOrList ()
#8 0x806b086 in ftpPasvCallback ()
#9 0x805da08 in commConnectCallback ()
#10 0x805dd28 in commConnectHandle ()
#11 0x805f896 in comm_poll ()
#12 0x807bdfd in main ()
#13 0x400be9cb in __libc_start_main (main=0x807ba74 <main>, argc=3,
    argv=0xbffffb24, init=0x8049ec0 <_init>, fini=0x80ae69c <_fini>,
    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffb1c)
    at ../sysdeps/generic/libc-start.c:92

Squid was built with the following:

%configure \
   --exec_prefix=/usr --bindir=/usr/sbin --libexecdir=/usr/lib/squid \
   --localstatedir=/var --sysconfdir=/etc/squid \
   --enable-poll --enable-snmp --enable-removal-policies="heap,lru" \
   --enable-storeio="aufs,coss,diskd,ufs" \
   --enable-delay-pools --enable-linux-netfilter \
   --enable-htcp --enable-carp --with-pthreads \
   --enable-auth-modules="LDAP,NCSA,PAM,SMB,MSNT"

"Leonardo Rodrigues Magalhães" wrote:

> I really dont know whats a backtrace, so I cant get it and send to you.
>
> My squid 2.4S2 is build from stock sources with NO extra patches
> applied. ./configure is:
>
> ./configure --prefix=/usr --exec-prefix=/usr/bin --bindir=/usr/bin --sbindir
> =/usr/sbin --libexecdir=/usr/bin --sysconfdir=/etc/squid
> --localstatedir=/var/log/squid --enable-icmp --enable-removal-policies="hea
> p,lru" --enable-delay-pools --enable-storeio="ufs,aufs,d
> iskd,coss,null" --enable-async-io=8 --disable-http-violations --enable-err-l
> anguage=Portuguese --enable-snmp --disable-ident-lookups
> --enable-linux-netfilter --enable-underscores --enable-auth-modules="NCSA,S
> MB,multi-domain-NTLM,MSNT"
>
> Machine is RH71 with kernel 2.4.9 ( also compiled from scratch ).
>
> Yes, ACLs allow access from localhost, and this is what I get ( errors are
> using Portuguese error files, but this seems to be the error file
> ERR_FTP_PUT_ERROR ) ...
>
> [root@cobaia squid]# telnet localhost 3128
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> PUT ftp://cgi-lexus:yGDgX9@ftp.mycgiserver.com/WEB-INF/1/2/1/ HTTP/1.1
> Content-type: application/octet-stream
> Content-length: 0
> Pragma: no-cache
>
> HTTP/1.0 500 Internal Server Error
> Server: Squid/2.4.STABLE2
> Mime-Version: 1.0
> Date: Wed, 12 Sep 2001 12:46:53 GMT
> Content-Type: text/html
> Content-Length: 816
> Expires: Wed, 12 Sep 2001 12:46:53 GMT
> X-Squid-Error: ERR_FTP_PUT_ERROR 0
> X-Cache: MISS from cache
> Proxy-Connection: keep-alive
>
> <HTML><HEAD>
> <TITLE>ERROR: Erro no FTP upload </TITLE>
> </HEAD><BODY>
> <H1>ERRO</H1>
> <H2>FTP PUT/erro na carga</H2>
> <HR>
> <P>
> Na tentativa de salvar (PUT) a seguinte URL:
> <A
> HREF="ftp://cgi-lexus@ftp.mycgiserver.com/WEB-INF/1/2/1/">ftp://cgi-lexus@ft
> p.mycgiserver.com/WEB-INF/1/2/1/</A>
> <P>
> O Squid emitiu o seguinte comando FTP:
> <PRE><STRONG>
> PORT MY,EXTERNAL,IP,HERE,9,219
>
> </STRONG></PRE>
> e recebeu esta resposta
> <PRE><STRONG>
> PORT command successful.
> </STRONG></PRE>
> <P>
> Isto significa que:
> <PRE>
> Verifique o caminho (path), permiss&otilde;es, espa&ccedil;o em disco e
> tente novamente.
> </PRE>
> </P>
>
> <br clear="all"><hr noshade size=1>
> <font face="Verdana, Arial" size=-1>
> Gerado as Wed, 12 Sep 2001 12:46:53 GMT por cache
> </font></body></html>
>
> Connection closed by foreign host.
>
> Right after ...
>
> [root@cobaia squid]# ps auwx | grep squid | wc -l
> 12
>
> So, there are 12 squid processes !! Its running with asyncio, so we got
> 'lots' of processes.
>
> Absolutely nothing is logged on cache.log, and I got this on access.log
>
> Wed Sep 12 09:46:53 2001 4952 127.0.0.1 TCP_MISS/500 1131 PUT
> ftp://cgi-lexus@ftp.mycgiserver.com/WEB-INF/1/2/1/ - DIRECT/212.69.162.53 -
>
> Sincerily,
> Leonardo Rodrigues
>
> ----- Original Message -----
> From: "Robert Collins" <robert.collins@itdomain.com.au>
> To: "Vladimir Ivaschenko" <hazard@francoudi.com>
> Cc: "Leonardo Rodrigues Magalhaes" <coelho@persogo.com.br>; "Squid Users"
> <squid-users@squid-cache.org>
> Sent: Wednesday, September 12, 2001 9:39 AM
> Subject: Re: [squid-users] squid bug
>
> > On Wed, 2001-09-12 at 22:35, Vladimir Ivaschenko wrote:
> > > Can you tell me what error you got?
> > >
> > > I can reproduce on all machines I tried. I just checked and
> > > *I CAN* reproduce it on RedHat 7.1 with the default configuration file
> (with
> > > necessary change to acl to allow acess to localhost).
> >
> > Did youy manage to get a backtrace?
> > Are you running stock 2.4Stable2, or do you have some redhat patches
> > applied as well?
> > Rob
> >
> > > You have to copy request contents completely in order to perform the
> crash.
> > > Please also note, that squid reloads after 5-6 seconds, so you have to
> check
> > > if its running immidiately after request. Please also check your logs
> for
> > > errors.
> > >
> > > Leonardo Rodrigues Magalhaes wrote:
> > >
> > > > I ***COULDNT*** reproduce this on 2.4S2 build from sources on RH71
> > > > machine.
> > > >
> > > > Sincerily,
> > > > Leonardo Rodrigues
> > > >
> > > > ----- Original Message -----
> > > > From: "Vladimir Ivaschenko" <hazard@francoudi.com>
> > > > Cc: <squid-users@squid-cache.org>
> > > > Sent: Wednesday, September 12, 2001 5:30 AM
> > > > Subject: [squid-users] squid bug
> > > >
> > > > > Hello All,
> > > > >
> > > > > Can you check out my bugreport at
> > > > > http://www.squid-cache.org/bugs/show_bug.cgi?id=233 ? I filled it a
> few
> > > > > days ago but didn't receive any reply yet. However I can crash all
> my
> > > > > squid servers using it.
> > > > >
> > >
> > > --
> > > Best Regards
> > > Vladimir Ivaschenko
> > > Certified Linux Engineer (RHCE)
> > > Francoudi & Stephanou Ltd - http://www.francoudi.com
> > >
> > >
> > >
> >
> >
> >

--
Best Regards
Vladimir Ivaschenko
Certified Linux Engineer (RHCE)
Francoudi & Stephanou Ltd - http://www.francoudi.com
Received on Wed Sep 12 2001 - 21:28:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:09 MST