[squid-users] Re: 2.4 Stable1 SIGSEV, Segmentation fault

From: Sonny Franslay <sonnyfranslay@dont-contact.us>
Date: Mon, 9 Apr 2001 12:24:00 +0800 (Singapore Standard Time)

Hi,

I am encountering the semgentation fault while running 2.4Stable1 as
well. I am using BSDI4.1, no diskd, cache_digest and sibling peering.
H/W: 1GB Ram, PIII-733 CPU.

Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0a 126959 20948 99663 17% /
/dev/sd0h 4063212 1318673 2541378 34% /usr
/dev/sd0g 9118183 1306536 7355737 15% /usr/local
/dev/sd1a 8729856 16536 8276824 0% /usr/local/squid/cache2
/dev/sd1b 8731472 16536 8278360 0% /usr/local/squid/cache3
/dev/sd2a 8729856 16536 8276824 0% /usr/local/squid/cache4
/dev/sd2b 8731472 16536 8278360 0% /usr/local/squid/cache5
/dev/sd3a 8729856 16536 8276824 0% /usr/local/squid/cache6
/dev/sd3b 8731472 16536 8278360 0% /usr/local/squid/cache7
/dev/sd4a 8729856 16536 8276824 0% /usr/local/squid/cache8
/dev/sd4b 8731472 53864 8241032 1% /usr/local/squid/cache9
/dev/sd5a 8729856 56744 8236616 1% /usr/local/squid/cache10
/dev/sd5b 8731472 16544 8278352 0% /usr/local/squid/cache11

The following is the backtrace I got:

GNU gdb
Copyright 1998 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-unknown-bsdi4.1"...
(gdb) handle SIGPIPE noprint nostop pass
Signal Stop Print Pass to program Description
SIGPIPE No No Yes Broken pipe
(gdb) r -CNd1
Starting program: /usr/local/squid/bin/squid -CNd1
2001/04/09 12:08:17| Starting Squid Cache version 2.4.STABLE1 for
i386-pc-bsdi4.1...
2001/04/09 12:08:17| Process ID 2032
2001/04/09 12:08:17| With 13196 file descriptors available
2001/04/09 12:08:17| Performing DNS Tests...
2001/04/09 12:08:17| Successful DNS name lookup tests...
2001/04/09 12:08:17| DNS Socket created on FD 7
2001/04/09 12:08:17| Adding nameserver 192.168.0.44 from /etc/resolv.conf
2001/04/09 12:08:17| Adding nameserver 192.168.0.43 from /etc/resolv.conf
2001/04/09 12:08:17| Adding nameserver 192.168.0.60 from /etc/resolv.conf
2001/04/09 12:08:17| Unlinkd pipe opened on FD 12
2001/04/09 12:08:17| Swap maxSize 62914560 KB, estimated 4839581 objects
2001/04/09 12:08:17| Target number of buckets: 241979
2001/04/09 12:08:17| Using 262144 Store buckets
2001/04/09 12:08:17| Max Mem size: 32768 KB
2001/04/09 12:08:17| Max Swap size: 62914560 KB
2001/04/09 12:08:17| Local cache digest enabled; rebuild/rewrite every
1800/3600 sec
2001/04/09 12:08:17| Store logging disabled
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache2 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache3 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache4 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache5 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache6 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache7 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache8 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache9 (DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache10
(DIRTY)
2001/04/09 12:08:17| Rebuilding storage in /usr/local/squid/cache11
(DIRTY)
2001/04/09 12:08:17| Using Least Load store dir selection
2001/04/09 12:08:17| Set Current Directory to /usr/local/squid/cache2
2001/04/09 12:08:17| Loaded Icons.
2001/04/09 12:08:17| Accepting HTTP connections at 0.0.0.0, port 8080, FD
31.
2001/04/09 12:08:17| Accepting ICP messages at 0.0.0.0, port 3130, FD 32.
2001/04/09 12:08:17| WCCP Disabled.
2001/04/09 12:08:17| Ready to serve requests.
2001/04/09 12:08:17| Configuring Sibling proxy9.foo.net/8080/3130
2001/04/09 12:08:17| Configuring Sibling proxy10.foo.net/8080/3130
2001/04/09 12:08:18| Store rebuilding is 2.0% complete

Program received signal SIGSEGV, Segmentation fault.
sslStart (fd=33, url=0x91a63a0 "sabre-secure.adbureau.net:443",
request=0x9188000, size_ptr=0x91ac420,
    status_ptr=0x91ac474) at ssl.c:458
458 *sslState->status_ptr = HTTP_FORBIDDEN;
(gdb) bt
#0 sslStart (fd=33, url=0x91a63a0 "sabre-secure.adbureau.net:443",
request=0x9188000, size_ptr=0x91ac420,
    status_ptr=0x91ac474) at ssl.c:458
#1 0x805a552 in clientProcessRequest (http=0x91ac400) at
client_side.c:2111
#2 0x805729c in clientCheckNoCacheDone (answer=0, data=0x91ac400) at
client_side.c:339
#3 0x8057267 in clientCheckNoCache (http=0x91ac400) at client_side.c:329
#4 0x8057213 in clientRedirectDone (data=0x91ac400, result=0x0) at
client_side.c:319
#5 0x807fc74 in redirectStart (http=0x91ac400, handler=0x8056fbc
<clientRedirectDone>, data=0x91ac400)
    at redirect.c:122
#6 0x8056ebf in clientAccessCheckDone (answer=1, data=0x91ac400) at
client_side.c:231
#7 0x804d61d in aclCheckCallback (checklist=0xb63bf00,
answer=ACCESS_ALLOWED) at acl.c:1734
#8 0x804d585 in aclCheck (checklist=0xb63bf00) at acl.c:1711
#9 0x804d869 in aclNBCheck (checklist=0xb63bf00, callback=0x8056dfc
<clientAccessCheckDone>,
    callback_data=0x91ac400) at acl.c:1844
#10 0x8056d3d in clientAccessCheck (data=0x91ac400) at client_side.c:178
#11 0x805bae9 in clientReadRequest (fd=33, data=0xb63b000) at
client_side.c:2738
#12 0x805e809 in comm_select (msec=0) at comm_select.c:798
#13 0x8076669 in main (argc=2, argv=0x8047c18) at main.c:722
#14 0x804a437 in __start ()
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

Is there any misconfiguration on my part or is it a bug?

thanks and looking forward to your enlightenment:)

regards,

Sonny I. Franslay

On Fri, 30 Mar 2001, Alejandro A. Ramirez wrote:

> Hi,
>
> I have found a BUG in Squid 2.4Stable1, the HEAD branch from today
> "squid-2.4-200103300000", after getting more than 300 req/s, thats bad,
> because I cant load the server, I cant really get all from this hardware, Im
> using FreeBSD4.2 RELEASE, the crash has the following message:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80aab9b in linklistPush (L=0x1fcfe7, p=0x502d0000) at tools.c:873
> 873 while (*L)
>
> Below you can find the Backtrace of this crash:
>
> P.S. If you need something else (patching, testing, root access, etc) , just
> let me know (I can provide this because this is a testing server).
>
> P.S.2 I can reproduce this in less than 1 minute, I have done it several
> times, it alwas fails with the same error.
>
> Greetings...
> Ales
>
> Script started on Fri Mar 30 12:46:08 2001
> GNU gdb 4.18
> Copyright 1998 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-unknown-freebsd"...
> (gdb) handle SIGPIPE noprint nostop pass
> Signal Stop Print Pass to program Description
> SIGPIPE No No Yes Broken pipe
> (gdb) r -CNd1
> Starting program: /usr/local/sbin/squid -CNd1
> 2001/03/30 12:46:21| Starting Squid Cache version 2.4.STABLE1 for
> i386-unknown-freebsd4.2...
> 2001/03/30 12:46:21| Process ID 12083
> 2001/03/30 12:46:21| With 32768 file descriptors available
> 2001/03/30 12:46:21| Performing DNS Tests...
> 2001/03/30 12:46:21| Successful DNS name lookup tests...
> 2001/03/30 12:46:21| DNS Socket created on FD 7
> 2001/03/30 12:46:21| Adding nameserver 127.0.0.1 from /etc/resolv.conf
> 2001/03/30 12:46:21| Unlinkd pipe opened on FD 12
> 2001/03/30 12:46:21| Swap maxSize 43008000 KB, estimated 3308307 objects
> 2001/03/30 12:46:21| Target number of buckets: 165415
> 2001/03/30 12:46:21| Using 262144 Store buckets
> 2001/03/30 12:46:21| Max Mem size: 131072 KB
> 2001/03/30 12:46:21| Max Swap size: 43008000 KB
> 2001/03/30 12:46:21| Store logging disabled
> 2001/03/30 12:46:21| Rebuilding storage in /cache0/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/0/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/1/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/2/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/3/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/4/0 (DIRTY)
> 2001/03/30 12:46:21| Rebuilding storage in /cache1/5/0 (DIRTY)
> 2001/03/30 12:46:21| Using Round Robin store dir selection
> 2001/03/30 12:46:21| Set Current Directory to /cache0/0
> 2001/03/30 12:46:21| Loaded Icons.
> 2001/03/30 12:46:21| Accepting HTTP connections at 0.0.0.0, port 80, FD 31.
> 2001/03/30 12:46:21| Accepting SNMP messages on port 1610, FD 33.
> 2001/03/30 12:46:21| Accepting WCCP messages on port 2048, FD 34.
> 2001/03/30 12:46:21| Ready to serve requests.
> 2001/03/30 12:46:26| Store rebuilding is 1.0% complete
> 2001/03/30 12:46:47| Store rebuilding is 3.2% complete
> ...
> ...
> ...
> 2001/03/30 13:00:01| Store rebuilding is 93.7% complete
> 2001/03/30 13:00:19| Store rebuilding is 95.7% complete
> 2001/03/30 13:00:30| Done reading /cache1/5/0 swaplog (391346 entries)
> 2001/03/30 13:00:34| Store rebuilding is 97.8% complete
> 2001/03/30 13:00:38| WARNING: newer swaplog entry for dirno 0, fileno
> 00004161
> 2001/03/30 13:00:38| Done reading /cache1/0/0 swaplog (395861 entries)
> 2001/03/30 13:00:39| Done reading /cache0/0 swaplog (396562 entries)
> 2001/03/30 13:00:39| WARNING: newer swaplog entry for dirno 2, fileno
> 00000E94
> 2001/03/30 13:00:41| Done reading /cache1/1/0 swaplog (398381 entries)
> 2001/03/30 13:00:42| Done reading /cache1/3/0 swaplog (399405 entries)
> 2001/03/30 13:00:44| Done reading /cache1/2/0 swaplog (403705 entries)
> 2001/03/30 13:00:45| Done reading /cache1/4/0 swaplog (409005 entries)
> 2001/03/30 13:00:45| Finished rebuilding storage from disk.
> 2001/03/30 13:00:45| 2787217 Entries scanned
> 2001/03/30 13:00:45| 0 Invalid entries.
> 2001/03/30 13:00:45| 0 With invalid flags.
> 2001/03/30 13:00:45| 2780110 Objects loaded.
> 2001/03/30 13:00:45| 0 Objects expired.
> 2001/03/30 13:00:45| 6781 Objects cancelled.
> 2001/03/30 13:00:45| 592 Duplicate URLs purged.
> 2001/03/30 13:00:45| 27 Swapfile clashes avoided.
> 2001/03/30 13:00:45| Took 864.1 seconds (3217.5 objects/sec).
> 2001/03/30 13:00:45| Beginning Validation Procedure
> 2001/03/30 13:00:48| 262144 Entries Validated so far.
> 2001/03/30 13:00:52| 524288 Entries Validated so far.
> 2001/03/30 13:00:55| 786432 Entries Validated so far.
> 2001/03/30 13:00:58| 1048576 Entries Validated so far.
> 2001/03/30 13:01:02| 1310720 Entries Validated so far.
> 2001/03/30 13:01:05| 1572864 Entries Validated so far.
> 2001/03/30 13:01:09| 1835008 Entries Validated so far.
> 2001/03/30 13:01:13| 2097152 Entries Validated so far.
> 2001/03/30 13:01:16| 2359296 Entries Validated so far.
> 2001/03/30 13:01:19| 2621440 Entries Validated so far.
> 2001/03/30 13:01:21| Completed Validation Procedure
> 2001/03/30 13:01:21| Validated 2779770 Entries
> 2001/03/30 13:01:21| store_swap_size = 38440168k
> 2001/03/30 13:01:30| storeLateRelease: released 4451 objects
> 2001/03/30 13:01:57| WARNING: failed to unpack meta data
> 2001/03/30 13:02:30| WARNING: failed to unpack meta data
> ...
> ...
> ...
> 2001/03/30 13:07:15| WARNING: failed to unpack meta data
> 2001/03/30 13:07:16| WARNING: failed to unpack meta data
> 2001/03/30 13:08:06| clientReadRequest: FD 3470 Invalid Request
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80aab9b in linklistPush (L=0x1fcfe7, p=0x502d0000) at tools.c:873
> 873 while (*L)
> (gdb) bt
> #0 0x80aab9b in linklistPush (L=0x1fcfe7, p=0x502d0000) at tools.c:873
> #1 0x80b7ca0 in storeDiskdShmPut (sd=0x820dbd8, offset=294912)
> at store_dir_diskd.c:1649
> #2 0x80b4aac in storeDiskdDirCallback (SD=0x820dbd8) at
> store_dir_diskd.c:532
> #3 0x80a6e17 in storeDirCallback () at store_dir.c:467
> #4 0x80661ca in comm_poll (msec=0) at comm_select.c:330
> #5 0x80885ad in main (argc=2, argv=0xbfbffbf8) at main.c:720
> #6 0x804a529 in _start ()
> (gdb) c
> Continuing.
>
> Program terminated with signal SIGSEGV, Segmentation fault.
> The program no longer exists.
> (gdb) quit
>
> Script done on Fri Mar 30 13:09:35 2001
>
>
>
>
Received on Sun Apr 08 2001 - 22:24:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:13 MST