[squid-users] a Segment Violation error

From: Ko Tensei@dont-contact.us <Tensei@dont-contact.us>
Date: Fri, 04 Oct 2002 01:49:30 +0900

Hi, how about your Squid ~

I've catched a 'bug' today when I test squid using Web Polygraph.
It runs into a "FATAL: Segment Violation" error after runing about 2 hours.
Though I compiled the Squid 2.4STABLE6 in it's default setting without gcc
optimization.
Furthermore, in fact it had successfully run through the whole test before,
when the replacement algorithm was LRU instead of GDSF.

My platform is FreeBSD 4.6(w. gcc 2.95.3), and coredump file is as below
-021003---------------------------------------------------------------------------
(gdb) core squid.core
Core was generated by `squid'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x281637b4 in kill () from /usr/lib/libc.so.4
(gdb) where
#0 0x281637b4 in kill () from /usr/lib/libc.so.4
#1 0x281a3b26 in abort () from /usr/lib/libc.so.4
#2 0x80a649c in death (sig=11) at tools.c:299 <--- Signal Segment Violation
#3 0xbfbfffac in ?? ()
#4 0x805f6a4 in clientSendMoreData (data=0x8fc5c00, buf=0x9a01000 "", size=-1)
    at client_side.c:1717
#5 0x80a1115 in storeClientCallback (sc=0x92578c0, sz=-1) at store_client.c:165
#6 0x80a2149 in storeUnregister (sc=0x92578c0, e=0xac412c0, data=0x8fc5c00)
    at store_client.c:528
#7 0x805cfd1 in httpRequestFree (data=0x8fc5c00) at client_side.c:768
#8 0x805d21e in connStateFree (fd=195, data=0x9672600) at client_side.c:808
#9 0x8064a7f in commCallCloseHandlers (fd=195) at comm.c:535
#10 0x8064c16 in comm_close (fd=195) at comm.c:592
#11 0x80934ac in pumpClose (data=0x9292400) at pump.c:321
#12 0x8093114 in pumpReadFromClient (fd=195, data=0x9292400) at pump.c:258
#13 0x806672f in comm_poll (msec=379) at comm_select.c:432
#14 0x8088f2d in main (argc=2, argv=0xbfbffc40) at main.c:738
#15 0x804a3d9 in _start ()
----------------------------------------------------------------------------------

Level#3 is quite odd. clientSendMoreData called
  clientWriteComplete(fd, NULL, 0, COMM_OK, http); in Level#4.
However, what happened then?
Is it still a gcc compiler problem? I'm puzzled with how to debug it.

Thanks for your suggestion in advance.

Ko Tensei
Kanazawa Institute of Technology, Japan.
Received on Thu Oct 03 2002 - 10:47:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:35 MST