- Add patch developed by David Malcolm to fix segfaults caused by a missing incref
This commit is contained in:
parent
f50633920f
commit
ac3344cfb1
24
python-pycurl-fix-do_curl_reset-refcount.patch
Normal file
24
python-pycurl-fix-do_curl_reset-refcount.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
--- a/src/pycurl.c
|
||||||
|
+++ a/src/pycurl.c
|
||||||
|
@@ -1452,6 +1452,7 @@ do_curl_reset(CurlObject *self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ Py_INCREF(Py_None);
|
||||||
|
return Py_None;
|
||||||
|
}
|
||||||
|
|
||||||
|
--- a/tests/test_internals.py
|
||||||
|
+++ a/tests/test_internals.py
|
||||||
|
@@ -245,6 +245,11 @@ if 1 and gc:
|
||||||
|
if opts.verbose >= 1:
|
||||||
|
print "Tracked objects:", len(gc.get_objects())
|
||||||
|
|
||||||
|
+if 1:
|
||||||
|
+ # Ensure that the refcounting error in "reset" is fixed:
|
||||||
|
+ for i in xrange(100000):
|
||||||
|
+ c = Curl()
|
||||||
|
+ c.reset()
|
||||||
|
|
||||||
|
# /***********************************************************************
|
||||||
|
# // done
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-pycurl
|
Name: python-pycurl
|
||||||
Version: 7.19.0
|
Version: 7.19.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: A Python interface to libcurl
|
Summary: A Python interface to libcurl
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -10,7 +10,7 @@ License: LGPLv2+ or MIT
|
|||||||
URL: http://pycurl.sourceforge.net/
|
URL: http://pycurl.sourceforge.net/
|
||||||
Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
|
Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
|
||||||
Patch0: python-pycurl-no-static-libs.patch
|
Patch0: python-pycurl-no-static-libs.patch
|
||||||
|
Patch1: python-pycurl-fix-do_curl_reset-refcount.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -38,6 +38,7 @@ of features.
|
|||||||
%prep
|
%prep
|
||||||
%setup0 -q -n pycurl-%{version}
|
%setup0 -q -n pycurl-%{version}
|
||||||
%patch0 -p0
|
%patch0 -p0
|
||||||
|
%patch1 -p1
|
||||||
chmod a-x examples/*
|
chmod a-x examples/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -61,6 +62,9 @@ rm -rf %{buildroot}
|
|||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 17 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.19.0-7
|
||||||
|
- Add patch developed by David Malcolm to fix segfaults caused by a missing incref
|
||||||
|
|
||||||
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 7.19.0-6
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 7.19.0-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user