cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl for Android

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Apr 2013 16:24:13 +0200 (CEST)

On Mon, 8 Apr 2013, Lucas Santos wrote:

> I'm an Android developer and nowadays I'm using libcurl (NDK) to make some
> posts to use some webservices of my platform. But I faced a big problem:
> when the lib try to resolve the server name in the function
> curl_getaddrinfo_ex the application simply crashes. A segfault occurs.

Using which libcurl version? Using what Android version?

I found this bug report from Mozilla "Bionic domain name functions are not
thread-safe on pre-3.0 Android":
https://bugzilla.mozilla.org/show_bug.cgi?id=687367 (also blogged about here:
http://boomswaggerboom.wordpress.com/2011/12/18/improving-dns-performance-in-firefox-for-android/)

It mentions the fopen from stdio to be a reason, and the stacktrace from the
libcurl posting from 2007 also evidently shows fopen...

Any chance that's what you're experiencing?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-08