[squid-users] snmp causing squid dump core

From: Alexandre Correa <alexandre@dont-contact.us>
Date: Sun, 6 May 2007 22:56:56 -0300

Hello !!

I´m running squid 2.6stable12 on a fedora core 3 64 bits with kernel
2.6.16-13 on a Dell wiht P4 EMT64, kernel are manual compiled...

squid some times dies and generate a big coredump... see:

-rw------- 1 squid squid 1037991936 Apr 25 04:34 core.18998
-rw------- 1 squid squid 15314944 Apr 25 04:35 core.990

# gdb /usr/sbin/squid core.18998
GNU gdb Red Hat Linux (6.1post-1.20040607.43.0.1rh)
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 "x86_64-redhat-linux-gnu"...(no debugging
symbols found)...Using host libthread_db library
"/lib64/tls/libthread_db.so.1".

Core was generated by `(squid) -D -s'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libsafe.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libsafe.so.2
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libssl.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib64/libssl.so.4
Reading symbols from /lib64/libcrypto.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcrypto.so.4
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /lib64/tls/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/tls/librt.so.1
Reading symbols from /lib64/tls/libpthread.so.0...(no debugging
symbols found)...done.
Loaded symbols for /lib64/tls/libpthread.so.0
Reading symbols from /lib64/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/tls/libm.so.6
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /lib64/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/tls/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libnss_files.so.2
#0 0x000000389eb2e37d in raise () from /lib64/tls/libc.so.6
(gdb) where
#0 0x000000389eb2e37d in raise () from /lib64/tls/libc.so.6
#1 0x000000389eb2faae in abort () from /lib64/tls/libc.so.6
#2 0x0000000000469b3d in storeAppendVPrintf ()
#3 0x0000000000469be5 in storeAppendVPrintf ()
#4 0x000000000043c85c in snmp_netFqdnFn ()
#5 0x0000000000427722 in snmp_meshCtblFn ()
#6 0x0000000000427b5b in snmp_meshCtblFn ()
#7 0x000000000043c669 in snmp_netFqdnFn ()
#8 0x000000000043c29d in snmp_netFqdnFn ()
#9 0x00002ba6347b2de8 in ?? ()
#10 0x000000389ea15840 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007fffffc72e00 in ?? ()
#12 0x000000389e909620 in _dl_relocate_object () from
/lib64/ld-linux-x86-64.so.2
Previous frame inner to this frame (corrupt stack?)
(gdb)

----------

]# gdb /usr/sbin/squid core.990
GNU gdb Red Hat Linux (6.1post-1.20040607.43.0.1rh)
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 "x86_64-redhat-linux-gnu"...(no debugging
symbols found)...Using host libthread_db library
"/lib64/tls/libthread_db.so.1".

Core was generated by `(squid) -D -s'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libsafe.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libsafe.so.2
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libssl.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib64/libssl.so.4
Reading symbols from /lib64/libcrypto.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcrypto.so.4
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /lib64/tls/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/tls/librt.so.1
Reading symbols from /lib64/tls/libpthread.so.0...(no debugging
symbols found)...done.
Loaded symbols for /lib64/tls/libpthread.so.0
Reading symbols from /lib64/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/tls/libm.so.6
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /lib64/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/tls/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging
symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libnss_files.so.2
#0 0x000000389eb2e37d in raise () from /lib64/tls/libc.so.6
(gdb) where
#0 0x000000389eb2e37d in raise () from /lib64/tls/libc.so.6
#1 0x000000389eb2faae in abort () from /lib64/tls/libc.so.6
#2 0x0000000000469b3d in storeAppendVPrintf ()
#3 0x0000000000469be5 in storeAppendVPrintf ()
#4 0x000000000043c85c in snmp_netFqdnFn ()
#5 0x0000000000427722 in snmp_meshCtblFn ()
#6 0x0000000000427b5b in snmp_meshCtblFn ()
#7 0x000000000043c669 in snmp_netFqdnFn ()
#8 0x000000000043c29d in snmp_netFqdnFn ()
#9 0x00002b9a9df0fde8 in ?? ()
#10 0x000000389ea15840 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x00007fffff8096a0 in ?? ()
#12 0x000000389e909620 in _dl_relocate_object () from
/lib64/ld-linux-x86-64.so.2
Previous frame inner to this frame (corrupt stack?)
(gdb)

Same error for core´s !!

i´m using snmp to generate some stats... squid.conf i have:

snmp_port 3401

acl snmppublic snmp_community public
acl server_snmp src 200.200.200.x
172.xx.xx.xx 172.xx.xx.yy

snmp_access allow snmppublic server_snmp
snmp_access allow snmppublic localhost
snmp_access deny all
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255

it´s a bug ? error on my squid build ?

Regards !!!

-- 
Sds.
Alexandre J. Correa
Onda Internet / OPinguim.net
http://www.ondainternet.com.br
http://www.opinguim.net
Received on Sun May 06 2007 - 19:56:59 MDT

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