cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: crash in iOS build

From: Brett Harrison <brett.harrison_at_musicmastermind.com>
Date: Wed, 8 Jan 2014 11:29:01 -0800

I turned off the SSL backend for now. With that turned off, I am only have
problems with 7.34.0.

I reproduced a problem (but not the crash) in the iOS example project.
 Maybe they are related.

From:
http://seiryu.home.comcast.net/~seiryu/libcurl-ios.html

I downloaded:
http://seiryu.home.comcast.net/~seiryu/software/ioscurl-7.33.0.tar.gz

I then downloaded:
http://curl.haxx.se/download/curl-7.34.0.tar.gz

export IPHONEOS_DEPLOYMENT_TARGET="4.3"
export
CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"

export CFLAGS="-arch armv7 -pipe -Os -gdwarf-2 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"

export LDFLAGS="-arch armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"

./configure --disable-shared --enable-static --host="armv7-apple-darwin"
--prefix=/Users/brett/Downloads/out --enable-threaded-resolver
--enable-debug --disable-optimize

make -j `sysctl -n hw.logicalcpu_max`

In the example project inlcuded in
ioscurl-7.33.0.tar.gz<http://seiryu.home.comcast.net/~seiryu/software/ioscurl-7.33.0.tar.gz>
.

I added these lines to the easy handle init.

        curl_easy_setopt(_curl, CURLOPT_CONNECTTIMEOUT, 30);

        curl_easy_setopt(_curl, CURLOPT_TIMEOUT_MS, 40000);
When running to the device (in my case an ipad). I changed the URL: to
http://www.cats.com (www.google.com and www.yahoo.com) always work.
cats.com always times out. Maybe it has something to do with the number of
IP addresses mapped in the DNS entry...

Running with the same build settings on 7.33.0 works correctly.

On Tue, Jan 7, 2014 at 2:05 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 7 Jan 2014, Brett Harrison wrote:
>
> I am trying to update our libcurl library from 7.21.3 to 7.33.0. I am
>> getting a rare but occasional crash with the new library. Do you know of
>> any changes in how I should use curl_multi_perform between 7.21.3 to
>> 7.33.0? Using 7.21.3 I do not get this crash.
>>
>
> Do you build them with the same SSL backend?

> I have also build v 7.34.0 with debug symbols and get the crash at what I
>> assume if the same place.
>>
>> * thread #36: tid = 0xa4a26, 0x01a10cee ZyaStoreTest`Curl_splay(i=timeval
>> at 0x0ba4da18, t=0x0e9795e4) + 46 at splay.c:52, name = 'CurlWorker, stop
>> reason = EXC_BAD_ACCESS (code=1, address=0xe9795f0)
>>
>
> Traditionally, getting crashes in the splay code have indicated problems
> with threading or memory related problems - in the application.
>
> I can't recall any notable known multi interface crashes in 7.34.0.
>
> --
>
> / 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 2014-01-08