cURL / Mailing Lists / curl-library / Single Mail

curl-library

Error when curl_easy_perform( ) function returns

From: ¾©ÌÎ Ðì <xjt_walter_at_yahoo.com.cn>
Date: Thu, 5 Jun 2008 21:17:29 +0800 (CST)

Hi,
   
  After sending commands using curl_easy_perform(), our program core dumped with the following error message:
   
  ///////////////////////////////////////////////////////////////////////////////////////////////////////////
  * Trying 10.8.15.58... * connected
* Connected to 10.8.15.58 (10.8.15.58) port 80
* Server auth using Basic with user 'trace1'
> POST /cgi-bin/remcliexec.tcl HTTP/1.1
Authorization: Basic dHJhY2UxOkhscjc4OVNnc24=
Host: 10.8.15.58
Pragma: no-cache
Accept: */*
Content-Length: 294
Content-Type: application/x-www-form-urlencoded

execsh=mmi&cliLines=%3c%3fxml version=%221%2e0%22%3f%3e%3cCLIREQUEST Version=%221%2e0%22%3e%3cTRANSACTION Number=%221%22%3e%3 ivateimsi n112233445588888%3ar7508%3as0%3a1%3c%2fCMDTEXT%3e%3c%2fCMDREQUEST%3e%3c%2fTRANSACTION%3e%3c%2fCLIREQUEST%3e< HTTP/1
< Date: Thu, 05 Jun 2008 10:15:16 GMT
< Server: Apache/1.3.6 (Unix) mod_auth_pam/1.1.1 mod_ssl/2.3.11 OpenSSL/0.9.7d
< Transfer-Encoding: chunked
< Content-Type: text/html
* Connection #0 to host 10.8.15.58 left intact
* Closing connection #0
*** glibc detected *** double free or corruption (fasttop): 0x084fa4a8 ***
   
   
  ///////////////////////////////////////////////////////////////////////////////////////////////////////
   
  Pls pay attention to the last two lines of this message, I think it is the key part, but I don't exactly know what does it mean.
   
  Our program background:
   
  multi-thread, but calls curl_global_init(CURL_GLOBAL_SSL) before all the thread starting, and there are:
  //////////////////////////////////////////////////////////////////////////////////////////////////
  curl_easy_init();
  CURLcode resultCode = curl_easy_perform( c );
  curl_easy_cleanup( c );
  ///////////////////////////////////////////////////////////////////////////////////////////////////
   
  called sequencely in the thread function. everytime the program coredumps after execution of curl_easy_perform( c ) with the previous error.
   
  Thanks in advance!
   
  Regards,
  Walter

       
---------------------------------
 ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡
Received on 2008-06-05