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

From: Adrian Chadd <adrian@dont-contact.us>
Date: Thu, 26 Apr 2007 20:27:34 +0800

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.
>
> Still in old gdb as it's still there (you're fast :) ):
>
> (gdb) frame 1
> #1 0x080ed46d in storeCossCompletePendingReloc (fd=21, my_data=0x8d73150,
> buf=0xfe89038 "", aio_return=266899512, aio_errno=266899512) at
> coss/store_io_coss.c:1160
> 1160 xmemcpy(p, buf, len);
> (gdb) print *op
> $1 = {type = COSS_OP_NONE, node = {data = 0x0, prev = 0x0, next = 0x0},
> pending_op_node = {data = 0x0, prev = 0x0, next = 0x0}, sio = 0x0,
> requestlen = 0, requestoffset = 0, reqdiskoffset = 0, requestbuf = 0x0,
> completed = 0 '\0', pr = 0x0}
> (gdb) print *pr
> No symbol "pr" in current context.
> (gdb)

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.

Adrian
Received on Thu Apr 26 2007 - 06:14:46 MDT

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