[squid-users] Bug in 2.4-stable1, was Re: [squid-users] 2.4 Stable1 SIGSEV, Segmentation fault

From: Brett Murphy <brett@dont-contact.us>
Date: Wed, 04 Apr 2001 09:02:36 +1000

Is this related to the following error I get with 2.4-stable1 on linux 2.2.18 ?

Unable to handle kernel NULL pointer dereference at virtual address 00000b09
current->tss.cr3 = 12dc0000, %cr3 = 12dc0000
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<80160c62>]
EFLAGS: 00010202
eax: 18bfe6a8 ebx: 96431300 ecx: 00000ae9 edx: 00000000
esi: 95911250 edi: 0000024a ebp: 92e1a000 esp: 92e1bf54
ds: 0018 es: 0018 ss: 0018
Process squid (pid: 145, process nr: 24, stackpage=92e1b000)
Stack: 00000000 96431300 8012fcfb 96431300 00000000 0000000b 7ffefa98 000008d9
        95910000 00000278 00000014 8012fe57 000008d9 95910000 00000000
0000000b
        92e1a000 2ac23520 7ffefa98 7ffefa3c 000046c8 92e1bfc4 2ac83600
92e1a000
Call Trace: [<8012fcfb>] [<8012fe57>] [<80107af0>]
Code: 8b 41 20 ff d0 83 c4 0c 5b c3 53 8b 5c 24 08 85 db 75 0f 68
general protection fault: 0180
CPU: 0
EIP: 0010:[<80233504>]
EFLAGS: 00010286
eax: a812d942 ebx: a812d180 ecx: b38bc838 edx: 80233500
esi: 837393d0 edi: 0000027a ebp: a03a2000 esp: a03a3f40
ds: 0018 es: 0018 ss: 0018
Process squid (pid: 156, process nr: 28, stackpage=a03a3000)
Stack: b38bc838 00000000 80160c67 a812d180 b38bc838 00000000 a812d180 8012fcfb
        a812d180 00000000 00000008 7ffefa98 000006d9 83738000 000002ac
00000003
        8012fe57 000006d9 83738000 00000000 00000008 a03a2000 2ac23520
7ffefa98
Call Trace: [<80160c67>] [<8012fcfb>] [<8012fe57>] [<80107af0>] [<8010002b>]
Code: ea 20 20 80 24 81 01 00 00 00 00 00 00 00 00 00 80 fa 22 80

At 01:56 PM 3/30/2001 -0600, you 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

All the best,
Brett Murphy
Director, Alphalink (Australia) PTY LTD
ph: +61 3 9495-9000 fax: +61 3 9486-6822
email: brett@alphalink.com.au

The contents of this message may not be quoted,
copied, reproduced or published in part or in whole,
without the written authorization of Brett Murphy,
Director, Alphalink (Australia) Pty Ltd.
Received on Tue Apr 03 2001 - 17:01:21 MDT

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