curl / Mailing Lists / curl-library / Single Mail


crash while trying to log.

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

HI All,

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

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.


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

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.


Received on 2018-04-11