cURL / Mailing Lists / curl-library / Single Mail

curl-library

RES: libcurl for Android

From: Lucas Santos <lucas.santos_at_truetech.com.br>
Date: Mon, 8 Apr 2013 14:57:04 +0000

Hi Daniel,
I'm using libcurl 7.29 and I've tested on Android 2.2 and 4.1 (our target requirement is 2.2 - API Level 8)
I also tried isolating the call to curl with a mutex but without success either.

It's hard to pinpoint the problem because we still haven't been able to get a stacktrace out of ndk-gdb.

Thanks a lot.

 
Lucas Santos

Software Developer

11 3040 5444 
Fax: 3040 5449

www.truetech.com.br

-----Mensagem original-----
De: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] Em nome de Daniel Stenberg
Enviada em: segunda-feira, 8 de abril de 2013 11:24
Para: libcurl development
Assunto: Re: libcurl for Android

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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-08