cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1496 pointer realloc crash while doing curl_easy_perform

From: Puneet Singhal <pscoe2_at_users.sf.net>
Date: Sun, 12 Apr 2015 17:23:25 +0000

Yes, the overall code is multi-threaded... The crash generally happens in a separate thread but I have seen the crash in main thread too.

I too am unable to reproduce the crash but this does happen intermittently..

Will try using valgrind though...

Is it ok if I handle the SIGABRT to error out and retry the curl_easy_perform or do you feel that will be useless (which might be the case if the heap is actually ruined)

---
** [bugs:#1496] pointer realloc crash while doing curl_easy_perform**
**Status:** pending-needsinfo
**Labels:** getaddrinfo 
**Created:** Wed Apr 08, 2015 03:25 PM UTC by Puneet Singhal
**Last Updated:** Sun Apr 12, 2015 04:06 PM UTC
**Owner:** Daniel Stenberg
I use libcurl to download some files on the system but seems to be crashing intermittently.
Attaching system info and calling code in the ticket
libCurl version - 7.39.0
Crashed Thread:        24
Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
*** error for object 0x1400000017: pointer being realloc'd was not allocated
Crash Stack:
Thread 24 Crashed:
0   libsystem_kernel.dylib        	0x00007fff9c809286 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff97952b53 abort + 129
2   libsystem_malloc.dylib        	0x00007fff98e273cd realloc + 385
3   libsystem_c.dylib             	0x00007fff97958037 reallocf + 21
4   libsystem_info.dylib          	0x00007fff959d47d2 _mdns_hostent_append_alias + 129
5   libsystem_info.dylib          	0x00007fff959d42ae _mdns_query_callback + 248
6   libsystem_dnssd.dylib         	0x00007fff93bb0c9b handle_query_response + 243
7   libsystem_dnssd.dylib         	0x00007fff93baf1b8 DNSServiceProcessResult + 680
8   libsystem_info.dylib          	0x00007fff959d2c1e _mdns_search + 1592
9   libsystem_info.dylib          	0x00007fff959d9dd2 mdns_addrinfo + 525
10  libsystem_info.dylib          	0x00007fff959d9b85 search_addrinfo + 179
11  libsystem_info.dylib          	0x00007fff959d98da si_addrinfo + 1395
12  libsystem_info.dylib          	0x00007fff959d92c3 getaddrinfo + 179
13  se.haxx.curl.libcurl          	0x0000000110a465d9 Curl_getaddrinfo_ex + 40
14  se.haxx.curl.libcurl          	0x0000000110a42407 Curl_getaddrinfo + 267
15  se.haxx.curl.libcurl          	0x0000000110a19276 Curl_resolv + 243
16  se.haxx.curl.libcurl          	0x0000000110a1936e Curl_resolv_timeout + 119
17  se.haxx.curl.libcurl          	0x0000000110a2bcc3 create_conn + 11389
18  se.haxx.curl.libcurl          	0x0000000110a2bea1 Curl_connect + 37
19  se.haxx.curl.libcurl          	0x0000000110a3df3f multi_runsingle + 712
20  se.haxx.curl.libcurl          	0x0000000110a3f2c0 curl_multi_perform + 163
21  se.haxx.curl.libcurl          	0x0000000110a377b4 curl_easy_perform + 394
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2015-04-12

These mail archives are generated by hypermail.