cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libCURL crash in __libc_res_nquery ()

From: Michael Wood <esiotrot_at_gmail.com>
Date: Sun, 28 Mar 2010 15:22:51 +0200

On 28 March 2010 14:36, Kamil Dudka <kdudka_at_redhat.com> wrote:
> On Sunday 28 of March 2010 10:21:20 souvik.datta_at_wipro.com wrote:
>> Thanks for your reply. I have added the patch as mentioned in the link ,
>> but this time I find that it is failing (very frequently ) by throwing the
>> print "Alarm clock" on the console.
>
> AFAIK there is no such message in libcurl sources.  You will need to check
> your appliction.

Not sure what prints this message normally, but:

$ cat alarm.c
int main(){for(;;);}
$ gcc -o alarm alarm.c
$ ./alarm

Then in another terminal:
$ kill -ALRM `pidof alarm`

In the original terminal:

Alarm clock
$

So I think his program is using the default signal handler for the ALRM signal.

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-28