squid problems with "kill -HUP", was Re: ERR_FTP_DISABLED

From: Steve Kotsopoulos <steve@dont-contact.us>
Date: Tue, 23 Sep 1997 21:12:29 -0400

Is anyone using the multiple-ports.patch successfully with 4 or more ports?

I'm not sure if this is related to the other core-dump problems that have
been reported here recently, but my squid cache is getting a SEGV
when accepting the first new connection after getting a sig-HUP.
I am using the multiple-ports.patch, and get core dumps
if I have 4 or more ports configured (no core dumps with 3 ports or less).
With some extra debugging turned on, I see the following:

[sent it a sighup, so it reconfigures]
97/09/23 17:55:32| Accepting ICP connections on FD 19.
97/09/23 17:55:32| ftpInitialize: Initializing...
97/09/23 17:55:32| ftpget -S socket on FD 24
97/09/23 17:55:32| comm_close: FD 24
97/09/23 17:55:32| commCallCloseHandlers: FD 24
97/09/23 17:55:32| Ready to serve requests.

[now I connect to the proxy, and get the following]

97/09/23 17:55:41| comm_select: 1 sockets ready at 875051741
97/09/23 17:55:41| comm_set_fd_lifetime: FD 20 lft 12000
97/09/23 17:55:41| asciiHandleConn: FD 20: accepted, lifetime 875063741
97/09/23 17:55:41| comm_add_close_handler: FD 20, handler=0x17bbc, data=0x1f5200
FATAL: Received Segment Violation...dying.
97/09/23 17:55:41| storeWriteCleanLog: Starting...
97/09/23 17:55:41| comm_set_fd_lifetime: FD 15 lft -1
97/09/23 17:55:41| comm_set_fd_lifetime: FD 10 lft -1
97/09/23 17:55:41| Finished. Wrote 15 lines.
97/09/23 17:55:41| Took 0 seconds ( 15.0 lines/sec).
97/09/23 17:55:41| comm_set_fd_lifetime: FD 11 lft -1
97/09/23 17:55:41| comm_set_fd_lifetime: FD 11 lft -1

And the debugger reports:

empire# gdb bin/squid squid.core
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 (i386-unknown-bsdi3.0), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `squid'.
Program terminated with signal 6, Abort trap.
#0 0x6c761 in kill ()
(gdb) where
#0 0x6c761 in kill ()
#1 0x6c6c4 in abort () at /build/src/titan/bsdos/lib/libc/obj/stdlib/abort.c:60
#2 0x307cb in death (sig=11) at tools.c:305
#3 <signal handler called>
(gdb) quit

I'm currently running squid-1.NOVM.16 under BSD/os 3.0, but I've seen the
same problem with squid-1.1.15 ... in both cases with multiple-ports.patch

Any idea what's going wrong?

--
Steve Kotsopoulos		Research and Development, Firewall Division
steve@tor.securecomputing.com	Secure Computing Canada Ltd.
Received on Tue Sep 23 1997 - 18:16:07 MDT

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