[squid-users] Segmentation Violation and Signal 6 on FreeBSD4.2

From: Hany <Hany@dont-contact.us>
Date: Tue, 29 May 2001 12:33:29 +0300

hi,

on hi load I get the following message in Cache.log
FATAL: Received Segment Violation...dying.

and the squid sends this message to the monitor
Squid Parent: child process 3914 exited due to signal 6

I have read almost all the mails regarding Seg. Violation on FreeBSD. all of
it saying that its from the compiler with the optimization flag -O2
I fix that but still I get Seg Violation on high load (using Polygraph).
another solution is to take the package from FreeBSD Ports (already
compiled)
but still I get Seg. Violation. I was trying to get it to generate core dump
file but it didn't. checked every thing that is in the FAQ
(shell limit, the current directory, squid.conf options, squid -NCd1)
nothing works.. I asked one of the freeBSD guys I he says if the process
that gets Seg fault is a child process the its the parent responsibility to
generate core dump (is it right?). I tried to raise the debug level in squid
above than 1 but the performance went down and there were no high load on
the machine.

Real Info:

OS: FreeBSD4.2 kernel (generic with the diskd FAQ tuning)

 the kernel tuning

options INCLUDE_CONFIG_FILE
options NMBCLUSTERS=32768
options MSGMNB=16384 # max # of bytes in a queue
options MSGMNI=41 # number of message queue identifiers
options MSGSEG=2049 # number of message segments
options MSGSSZ=64 # size of a message segment
options MSGTQL=512 # max messages in system
options SHMSEG=16 # max shared mem id's per process
options SHMMNI=256 # max shared mem id's per system
options SHMMAX=2097152 # max shared memory segment size (bytes)
options SHMALL=4096 # max amount of shared memory (pages)

squid: squid-2.4.STABLE1 with diskd and three cache hard disk mounted with
noatime ( no softupdate)

df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 4.7G 581M 3.8G 13% /
/dev/da0s1e 4.7G 1001M 3.4G 22% /var
/dev/da1e 16G 8.3G 6.8G 55% /cache/cache1
/dev/da2e 16G 8.3G 6.8G 55% /cache/cache2
/dev/da3e 16G 8.4G 6.7G 56% /cache/cache3
procfs 4.0K 4.0K 0B 100% /proc

squid.conf
coredump_dir /cache/cache1/
cache_effective_user bin bin
cache_mem 32 MB
cache_dir diskd /cache/cache1 9000 16 256 Q1=72 Q2=64
cache_dir diskd /cache/cache2 9000 16 256 Q1=72 Q2=64
cache_dir diskd /cache/cache3 9000 16 256 Q1=72 Q2=64
cache_access_log /dev/null
cache_log /var/log/squid/cache.log
cache_store_log none
memory_pools off

cache.log file

2001/05/29 09:00:05| Starting Squid Cache version 2.4.STABLE1 for
i386-unknown-freebsd4.2...
2001/05/29 09:00:05| Process ID 3914
2001/05/29 09:00:05| With 8232 file descriptors available
2001/05/29 09:00:05| Performing DNS Tests...
2001/05/29 09:00:05| Successful DNS name lookup tests...
2001/05/29 09:00:05| DNS Socket created on FD 4
2001/05/29 09:00:05| Adding nameserver 212.118.133.101 from /etc/resolv.conf
2001/05/29 09:00:05| helperOpenServers: Starting 5 'jesred' processes
2001/05/29 09:00:06| Unlinkd pipe opened on FD 14
2001/05/29 09:00:06| Swap maxSize 27648000 KB, estimated 2126769 objects
2001/05/29 09:00:06| Target number of buckets: 106338
2001/05/29 09:00:06| Using 131072 Store buckets
2001/05/29 09:00:06| Max Mem size: 32768 KB
2001/05/29 09:00:06| Max Swap size: 27648000 KB
2001/05/29 09:00:06| Store logging disabled
2001/05/29 09:00:06| Rebuilding storage in /cache/cache1 (CLEAN)
2001/05/29 09:00:06| Rebuilding storage in /cache/cache2 (CLEAN)
2001/05/29 09:00:06| Rebuilding storage in /cache/cache3 (CLEAN)
2001/05/29 09:00:06| Using Least Load store dir selection
2001/05/29 09:00:06| Set Current Directory to /cache/cache1/
2001/05/29 09:00:06| Loaded Icons.
2001/05/29 09:00:06| Accepting HTTP connections at 0.0.0.0, port 8080, FD
21.
2001/05/29 09:00:06| Accepting SNMP messages on port 3401, FD 23.
2001/05/29 09:00:06| WCCP Disabled.
2001/05/29 09:00:06| Ready to serve requests.
2001/05/29 09:00:06| Store rebuilding is 0.6% complete
2001/05/29 09:00:21| Store rebuilding is 27.8% complete
2001/05/29 09:00:36| Store rebuilding is 54.8% complete
2001/05/29 09:00:51| Store rebuilding is 78.9% complete
2001/05/29 09:01:04| Done reading /cache/cache3 swaplog (695017 entries)
2001/05/29 09:01:05| Done reading /cache/cache1 swaplog (698357 entries)
2001/05/29 09:01:05| Done reading /cache/cache2 swaplog (699337 entries)
2001/05/29 09:01:05| Finished rebuilding storage from disk.
2001/05/29 09:01:05| 2092711 Entries scanned
2001/05/29 09:01:05| 0 Invalid entries.
2001/05/29 09:01:05| 0 With invalid flags.
2001/05/29 09:01:05| 2092711 Objects loaded.
2001/05/29 09:01:05| 0 Objects expired.
2001/05/29 09:01:05| 0 Objects cancelled.
2001/05/29 09:01:05| 0 Duplicate URLs purged.
2001/05/29 09:01:05| 0 Swapfile clashes avoided.
2001/05/29 09:01:05| Took 59.0 seconds (35452.7 objects/sec).
2001/05/29 09:01:05| Beginning Validation Procedure
2001/05/29 09:01:05| 262144 Entries Validated so far.
2001/05/29 09:01:05| 524288 Entries Validated so far.
2001/05/29 09:01:05| 786432 Entries Validated so far.
2001/05/29 09:01:05| 1048576 Entries Validated so far.
2001/05/29 09:01:05| 1310720 Entries Validated so far.
2001/05/29 09:01:05| 1572864 Entries Validated so far.
2001/05/29 09:01:06| 1835008 Entries Validated so far.
2001/05/29 09:01:06| Completed Validation Procedure
2001/05/29 09:01:06| Validated 2092711 Entries
2001/05/29 09:01:06| store_swap_size = 24883077k
2001/05/29 09:01:06| storeLateRelease: released 0 objects
FATAL: Received Segment Violation...dying.
2001/05/29 09:15:56| storeDirWriteCleanLogs: Starting...
2001/05/29 09:15:56| WARNING: Closing open FD 21
2001/05/29 09:15:57| 65536 entries written so far.
2001/05/29 09:15:57| 131072 entries written so far.
2001/05/29 09:15:57| 196608 entries written so far.
2001/05/29 09:15:57| 262144 entries written so far.
2001/05/29 09:15:57| 327680 entries written so far.
2001/05/29 09:15:57| 393216 entries written so far.
2001/05/29 09:15:57| 458752 entries written so far.
2001/05/29 09:15:57| 524288 entries written so far.
2001/05/29 09:15:58| 589824 entries written so far.
2001/05/29 09:15:58| 655360 entries written so far.
2001/05/29 09:15:58| 720896 entries written so far.
2001/05/29 09:15:58| 786432 entries written so far.
2001/05/29 09:15:58| 851968 entries written so far.
2001/05/29 09:15:58| 917504 entries written so far.
2001/05/29 09:15:58| 983040 entries written so far.
2001/05/29 09:15:58| 1048576 entries written so far.
2001/05/29 09:15:59| 1114112 entries written so far.
2001/05/29 09:15:59| 1179648 entries written so far.
2001/05/29 09:16:00| 1245184 entries written so far.
2001/05/29 09:16:00| 1310720 entries written so far.
2001/05/29 09:16:00| 1376256 entries written so far.
2001/05/29 09:16:00| 1441792 entries written so far.
2001/05/29 09:16:00| 1507328 entries written so far.
2001/05/29 09:16:00| 1572864 entries written so far.
2001/05/29 09:16:00| 1638400 entries written so far.
2001/05/29 09:16:00| 1703936 entries written so far.
2001/05/29 09:16:00| 1769472 entries written so far.
2001/05/29 09:16:00| 1835008 entries written so far.
2001/05/29 09:16:01| 1900544 entries written so far.
2001/05/29 09:16:01| 1966080 entries written so far.
2001/05/29 09:16:01| 2031616 entries written so far.
2001/05/29 09:16:01| 2097152 entries written so far.
2001/05/29 09:16:01| Finished. Wrote 2121121 entries.
2001/05/29 09:16:01| Took 4.9 seconds (429720.5 entries/sec).
CPU Usage: 645.784 seconds = 290.381 user + 355.402 sys
Maximum Resident Size: 279656 KB
Page faults with physical i/o: 0
2001/05/29 09:16:05| Starting Squid Cache version 2.4.STABLE1 for
i386-unknown-freebsd4.2...
..... continue

please if you need more information about the problem ask me.

Hany
Received on Tue May 29 2001 - 03:27:16 MDT

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