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:02:42 +0800

On Thu, Apr 26, 2007, Mark Powell wrote:

> 1 breakpoint keep y 0x080ed3e1 in storeCossCompletePendingReloc at
> coss/store_io_coss.c:1149
> (gdb) run

Cool.

> Starting program: /usr/local/sbin/squid -YND
> warning: Unable to get location for thread creation breakpoint: generic
> error
> [New LWP 100198]
> [New Thread 0x829d000 (LWP 100151)]
>
> Program received signal SIGSEGV, Segmentation fault.

Hm, it didn't set the breakpoint right. Try running gdb from ports (version 5.xx)
rather than the base one.

> [Switching to Thread 0x829d000 (LWP 100167)]
> 0x88278c07 in memcpy () from /lib/libc.so.6
> (gdb) print *op
> No symbol "op" in current context.
> (gdb) print *pr
> No symbol "pr" in current context.
> (gdb) bt
> #0 0x88278c07 in memcpy () from /lib/libc.so.6
> #1 0x080ed46d in storeCossCompletePendingReloc (fd=21, my_data=0x8d73150,

You're in the wrong frame here, but at least the BT looks right.
Try "frame 1", then print *op and print *pr.

adrian
Received on Thu Apr 26 2007 - 05:49:53 MDT

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