Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154969 - [PATCH] pycurl-7.15.4.2 threading bug breaks bzr, etc
Summary: [PATCH] pycurl-7.15.4.2 threading bug breaks bzr, etc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-12 22:15 UTC by Donnie Berkholz (RETIRED)
Modified: 2006-12-08 18:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Donnie Berkholz (RETIRED) gentoo-dev 2006-11-12 22:15:07 UTC
There's a small bug in pycurl that breaks bzr, among other things. I got it from the Debian bug in the URL.

diff -urN pycurl-7.15.4.2.orig/src/pycurl.c pycurl-7.15.4.2/src/pycurl.c
--- pycurl-7.15.4.2.orig/src/pycurl.c   2006-11-09 20:53:44.000000000 -0800
+++ pycurl-7.15.4.2/src/pycurl.c    2006-11-09 20:54:03.000000000 -0800
@@ -416,7 +416,7 @@
 
 static int pycurl_ssl_mutex_lock(void **m)
 {
-    return PyThread_acquire_lock(*((PyThread_type_lock *) m), 1);
+    return !PyThread_acquire_lock(*((PyThread_type_lock *) m), 1);
 }
 
 static int pycurl_ssl_mutex_unlock(void **m)
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-12-08 18:47:34 UTC
fixed in 7.15.4.2-r1. I've also added pycurl-7.15.5.1 (that included this fix). Thanks Donnie