cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Signal 11 after continuous use of 1 CURL handle

From: vijayppatel <vijayppatel_at_HotPOP.com>
Date: Tue, 13 Apr 2004 11:48:53 +0530

Hello again,

After long time i am replying back.
Because my application is working in multithreaded environment, i need to
create curl_handle for each thread.

So, I removed c api for lib-curl & created perl code to fetch url from
internet using "WWW::Curl::easy" package. And now c code was using system()
to read url using perl code. In this code, i started getting strange
problem, eventhough i have started one instance of my application, ps -x
commnad was showing multiple instance of my application.!! and perl.core
files were also generated.

After that, I have done big changes in design of code now, instead of
running multiple threads, i started 3 instance of single threaded
application, where i did not got signal 11 for contineous run for 6 hrs.

So overall i guess that because of application was running with multiple
threads & using very high memory resources, it is not able to run for long
time. While single threaded & multiple light weight instance are doing
better job.

Vijay.

----- Original Message -----
From: "Daniel Stenberg" <daniel-curl_at_haxx.se>
To: "vijayppatel" <vijayppatel_at_hotpop.com>
Cc: <curl-library_at_cool.haxx.se>
Sent: Friday, March 26, 2004 5:20 PM
Subject: Re: Signal 11 after continuous use of 1 CURL handle

> On Fri, 26 Mar 2004, vijayppatel wrote:
>
> (replying to the libcurl list)
>
> > NEW_URL_LIB::read_curl(): URL=http://XXXXXXXXXXXXXX : Exception:
> > curl_easy_perform() failed with 55 : Failed sending HTTP request
occured.
>
> Can you figure out why this happens? It is generated when the sending of
the
> request within add_buffer_send() fails. I've never seen this happen!
>
> > Once i get this error for any thread, after that code starts repeating
same
> > error for next 80-90 sites & after that it fires Signal 11 from
> > "curl_easy_perform(curl_handle)" call.
>
> So, when you've got this once, can you single-step using a debuger to see
what
> happens on the following request? And also check that the request that
returns
> the failure is closed and killed properly.
>
> > (gdb)bt
> > #0 0x281ed4f0 in _init () from /usr/local/lib/libcurl.so.2
>
> Uh? This looks there. Why is _init() called from ConnectionExists() ?
>
> > #1 0x281fa861 in ConnectionExists () from /usr/local/lib/libcurl.so.2
>
> Can you rebuild your libcurl with debug symbols to see exactly what source
> line this crash happened?
>
> > I am planning to recreate CURL handle, Once i get "curl_easy_perform()
> > failed with 55 : Failed sending HTTP request occured.". But i am not
sure
> > whether it will definitely solve the problem of Signal 11.
>
> Well, whatever the outcome of that test is, it will certainly help in
> diagonsing what's happening for you.
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-13