curl-users
Re: libcurl hangs in malloc_consolidate
Date: Mon, 26 Mar 2007 10:02:56 -0700
I ultimately found some double-frees in other parts of my code, thanks
to valgrind. Removing these double-frees appears to resolve the
problem.
Thank you.
On 3/23/07, Mark Wattier <mark.wattier_at_gmail.com> wrote:
> I was not aware of valgrind. Thanks for that tip.
> Well, the problem goes away running valgrind. I have switched back and
> forth running with and without valgrind, and it is consistent - I get
> the problem without it every time, and valgrinds always makes the
> problem go away.
>
> A "Heisenbug" - lucky me...
>
> On 3/23/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
> > On Thu, 22 Mar 2007, Mark Wattier wrote:
> >
> > > The multiple accesses are simply done sequentially, by calling
> > > myapp_http_post2 multiple times. This is a single threaded program. It is
> > > forked from a parent process, but curl is initialized and only used in the
> > > child.
> > >
> > > I am also calling curl_free after using curl_escape, in the code that calls
> > > myapp_http_post2. Are there issues with using realloc in the callback
> > > function?
> >
> > Nope. I would suggest you try running your app with valgrind to see if it can
> > pinpoint something.
> >
> > Oh, and seeing this is about libcurl you should consider using the
> > curl-library mailing list instead to reach the libcurl hacking crowd.
> >
> > --
> > Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
> >
>
Received on 2007-03-26