Search squid archive

Re: COSS causing squid Segment Violation on FreeBSD 6.2S

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux