cURL
Haxx ad
libcurl
Automatically get a mirror near you





COMPARE PRICES:
Digital cameras, MP3 Players, Camcorders, Mobile phones, PDA, Computers, Electronics LCD monitors, Printers, Notebook, DVD Players, Motherboards, TV, ipod, Processors. See all...

Shopping cart software
Online collaboration software

SourceForge.net Logo

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Random crash in Curl_resolv

From: Prasanna Vijapur - Sun Microsystems <Prasanna.Vijapur_at_sun.com>
Date: Fri, 18 Nov 2005 18:25:53 -0500

Hi Daniel,

Thanks for your reply.

Daniel Stenberg wrote:

> On Thu, 17 Nov 2005, Prasanna Vijapur - Sun Microsystems wrote:
>
>> My program crashes in Curl_resolv while trying to post the data. I am
>> using libcurl 7.14.0. This is multithreaded program and uses https.
>
>
> Does it crash at the same point all the time?

yes, it crashes in Curl_resolv at below point.
It is coming here from siglongjmp() in SIGALARM signal handler.
But I do not know why it is getting SIGBUS or sometimes SIGSEGV here.
(line number 390 hostip.c)
detected a multithreaded program
t_at_1 (l_at_1) terminated by signal BUS (invalid address alignment)
Current function is Curl_resolv
  390 failf(data, "name lookup timed out");

>
>> The IP address is provided in the url, Will linking with C-ares help me?
>
>
> No. When the IP-adress is given, libcurl won't resolve any name. It'll
> just instantly convert the given address and use that.
>
>> Even when ipaddress is provided, curl does the signal handling for
>> timing out the dns name resolve. line numbers:3374 to 3385 in url.c
>> Can this be avoided?
>
>
> With some clever re-arranging of the code it seems possible indeed.
>
> But why do you use signal-based timeouts if you don't want them to occur?
>
I will try setting CURLOPT_NOSIGNAL to true. I hope this will solve my
problem.

Thanks & Regards,
Prasanna
Received on 2005-11-19

These mail archives are generated by hypermail.

donate! Page updated October 16, 2006.
web site info