Re: [squid-users] COSS causing squid Segment Violation on FreeBSD 6.2S

From: Mark Powell <M.S.Powell@dont-contact.us>
Date: Thu, 26 Apr 2007 13:25:02 +0100 (BST)

On Thu, 26 Apr 2007, Adrian Chadd wrote:

> On Thu, Apr 26, 2007, Mark Powell wrote:
>> On Thu, 26 Apr 2007, Adrian Chadd wrote:
>>
>>> On Thu, Apr 26, 2007, Mark Powell wrote:
>>> You're in the wrong frame here, but at least the BT looks right.
>>> Try "frame 1", then print *op and print *pr.
>>
> hm, thats not good. how's it NULL? Oh, it hasn't been assigned yet.
> Try print * ((CossPendingReloc *) pr); I bet GCC has happily optimised out
> pr for you.

This time with gdb53, it seems worse:

(gdb) break 1149
Breakpoint 1 at 0x80ed3e1: file coss/store_io_coss.c, line 1149.
(gdb) run -YND
Starting program: /usr/local/sbin/squid -YND

Program received signal SIGSEGV, Segmentation fault.
0x88278c07 in memcpy () from /lib/libc.so.6
(gdb) bt
#0 0x88278c07 in memcpy () from /lib/libc.so.6
#1 0x08297200 in ?? ()
#2 0x080e729f in aioCheckCallbacks (SD=0x82ac000) at aufs/async_io.c:319
#3 0x080c97b2 in storeDirCallback () at store_dir.c:508
#4 0x0807b710 in comm_select (msec=10) at comm_generic.c:377
#5 0x080a568a in main (argc=2, argv=0xbfbfeb9c) at main.c:837
#6 0x08057bad in _start ()
(gdb) print *op
No symbol "op" in current context.
(gdb) frame 1
#1 0x08297200 in ?? ()
(gdb) print *op
No symbol "op" in current context.
(gdb)

Cheers.

-- 
Mark Powell - UNIX System Administrator - The University of Salford
Information Services Division, Clifford Whitworth Building,
Salford University, Manchester, M5 4WT, UK.
Tel: +44 161 295 4837  Fax: +44 161 295 5888  www.pgp.com for PGP key
Received on Thu Apr 26 2007 - 06:25:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT