Re: [squid-users] FATAL: Received Segment Violation...dying.

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 26 May 2010 23:49:24 +1200

sameer khan wrote:
>
> Hey
>
> there was a permission problem with director where coredump was suppose to be created, but got that fixed following is the coredump, can some one highlight what is wrong ?
>
> squid-1# gdb /usr/local/squid/sbin/squid /usr/local/squid/var/cache/core
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu"...
> (no debugging symbols found)
>
> warning: Can't read pathname for load map: Input/output error.
> Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libcrypt.so.1
> Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/librt.so.1
> Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
> Loaded symbols for /lib/libpthread.so.0
> Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libc.so.6...
> (no debugging symbols found)...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib64/ld-linux-x86-64.so.2
> Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_compat.so.2
> Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_nis.so.2
> Reading symbols from /lib/libnss_dns.so.2...
> (no debugging symbols found)...done.
> Loaded symbols for /lib/libnss_dns.so.2
> Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
> Loaded symbols for /lib/libresolv.so.2
> (no debugging symbols found)
> Core was generated by `(squid)'.
> Program terminated with signal 6, Aborted.
> [New process 4412]
> [New process 4424]
> [New process 4430]
> [New process 4431]
> [New process 4437]
> [New process 4428]
> [New process 4425]
> [New process 4427]
> [New process 4470]
> [New process 4475]
> [New process 4472]
> [New process 4463]
> [New process 4464]
> [New process 4474]
> [New process 4471]
> [New process 4436]
> [New process 4426]
> [New process 4434]
> [New process 4450]
> [New process 4447]
> [New process 4465]
> [New process 4429]
> [New process 4432]
> [New process 4446]
> [New process 4433]
> [New process 4449]
> [New process 4455]
> [New process 4458]
> [New process 4462]
> [New process 4442]
> [New process 4439]
> [New process 4448]
> [New process 4435]
> [New process 4456]
> [New process 4460]
> [New process 4444]
> [New process 4445]
> [New process 4440]
> [New process 4452]
> [New process 4438]
> [New process 4457]
> [New process 4468]
> [New process 4466]
> [New process 4454]
> [New process 4441]
> [New process 4453]
> [New process 4461]
> [New process 4467]
> [New process 4443]
> [New process 4459]
> [New process 4451]
> [New process 4469]
> [New process 4473]
> #0 0x00007f5f94deaed5 in raise () from /lib/libc.so.6
> (gdb) bt
> #0 0x00007f5f94deaed5 in raise () from /lib/libc.so.6
> #1 0x00007f5f94dec3f3 in abort () from /lib/libc.so.6
> #2 0x00000000004824ad in ?? ()
> #3 <signal handler called>
> #4 0x00007f5f94e33a72 in strcmp () from /lib/libc.so.6
> #5 0x00000000004268f2 in ?? ()

Darn. The function name and other symbols have been stripped out of the
squid binary. The app can;t generate any useful traces.

You will need to try and replicate the problem in a squid built with
debug symbols still inside.

> My settup
>
> <*> Squid Cache: Version 2.7.STABLE6
> configure options: '--enable-async-io'
> '--enable-icmp' '--enable-snmp'
> '--enable-cache-digests' '--enable-follow-x-forwarded-for'
> '--enable-storeio=aufs,ufs,null,diskd,coss'
> '--enable-removal-policies=heap,lru'
> '--with-maxfd=65535' '--disable-ident-lookups'
> '--enable-truncate' '--enable-linux-tproxy'
> '--enable-linux-netfilter' '--enable-large-cache-files'
>
> <*> Kernel 2.6.31.13

FWIW: linux kernel 2.6.3* do not support TPROXY version 2 (which is the
version in squid 2.7).

For TPROXYv4 you will needed squid-3.1 or later.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.3
Received on Wed May 26 2010 - 11:49:33 MDT

This archive was generated by hypermail 2.2.0 : Wed May 26 2010 - 12:00:07 MDT