Re: ERR_DNS FAIL causes segmentation fault

From: Cord Beermann <cord@dont-contact.us>
Date: Thu, 19 Jun 1997 09:14:07 +0200 (MET DST)

Hallo! Du (Carey Nairn) hast geschrieben:

>just noticed one of our squid caches went down with a seg fault following
>an ERR_DNS FAIL with the following URL:
>
>http://a23456789.a23456789.a23456789.a23456789.a23456789.a23456789.a23456789
>.a23456789.a23456789.a23456789.a23456789.a23456789.a23456789.a23456789.a2345
>6789.a23456789.a23456789.a23456789.a23456789.a23456789.a23456789.a23456789.a
>23456789.a23456789.a23456789.a2345/

ACK. I tried this on our 1.1.9 on Solaris 2.5.1 which ran (until
this) since more than a month without problems. it answered with

FATAL: Received Segment Violation...dying.

>not sure where this url came from, but it reliably crashed the cache on
>further testing.

In the access.log is the destination not logged.

Heres the gdb output:

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for
details.
GDB 4.16 (sparc-sun-solaris2.5),
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `squid -sY'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /usr/lib/nss_nisplus.so.1...done.
Reading symbols from /usr/lib/straddr.so...done.
#0 0xef634340 in _kill ()
(gdb) where
#0 0xef634340 in _kill ()
#1 0xef5fa5e8 in abort ()
#2 0x41d64 in death (sig=11) at tools.c:294
#3 <signal handler called>
#4 ipcache_dnsHandleRead (fd=0, dnsData=0x15d520) at ipcache.c:586
#5 0x1e3d4 in comm_select (sec=7) at comm.c:1042
#6 0x30810 in main (argc=417792, argv=0xefffff1c) at main.c:712

Cord

CC: squid-bugs

-- 
Cord Beermann        http://www.Wunder-Nett.org/~cord/
cord@Wunder-Nett.org IRC: Cord@Wunder-Nett
Received on Thu Jun 19 1997 - 00:26:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:33 MST