cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SIGSEGV at if(http->sending == HTTPSEND_REQUEST)

From: Darshan Ghumare <darshan.ghumare_at_gmail.com>
Date: Fri, 23 Jan 2015 15:34:31 +0530

Thank you so much Dan. You were right.

I was sharing single handle across multiple threads.

Multi-threading Issues

The first basic rule is that you must never simultaneously share a libcurl
handle (be it easy or multi or whatever) between multiple threads. Only use
one handle in one thread at any time. You can pass the handles around among
threads, but you must never use a single handle from more than one thread
at any given time.

On Thu, Jan 22, 2015 at 2:03 AM, Dan Fandrich <dan_at_coneharvesters.com>
wrote:

> On Wed, Jan 21, 2015 at 03:24:58PM +0530, Darshan Ghumare wrote:
> > I am using curl's latest version (curl-7.40.0).
> >
> > I am getting SIGSEGV at transfer.c:1075 when I am trying to put (HTTP PUT
>
> Every time?
>
> > request) a file to swift.
>
> I don't know what swift is.
>
> > Following is the stack (Here, http i.e data->req.protop is NULL),
>
> This is clearly a multithreaded program based on the stack trace. Have you
> read
> the sections of the manual dealing with multithreaded programming with
> libcurl?
> Are you using http or https?
>
> >>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-- 
Darshan®

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