cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: problem with multi perform

From: zaheer ahmad <zaheer.mot_at_gmail.com>
Date: Mon, 17 Dec 2007 18:55:42 +0530

hi,
thanks for the reply, here are more details on the usecase-
as part of the curl write call back in curl_multi_perform, we remove one of
the handles. and this leads to crash when multi_peform tries to access some
local data (easy->easy_conn->readchannel_use since easy->easy_conn has been
deleted as part of remove->Curl_done).

So, the question is, is it possible to remove some jobs
(curl_multi_remove_handle) in the context of curl_multi_perform.

and not wait for the current multi_perform to complete before we remove any
jobs.

thanks in advance for any inputs.

thanks,
Zaheer

On Dec 17, 2007 3:45 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 17 Dec 2007, zaheer ahmad wrote:
>
> (I removed the webkit list as a receiver for my mail since they don't
> allow me
> to post to their list anyway since I'm not a subscriber.)
>
> > I am using gtk version of webkit which uses curl. iam facing a crash in
> curl
> > when opening certain pages.
>
> webkit uses libcurl and since this is a libcurl-related question I think
> we
> should deal with it on the curl-library mailing list. I'm CC'ing my reply
> to
> that list now, please take follow-ups there!
>
> Can you please tell us what operating system and what libcurl version
> you're
> using?
>
> > the reason seems to be that curl is using the handle (i.e. write
> callbacks
> > are invoked) even after its removed from the multihandle (code below).
> >
> > curl_multi_remove_handle(m_curlMultiHandle, d->m_handle);
> > curl_easy_cleanup(d->m_handle);
> >
> > backtrace for the crash
> > #0 0xb60480a2 in multi_runsingle () from /usr/local/lib/libcurl.so.4
> > #1 0xb604859e in curl_multi_perform () from /usr/local/lib/libcurl.so.4
>
> Can you please elaborate a lot more on when and how this happens or even
> better provide a small sample code that repeats the problem?
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2007-12-17

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET