Re: Debugging xfree() (WAS: , in the URL)

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 24 Mar 2003 10:19:45 +0100

No, but that there is a buffer overrun, trying to write more data than
allocated for.

The first chain starting with "at strcpy" tells where the buffer overrun
occured. The second chain starting with "at malloc" tells where the
memory was allocated.

What this tells is that on client_side.c:1921 a call to strcpy tried to
copy more data than allocated for at line 1920.

Regards
Henrik

Mihalis Tsoukalos wrote:
>
> Does the following mean that the malloc() call failed?
>
> ==23985==
> ==23985== Invalid write of size 1
> ==23985== at 0x4004894C: strcpy (vg_clientfuncs.c:441)
> ==23985== by 0x8060D28: clientSendMoreData (client_side.c:1921)
> ==23985== by 0x80A6791: storeClientCallback (store_client.c:165)
> ==23985== by 0x80A6CFD: storeClientCopy3 (store_client.c:321)
> ==23985== Address 0x436B9D75 is 0 bytes after a block of size 21 alloc'd
> ==23985== at 0x40047F4B: malloc (vg_clientfuncs.c:100)
> ==23985== by 0x80B8570: xmalloc (util.c:439)
> ==23985== by 0x8060CD9: clientSendMoreData (client_side.c:1920)
> ==23985== by 0x80A6791: storeClientCallback (store_client.c:165)
> ==23985==
>
> have a nice week,
> Mihalis.
>
> ----- Original Message -----
> From: "Henrik Nordstrom" <hno@squid-cache.org>
> To: "Mihalis Tsoukalos" <ekefe@freemail.gr>
> Cc: <squid-dev@squid-cache.org>
> Sent: Saturday, March 22, 2003 6:58 PM
> Subject: Re: Debugging xfree() (WAS: , in the URL)
>
> > Mihalis Tsoukalos wrote:
> >
> > > Any recommendations on how to run valgrind against squid?
> >
> > Like any other program per the valgrind documentation...
> >
> > I usually run
> >
> > valgrind squid -DNYCd3
> >
> > Regards
> > Henrik
Received on Mon Mar 24 2003 - 03:42:00 MST

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