[squid-users] Squid exited on signal 6 (core dumped)

From: Felippe de Meirelles Motta <lippe@dont-contact.us>
Date: Thu, 03 May 2007 14:44:43 -0300

Dears,

I have an squid proxy server in an FreeBSD 6.2-STABLE with tuning of
kernel for best squid performance. Recently, i detect anormals
situations in my daemon(squid), then looking the logs, i have this
message below.

2007/05/03 14:27:53| comm_accept: FD 11: (53) Software caused connection
abort
2007/05/03 14:27:53| httpAccept: FD 11: accept failure: (53) Software
caused connection abort
2007/05/03 14:27:53| comm_accept: FD 11: (53) Software caused connection
abort
2007/05/03 14:27:53| httpAccept: FD 11: accept failure: (53) Software
caused connection abort
2007/05/03 14:27:53| comm_accept: FD 11: (53) Software caused connection
abort
2007/05/03 14:27:53| httpAccept: FD 11: accept failure: (53) Software
caused connection abort
2007/05/03 14:27:53| assertion failed: diskd/store_io_diskd.c:384:
"!diskdstate->flags.close_request"
2007/05/03 14:28:24| Starting Squid Cache version 2.6.STABLE12 for
i386-portbld-freebsd6.2...
2007/05/03 14:28:24| Process ID 44697
2007/05/03 14:28:24| With 11072 file descriptors available
2007/05/03 14:28:24| Using kqueue for the IO loop
2007/05/03 14:28:24| DNS Socket created at 0.0.0.0, port 63377, FD 5
2007/05/03 14:28:24| Adding nameserver 200.195.58.4 from /etc/resolv.conf
2007/05/03 14:28:24| Unlinkd pipe opened on FD 9
2007/05/03 14:28:24| Swap maxSize 51200000 KB, estimated 3938461 objects
2007/05/03 14:28:24| Target number of buckets: 196923
2007/05/03 14:28:24| Using 262144 Store buckets
2007/05/03 14:28:24| Max Mem size: 524288 KB
2007/05/03 14:28:24| Max Swap size: 51200000 KB
2007/05/03 14:28:24| Store logging disabled
2007/05/03 14:28:24| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2007/05/03 14:28:24| Using Least Load store dir selection
2007/05/03 14:28:24| Set Current Directory to /usr/local/squid/cache/
2007/05/03 14:28:24| Loaded Icons.
2007/05/03 14:28:24| Accepting transparently proxied HTTP connections at
0.0.0.0, port 3128, FD 11.
2007/05/03 14:28:24| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2007/05/03 14:28:24| WCCP Disabled.
2007/05/03 14:28:24| Ready to serve requests.
2007/05/03 14:28:24| Store rebuilding is 1.9% complete
2007/05/03 14:28:27| WARNING: unparseable HTTP header field {POST
/qzwxec HTTP/1.0}
2007/05/03 14:28:29| comm_accept: FD 11: (53) Software caused connection
abort
2007/05/03 14:28:29| httpAccept: FD 11: accept failure: (53) Software
caused connection abort

In other log, i have:

pid 44470 (squid), uid 100: exited on signal 6 (core dumped)

[about signal 6]
#define SIGABRT 6 /* abort() */

The SIGABRT signal provides a way to abort a process and create a core
dump. If this is caught and the signal handler does not return, however,
the program will not terminate. The default action is to terminate the
process and create a core dump.

Analyzing the core dump file:

srv-aol-04# gdb /usr/local/sbin/squid /usr/local/squid/cache/squid.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `squid'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x48206363 in kill () from /lib/libc.so.6

I made same attempts, as:

- recompile my squid;
- recompile my kernel (note: i use this kernel config in several squid
servers);
- clean my cache and re-make.

My dmesg below:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #2: Fri Apr 27 11:46:32 BRT 2007
     root@srv-aol-04.byalnet.com.br:/usr/obj/usr/src/sys/BYALNET
ACPI APIC Table: <A M I OEMAPIC >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Sempron(tm) Processor 2800+ (1607.83-MHz 686-class CPU)
   Origin = "AuthenticAMD" Id = 0x10fc0 Stepping = 0
 
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
   AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow>
   AMD Features2=0x1<LAHF>
real memory = 1073479680 (1023 MB)
avail memory = 1041494016 (993 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <NVIDIA nForce3-250 AGP Controller> mem 0xf0000000-0xf7ffffff at
device 0.0 on pci0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
pci0: <multimedia, audio> at device 6.0 (no driver attached)
atapci0: <nVidia nForce3 Pro UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
atapci1: <nVidia nForce3 Pro SATA150 controller> port
0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd000-0xd00f,0xdc00-0xdc7f
irq 21 at device 10.0 on pci0
ata2: <ATA channel 0> on atapci1
ata3: <ATA channel 1> on atapci1
pcib1: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci2: <ACPI PCI bus> on pcib2
rl0: <RealTek 8139 10/100BaseTX> port 0xc800-0xc8ff mem
0xfeaffc00-0xfeaffcff irq 17 at device 6.0 on pci2
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:08:a1:67:94:53
rl1: <RealTek 8139 10/100BaseTX> port 0xc400-0xc4ff mem
0xfeaff800-0xfeaff8ff irq 18 at device 7.0 on pci2
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> on miibus1
rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:08:a1:67:24:d4
rl2: <RealTek 8139 10/100BaseTX> port 0xc000-0xc0ff mem
0xfeaff400-0xfeaff4ff irq 19 at device 8.0 on pci2
miibus2: <MII bus> on rl2
rlphy2: <RealTek internal media interface> on miibus2
rlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl2: Ethernet address: 00:08:54:b2:ea:e9
rl3: <RealTek 8139 10/100BaseTX> port 0xb800-0xb8ff mem
0xfeaff000-0xfeaff0ff irq 16 at device 9.0 on pci2
miibus3: <MII bus> on rl3
rlphy3: <RealTek internal media interface> on miibus3
rlphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl3: Ethernet address: 00:08:54:b2:eb:13
rl4: <RealTek 8139 10/100BaseTX> port 0xb400-0xb4ff mem
0xfeafec00-0xfeafecff irq 17 at device 10.0 on pci2
miibus4: <MII bus> on rl4
rlphy4: <RealTek internal media interface> on miibus4
rlphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl4: Ethernet address: 00:08:a1:67:26:eb
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1607832267 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding
enabled, default to accept, logging limited to 100 packets/entry by default
ad0: 76318MB <SAMSUNG SP0842N BH100-50> at ata0-master UDMA100
ad4: 114473MB <Seagate ST3120827AS 3.42> at ata2-master SATA150
Trying to mount root from ufs:/dev/ad4s1a
rl0: link state changed to UP
rl1: link state changed to UP
rl2: link state changed to UP
rl3: link state changed to UP
rl4: link state changed to UP

Any ideas ?

Thanks! :)

-- 
Atenciosamente,
Felippe de Meirelles Motta
FreeBSD Brasil LTDA.
http://www.freebsdbrasil.com.br
Received on Thu May 03 2007 - 11:45:04 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:04 MDT