cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Really weird problem with CURLOPT_WRITEFUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Dec 2009 19:59:49 +0100 (CET)

On Wed, 23 Dec 2009, Joshua McCracken wrote:

> *fixed the code I was using. I have no idea what I was trying to do passing
> a void pointer to data that wasn't even null terminated to another function
> for parsing using cstring functions without even casting it first lol. It's
> still segfaulting though and I have isolated the location of the problem to
> the dynamic memory allocation occurring at the same location. Maybe a
> symptom of a problem elsewhere? Not sure. I'm dead tired - haven't slept in
> over 24 hours. Going to get some rest and work on it some more when I wake
> up. If anyone has any suggestions, they'd be much appreciated in the
> meantime.

You don't show enough for us to tell anything really. I suggest you instead
use gdb or valgrind to find the flaw faster.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-23