[squid-users] Squid constantly restarting...

From: Schuster, Dan <Dan.Schuster@dont-contact.us>
Date: Wed, 20 Nov 2002 17:20:29 -0600

> Our squid process is constantly receiving a signal 6 and terminates and
> then restarts. It is always preceded with a FATAL:
>
> Nov 20 16:54:48 emerson (squid): bad return value from commDeferRead(FD
> 63)
> Nov 20 16:54:48 emerson squid[2784]: Squid Parent: child process 2974
> exited due to signal 6
> Nov 20 16:54:51 emerson squid[2784]: Squid Parent: child process 2978
> started
>
> This happens with both 2.5S1 and 2.4S7 on the linux 2.4 kernel. I have
> also compiled squid with gcc2.96 and gcc3 based on responses that it could
> be a compilation problem. I am running out of things to try, does anybody
> have any ideas on how to stop this from happening?
>
> There are two places in comm_select.c that this error could happen and it
> is always the one on line 365 that is triggered. I am not sure how this
> value could be getting set to something invalid though.
> /* Check each open socket for a handler. */
> if (fd_table[i].read_handler) {
> switch (commDeferRead(i)) {
> case 0:
> events |= POLLRDNORM;
> break;
> case 1:
> break;
> default:
> fatalf("365:bad return value from commDeferRead(FD
> %d)\n", i);
> }
>
> Again, I appreciate any help you can give me and I am also going to
> include output from doing a squid -k debug.
> -Dan
>
> 002/11/20 13:45:26| storeDirWriteCleanLogs: Starting...
> 2002/11/20 13:45:26| file_open: FD 11
> 2002/11/20 13:45:26| WARNING: Closing open FD 11
> 2002/11/20 13:45:26| fd_close FD 11 HTTP Socket
> 2002/11/20 13:45:26| fd_open FD 11 /squid/swap.log.00.clean
> 2002/11/20 13:45:26| storeDirWriteCleanLogs: opened
> /squid/swap.log.00.clean, FD 11
> 2002/11/20 13:45:26| cbdataFree: 0x8884e48
> 2002/11/20 13:45:26| cbdataFree: Freeing 0x8884e48
> 2002/11/20 13:45:26| file_close: FD 8, really closing
> 2002/11/20 13:45:26| fd_close FD 8 /squid/swap.log.00
> 2002/11/20 13:45:26| Cache Dir #0 log closed on FD 8
> 2002/11/20 13:45:26| xrename: renaming /squid/swap.log.00.clean to
> /squid/swap.log.00
> 2002/11/20 13:45:26| file_open: FD 8
> 2002/11/20 13:45:26| fd_open FD 8 /squid/swap.log.00.last-clean
> 2002/11/20 13:45:26| file_close: FD 8, really closing
> 2002/11/20 13:45:26| fd_close FD 8 /squid/swap.log.00.last-clean
> 2002/11/20 13:45:26| file_close: FD 11, really closing
> 2002/11/20 13:45:26| fd_close FD 11 /squid/swap.log.00.clean
> 2002/11/20 13:45:26| Finished. Wrote 34056 entries.
> 2002/11/20 13:45:26| Took 0.0 seconds (911099.8 entries/sec).
> FATAL: bad return value from commDeferRead(FD 112)
>
>
Received on Thu Nov 21 2002 - 09:42:12 MST

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