[Python-modules-team] Bug#690187: PyCurl segfault while invoking reset() function multiple times

Emmanuel Bouthenot kolter at debian.org
Wed Oct 10 22:20:32 UTC 2012

Package: python-pycurl
Version: 7.19.0-5
Severity: important
Tags: patch


PyCurl segfault while invoking reset() function multiple times. Here is
an example on how to reproduce the crash:

$ printf "import pycurl\nc = pycurl.Curl()\nfor i in xrange(100000):\n\tc.reset()\n" | python

This bug has been fixed upstream for ages[1][2].

Attached is a patch which includes the upstream fix reworked to apply
cleanly on the Debian sources.


[1] http://sourceforge.net/tracker/?func=detail&aid=2893665&group_id=28236&atid=392777
[2] http://pycurl.cvs.sourceforge.net/viewvc/pycurl/pycurl/src/pycurl.c?r1=1.148&r2=1.149

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-refcount-bug-segfault-in-reset-function.patch
Type: text/x-diff
Size: 5698 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20121011/ce8db735/attachment.patch>

More information about the Python-modules-team mailing list