curl / Mailing Lists / curl-library / Single Mail

curl-library

crash while trying to log.

From: surya chandrika <contactsuryac_at_gmail.com>
Date: Wed, 11 Apr 2018 10:42:02 +0530

HI All,

Yesterday we faced an issue. for our application when socket logging was
enabled.

In debug build (when compiled with -g option) our application worked fine.
When we released the application in released mode (without -g option),
application crashes while trying to wrtie socket logs.
res = curl_easy_setopt( curl_handle, CURLOPT_DEBUGFUNCTION, log_function )

we also set
 SETOPT(query, CURLOPT_VERBOSE, 1 ); during initialising of the curl handle.

BT:

#6 0x00000000004e9e2d in xxxxx::log_function(void*, curl_infotype, char*,
unsigned long, void*) ()
#7 0x00007f9fac2e0118 in Curl_debug () from /lib64/libcurl.so.4
#8 0x00007f9fac2e02d4 in Curl_infof () from /lib64/libcurl.so.4
#9 0x00007f9fac2ed4ea in Curl_setup_conn () from /lib64/libcurl.so.4
#10 0x00007f9fac2ed70c in Curl_connect () from /lib64/libcurl.so.4
#11 0x00007f9fac2fd320 in multi_runsingle () from /lib64/libcurl.so.4
#12 0x00007f9fac2fe181 in curl_multi_perform () from /lib64/libcurl.so.4

in debug build every was working fine, to reproduce issue, we removed -g
compiler flag and issue was reproduced. after reproducing issue, even in
debug build we could reproduce the issue. not sure why.

Please provide your comments if you have faced similar issue.

Thanks
Surya

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-04-11