[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: FATAL: Received Segment Violation : Squid Crashed
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: FATAL: Received Segment Violation : Squid Crashed  (Read 1038 times)
0 Members and 1 Guest are viewing this topic.
Silverado
New Member

Offline Offline

Posts: 2


View Profile
« on: July 12, 2004, 06:20:33 AM »

Hello,

Im a linux newbie.. i faced a crash in squid2.4STABLE7 while adding ACLs by using webmin,actually what was there in the ACL is an empty DENY at the end of the ACLs,which i thought its something like EOF ,... after applying settings i got an error in that line,i managed to restore the squid.conf but no use! , squid keeps dying after starting

From cache.log:


Code:
2004/07/08 18:46:40| Starting Squid Cache version 2.4.STABLE7 for i686-pc-linux-gnu...
2004/07/08 18:46:40| Process ID 1035
2004/07/08 18:46:40| With 1024 file descriptors available
2004/07/08 18:46:40| DNS Socket created on FD 4
2004/07/08 18:46:40| Adding nameserver 10.10.10.12 from /etc/resolv.conf
2004/07/08 18:46:40| logfileOpen: /var/log/squid: (21) Is a directory
2004/07/08 18:46:40| Unlinkd pipe opened on FD 8
2004/07/08 18:46:40| Swap maxSize 18058240 KB, estimated 1389095 objects
2004/07/08 18:46:40| Target number of buckets: 69454
2004/07/08 18:46:40| Using 131072 Store buckets
2004/07/08 18:46:40| Max Mem  size: 8192 KB
2004/07/08 18:46:40| Max Swap size: 18058240 KB
2004/07/08 18:46:40| Rebuilding storage in /var/spool/squid (DIRTY)
2004/07/08 18:46:40| Using Least Load store dir selection
2004/07/08 18:46:40| Set Current Directory to /var/spool/squid
2004/07/08 18:46:40| Loaded Icons.
2004/07/08 18:46:40| Accepting HTTP connections at 0.0.0.0, port 8080, FD 10.
2004/07/08 18:46:40| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2004/07/08 18:46:40| WCCP Disabled.
2004/07/08 18:46:40| Ready to serve requests.
2004/07/08 18:46:40| Store rebuilding is  0.3% complete
FATAL: Received Segment Violation...dying.
2004/07/08 18:46:41| Not currently OK to rewrite swap log.
2004/07/08 18:46:41| storeDirWriteCleanLogs: Operation aborted.
CPU Usage: 1.060 seconds = 0.630 user + 0.430 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 439
Memory usage for squid via mallinfo():
        total space in arena:   13669 KB
        Ordinary blocks:        13666 KB      1 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           952 KB      3 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:       3 KB
        Total in use:           14618 KB 107%
        Total free:                 3 KB 0%


btw, squid keeps dying and starting for seconds (with different PIDs),then it die for good untill the next manual start

plz help..

cheerz
Logged
stephen
Linux Learner
***
Offline Offline

Posts: 56


View Profile
« Reply #1 on: July 12, 2004, 07:58:02 AM »

I hope ur squid has corrupt....

You do onething....
mv squid.conf squid.old
and reinstall the squid by

rpm -ivh --replacepckgs  squid*.*

this will reinstall your squid
then add ur rules in squid.conf
and do the following

squid -z

this will solve ur problem
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #2 on: July 12, 2004, 08:01:03 AM »

Hello..
I havn't been in such problem bfore but I have its solution lying in my computer. Here is...
-------------------
Some versions of GCC (notably 2.95.1 through 2.95.3) have bugs with compiler optimization. These GCC bugs may cause NULL pointer accesses in Squid, resulting in a ``FATAL: Received Segment Violation...dying'' message and a core dump.

You can work around these GCC bugs by disabling compiler optimization. The best way to do that is start with a clean source tree and set the CC options specifically:

% cd squid-x.y
% make distclean
% setenv CFLAGS='-g -Wall'
% ./configure ...

To check that you did it right, you can search for AC_CFLAGS in src/Makefile:

% grep AC_CFLAGS src/Makefile
AC_CFLAGS       = -g -Wall

Now when you recompile, GCC won't try to optimize anything:

% make
Making all in lib...
gcc -g -Wall -I../include -I../include -c rfc1123.c
...etc...

NOTE: some people worry that disabling compiler optimization will negatively impact Squid's performance. The impact should be negligible, unless your cache is really busy and already runs at a high CPU usage. For most people, the compiler optimization makes little or no difference at all.
Logged
Silverado
New Member

Offline Offline

Posts: 2


View Profile
« Reply #3 on: July 25, 2004, 06:54:28 AM »

Thank you! for ur replies, but the re-installation didnt solve the problem, neither the steps for the compiler optimization thingie!

i think its something to do with memory,, but how?!!

any help guys!! Sad
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
FATAL: visible hostname not set ! Squid problem Linux Servers Support fun 1 1142 Last post August 03, 2004, 09:35:52 AM
by arky
Monitoring Bandwidth received from ISP with Squid Linux Servers Support anil_garg5 3 1186 Last post September 13, 2004, 01:37:09 PM
by lovelysandu
Could not create pipeKey segment error Linux Servers Support Wscotttem 0 747 Last post June 09, 2005, 09:31:42 AM
by Wscotttem
X-server fatal error,KDM refused to start General Networking Support in Linux callitdctr 0 1040 Last post July 01, 2005, 02:47:31 AM
by callitdctr
Fatal exception: panic in 5 seconds Linux Kernel bendani 1 502 Last post June 10, 2007, 03:42:24 PM
by Ricky
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 02:16:49 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6222
Latest: shule
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 13
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 13
Total: 13
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc