Solved

Squid Failure

Posted on 2006-07-07
7
305 Views
Last Modified: 2013-11-22
I've been running squid in Degbug mode

(squid -NCd1)

And it loads up just fine, runs for about 1-2 days and then crashes. When I first installed it, it had run for atleast a month before ever crashing and now it's almost a daily occasion.

It says this right before it fails :

squid: rfc1035.c:417: rfc1035RRUnpack: Assertion `(*off) <= sz' failed.
Aborted
You have new mail in /var/spool/mail/root
 
I dont know if that helps. I've been looking throught the /var/log/squid directory and i cant find anything relevant to the crashes. Any ideas?

(i'm running CentOS Linux server edition)
0
Comment
Question by:fzondlo
  • 2
7 Comments
 
LVL 1

Expert Comment

by:robbak
ID: 17172371
The first thing to check is /var/log/messages. You have got an error from squid: First, check that it is not simply an out-of-swap-space or filesystem-full condition.
In the first case, make sure you have enough swap space, and use top, ps and systat to find out who is eating up all that space.
In the second case, free up some room.
If there is nothing there, then post back, and we'll come up with another suggestion.
0
 
LVL 1

Expert Comment

by:vbotka
ID: 17400045
There is no such a file rfc1035.c in the squid-2.5.STABLE13.tar.bz2 .
What version of squid do you have?

There is a squid specific log directory on FreeBSD.
root.ace#ll /usr/local/squid/logs/
total 926290
-rw-r-----  1 squid  squid  380561959 Aug 27 20:54 access.log
-rw-r-----  1 squid  squid    9681357 Aug 27 01:42 squid.log
-rw-r--r--  1 squid  squid          4 Aug 27 01:41 squid.pid
-rw-r-----  1 squid  squid  557729474 Aug 27 20:54 store.log

How does your squid/logs directory look like?
Can you find any information about the crash in squid.log?
Does your squid/cache have enough disk space?
Try to delete squid/cache and rebuild it with "squid -z"
0
 
LVL 2

Accepted Solution

by:
Redfeather earned 500 total points
ID: 17489903
Hi,

It's a bug triggered by every numeric IP http://lists.debian.org/debian-security/2005/07/msg00191.html

I suggest updating to a newer squid version

0
 
LVL 2

Expert Comment

by:Redfeather
ID: 17662807
i think i found the solution (it is a bug in the squid software) but hey if someone else has got some suggestions ;-)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now