[squid-users] Segmentation Fault, dlmalloc

From: Sebastian Edward <[email protected]>
Date: Sat, 23 Jul 2005 16:49:14 +0800

Hi,

I'm running squid 2.5 stable 10 on redhat 8.0 machine and I have been
getting many errors regarding segment violation. The following are
some of the information that might be useful:

Linux Redhat 8.0

# uname -a
Linux proxy7 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

# /etc/squid/sbin/squid -v
Squid Cache: Version 2.5.STABLE10
configure options: --prefix=/etc/squid --sysconfdir=/etc/squid
--localstatedir=/logs --enable-snmp --enable-dlmalloc

Information from gdb:

2005/07/23 16:45:32| httpReadReply: Excess data from "GET
http://entier.ecosm.com/img/?wwobyprr"
2005/07/23 16:46:52| parseHttpRequest: Unsupported method 'GNUTELLA'
2005/07/23 16:46:52| clientReadRequest: FD 751 Invalid Request
2005/07/23 16:47:39| httpReadReply: Excess data from "GET
http://entier.ecosm.com/img/?wwobyprr"
2005/07/23 16:48:52| WARNING! Your cache is running out of filedescriptors
2005/07/23 16:49:37| urlParse: Illegal character in hostname
'inter_1908.w.interia.pl'

Program received signal SIGSEGV, Segmentation fault.
0x080c1227 in free (mem=0xbffef730) at dlmalloc.c:2325
2325 nextsz = chunksize(next);
(gdb) backtrace
#0 0x080c1227 in free (mem=0xbffef730) at dlmalloc.c:2325
#1 0x420d649d in vsyslog () from /lib/i686/libc.so.6
#2 0x420d617f in syslog () from /lib/i686/libc.so.6
#3 0x080b2456 in fatal_common (message=0x8180c20 "xcalloc: Unable to
allocate 1 blocks of 4108 bytes!\n") at tools.c:336
#4 0x080b25a2 in fatal_dump (message=0x8180c20 "xcalloc: Unable to
allocate 1 blocks of 4108 bytes!\n") at tools.c:405
#5 0x080c84d2 in xcalloc (n=1, sz=4108) at util.c:561
#6 0x08094ae9 in memPoolAlloc (pool=0x8219220) at MemPool.c:254
#7 0x080939c4 in memAllocate (type=MEM_MEM_NODE) at mem.c:127
#8 0x080a9756 in stmemAppend (mem=0x35eceb08,
    data=0x8119ad1
"���3�\f;(c)Jg\021\006\v4>�V\027\216\234u\232����\005�+\203\f�\222�|o��(c)\\�\001<�9a�\236^\231�R0wO

q�%�L��ҹ|\031�\231Ln\237/Z>_�9_�\034�<W�t�\020

�\002FE\224�Px�Bq�\203eJ\003\t�%:�Vۣ\2012��/�\037��R�A\212����\021>���`v��|�\f�?
�/U��;�3n;�y]\037��\032\005���\023N�\212bq

\024E\\��#\005�D7�_4�U���S?�;�\206%�"..., len=44270) at stmem.c:119
#9 0x080aaaea in storeAppend (e=0x35ea8638,
    buf=0x81147c0

"����\223���:W\214\030t�\215\2309\037�\212(c)\017\214�\023\234[D\2206\235��H�\232h
S7\f�o�p\211\bF&�F\214\227\2102y�x�>�4�

\005\027\r�\206��\030�{'y_�\"�\023�����/X�\230���\231\031�u��\024\024�\006g��YN#*\a�)�<\016Z'\233\206�\234\201ȵq%#ig\002\r��

ɫ\231a�(\207J�h��\au��#\f���L*u�Lw\222�\020
\037O0\tU\235@sgo\222�[��D�\023a�\026�\021\237��\e\022?\177"...,
len=65535) at

store.c:529
#10 0x08083796 in httpReadReply (fd=778, data=0x2400d768) at http.c:704
#11 0x0806bcef in comm_poll (msec=438) at comm_select.c:445
#12 0x08092f39 in main (argc=2, argv=0xbffffb14) at main.c:742
#13 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

Based on the information acquired, it seems that dlmalloc is not
working well. Besides re-compiling squid without dl-malloc option,
what else can I do to solve this problem? I would like to hear some
alternative solutions/suggestions from the experts before deciding.

I'm not sure whether this have anything to do with the segmentation
fault problem but according to the gdb output, it seems that my cache
server is running out of file descriptors (WARNING! Your cache is
running out of filedescriptors). I was thinking about modifying the
"nofile" value in /etc/security/limits.conf. Will that suffice?

Thank you.
Received on Sat Jul 23 2005 - 08:25:45 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT