Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: curl library bug

From: Dan Fandrich <>
Date: Wed, 23 Jun 2010 23:41:24 -0700

On Wed, Jun 23, 2010 at 10:20:17PM -0800, Viktor Molnar wrote:
> Thank you for your reply.
> I know about the possible segfaults, but if you try my example
> from my original message, you will see the problem. This segfault
> is rised when timeout is reached. That's why is timeout set to 1 in
> my example from original message. In example, is used,
> because on this site, timeout is reached. To be more specific about the
> segfault, here is gdb output:
> Core was generated by `./a.out'.
> Program terminated with signal 11, Segmentation fault.
> #0 0xb7745c79 in addbyter () from /usr/lib/
> (gdb) where
> #0 0xb7745c79 in addbyter () from /usr/lib/
> #1 0xb7746eff in dprintf_formatf () from /usr/lib/
> #2 0xb7747760 in curl_mvsnprintf () from /usr/lib/
> #3 0xb7745e02 in curl_msnprintf () from /usr/lib/
> #4 0xb7734e66 in Curl_failf () from /usr/lib/
> #5 0xb772a5f4 in Curl_resolv_timeout () from /usr/lib/
> #6 0xb6bc7d90 in ?? ()
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Ahah. DNS timeouts and multithreaded apps have some issues. To quote the
libcurl-tutorial, "When using multiple threads you should set the
CURLOPT_NOSIGNAL option to TRUE for all handles." Also, timeouts during
DNS using the native DNS resolver without configuring with
--enable-threaded-resolver can cause problems (e.g. segfaults) on some

>>> Dan
List admin:
Received on 2010-06-24

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET