Subject: Re: c-ares crashes

Re: c-ares crashes

From: Gerald Combs <gerald_at_wireshark.org>
Date: Tue, 02 Dec 2008 12:58:37 -0800

Andreas Rieke wrote:
> Hi,
>
> when using c-ares in the current version 1.5.3 under RedHat linux, my
> application sometimes crashes when receiving very long replies. After
> initializing c-ares, I call ares_gethostbyaddr, and that function works
> well. I see the request going out with my wireshark, and most times, the
> response is processed well. However, in case of responses with lots of
> names for the address (the UDP response is truncated, and TCP retries
> are disabled), the process usually crashes after receiving the answer
> from the nameserver (a typical example which definitively crashes is
> available at https://www.arp-guard.com/info/download/wireshark.jpg).

Does this patch fix your problem?

http://c-ares.haxx.se/mail/c-ares-archive-2008-11/0017.shtml

If it doesn't, have you tried running your application under Valgrind?
Received on 2008-12-02