Lispython / human_curl

Simple Human wrapper for cURL library
http://h.wrttn.me/human_curl
Other
205 stars 43 forks source link

Segmentation fault in human_curl #42

Closed pankajkgarg closed 10 years ago

pankajkgarg commented 10 years ago

I get a segmentation fault while using human_curl in some urls. The code which creates problem is as following

import human_curl
human_curl.get("https://count.carrierzone.com/app/count_server/count.js")

This causes the segmentation fault with following message [1] 7781 segmentation fault (core dumped) ipython

It is being run on Ubuntu 14.04 on Python 2.7.6 and PyCurl version is as following 'PycURL/7.19.5 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3'

Lispython commented 10 years ago

You need to collect more info about. I can't reproduce this error when loading that url. Can you run this script without ipython?

pankajkgarg commented 10 years ago

It runs fine on my Macbook too, but I tried it on 3 servers with Ubuntu 14.04 (with and without ipython) and it failed on all 3 of them with a segmentation fault.

pankajkgarg commented 10 years ago

Turns out it is a bug in Curl version 7.35.0 which is being used on Ubuntu 14.04. (https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1310636)

Solved the problem by upgrading curl to 7.37.1 (http://www.unixbuzz.com/2014/09/install-curl-7-37-1-command-line-tool-ubuntu-14-04/)