cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1254 libcurl http get sometime segmentation fault

From: Dan Fandrich <dfandrich_at_users.sf.net>
Date: Fri, 28 Jun 2013 07:14:53 +0000

Can you get a stack dump for this crash? Have you tried a newer version? 7.22.0 is several years old now. You didn't show the code for http_get_callback or html_body, so without proof otherwise (like a stack dump), it's very likely the problem is in the app.

---
** [bugs:#1254] libcurl http get sometime segmentation fault**
**Status:** open
**Created:** Fri Jun 28, 2013 07:02 AM UTC by john zhou
**Last Updated:** Fri Jun 28, 2013 07:03 AM UTC
**Owner:** nobody
please help me
i use liburl https get data,sometime happen segmentation fault,
specifically,url include 6U is not ok


The url:https://61.219.119.101/echarge/echapi.asmx/ecardGet?sid=UojgLlWa6U:1372442051&data=[{"md":""}] is not ok;

the url:https://61.219.119.101/echarge/echapi.asmx/ecardGet?sid=UojgLlWaxU:1372442051&data=[{"md":""}] is ok;

curl version:
curl 7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3

linux version:
gcc version 4.6.3 Ubuntu/Linaro 4.6.3-1ubuntu5


my code :
CURL *curl;		
curl = curl_easy_init();
if(curl) { 
		//curl_easy_setopt(curl, CURLOPT_POST, 1); 
		curl_easy_setopt(curl, CURLOPT_URL, "https://61.219.119.101/echarge/echapi.asmx/ecardGet?sid=UojgLlWa6U:1372442051&data=[{\"md\":\"\"}]");
		curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);	
		curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); 
		curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_get_callback);
		curl_easy_setopt(curl, CURLOPT_WRITEDATA, html_body);
		curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 5);
		//UojgLlWa6U:1372442051
		//curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "sid=AxdnXdXckC:1371767608&data=[{\"md\":\"20111230222211\"}]");
		curl_easy_perform(curl);
		.................  

thanks

john 			
---
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 2013-06-28

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET