Re: [squid-users] Squid Keep Crashing in FreeBSD 4.3

From: Lim Seng Chor <Lim.Seng.Chor@dont-contact.us>
Date: Wed, 23 May 2001 18:10:35 +0800

I believe this is the problem experienced by most of the FreeBSD
squid users.
Well, the GCC shipped with the FreeBSD is broken. Do not use
the compiler optimization for the squid compilation. This will cause
to the segmentation fault/memory violations problem.
Try either ways at the following:
(1)
cd /path/to/squid/src/squid-2.4
make distclean
env CFLAGS=-O ./configure
make
make install

(2) go and modify your squid 'configure' script
# Remove optimization for GCC 2.95.[12]
# gcc -O[2] on *BSD and Linux (x86) causes pointers to magically
become NULL
if test "$GCC" = "yes"; then
        GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
        case "$GCCVER" in
        2.95.[12])
                echo "Removing -O for gcc on $host with GCC
$GCCVER"
                CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
                ;;
        esac
fi

change the line:
        2.95.[12])
to
        2.95.[123])

Hope this would help.

On 23 May 2001, at 18:36, Seung Yoo wrote:

> Hi, everybody, I recently upgrade FreeBSD4.2 to FreeBSD4.3, but the
> squid keeps restarts and eventually dies. I use the squid as a
> http_accelerator and have the computer setting as the following.
> Thanks.
>
> Ryu
>
> CPU: 1G
> RAM: 512M
> BX board
>
> squid-2.3.STABLE4 - port 80
> apache-1.3.19 - port 81
> mysql 3.23.36
> php 4.0.3.p1
> FreeBSD 4.3
>
> the crash messages:
>
> FATAL: Received Segment Violation...dying.
> 2001/05/21 14:17:34| storeDirWriteCleanLogs: Starting...
> 2001/05/21 14:17:34| WARNING: Closing open FD 8
> 2001/05/21 14:17:34| Finished. Wrote 4225 entries.
> 2001/05/21 14:17:34| Took 0.0 seconds (696964.7 entries/sec).
> CPU Usage: 11.134 seconds = 6.747 user + 4.387 sys
> Maximum Resident Size: 18668 KB
> Page faults with physical i/o: 0
> 2001/05/21 14:17:37| Starting Squid Cache version 2.3.STABLE4 for
> i386-unknown-freebsd4.3...
Received on Wed May 23 2001 - 03:57:21 MDT

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