[Python-apps-commits] r9293 - in packages/cython/trunk/debian (3 files)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Thu Dec 6 19:51:20 UTC 2012


    Date: Thursday, December 6, 2012 @ 19:51:18
  Author: yoh
Revision: 9293

0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch + calmed down -- upload to experimental

Added:
  packages/cython/trunk/debian/patches/0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch
Modified:
  packages/cython/trunk/debian/changelog
  packages/cython/trunk/debian/patches/series

Modified: packages/cython/trunk/debian/changelog
===================================================================
--- packages/cython/trunk/debian/changelog	2012-12-06 19:51:06 UTC (rev 9292)
+++ packages/cython/trunk/debian/changelog	2012-12-06 19:51:18 UTC (rev 9293)
@@ -1,10 +1,12 @@
-cython (0.17.2-1) unstable; urgency=low
+cython (0.17.2-1) experimental; urgency=low
 
   * Bugfix upstream release with post-release fixes:
     - 0001-keep-longness-when-folding-negative-integer-constant.patch
     - 0003-Fix-compiler-crash.patch
     - 0005-fix-cimport-cython-in-string-code-fragments.patch
     - 0006-fix-refnanny-code-for-del-statement-inside-of-genera.patch
+    - 0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch
+      (Closes: #692313)
 
  -- Yaroslav Halchenko <debian at onerussian.com>  Mon, 03 Dec 2012 10:59:34 -0500
 

Added: packages/cython/trunk/debian/patches/0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch
===================================================================
--- packages/cython/trunk/debian/patches/0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch	                        (rev 0)
+++ packages/cython/trunk/debian/patches/0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch	2012-12-06 19:51:18 UTC (rev 9293)
@@ -0,0 +1,30 @@
+From af9cfeb5f94d9cd4f2989fc8e111c33208494ba4 Mon Sep 17 00:00:00 2001
+From: Yaroslav Halchenko <debian at onerussian.com>
+Date: Wed, 5 Dec 2012 11:51:18 -0500
+Subject: [PATCH] fix analysis of entry to be a weakref (typo introduced in
+ d96dfd)
+
+Originally reported in Debian http://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=692313
+Lead to crash with python-dbg:
+
+  python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion 'gc->gc.gc_refs != 0' failed
+---
+ Cython/Compiler/Symtab.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py
+index 4631d73..6ed9479 100644
+--- a/Cython/Compiler/Symtab.py
++++ b/Cython/Compiler/Symtab.py
+@@ -802,7 +802,7 @@ class Scope(object):
+ 
+         for entry in self.var_entries:
+             if entry.type.is_pyobject:
+-                if include_weakref or entry.name != "weakref":
++                if include_weakref or entry.name != "__weakref__":
+                     py_attrs.append(entry)
+             elif entry.type == PyrexTypes.c_py_buffer_type:
+                 py_buffers.append(entry)
+-- 
+1.8.0
+

Modified: packages/cython/trunk/debian/patches/series
===================================================================
--- packages/cython/trunk/debian/patches/series	2012-12-06 19:51:06 UTC (rev 9292)
+++ packages/cython/trunk/debian/patches/series	2012-12-06 19:51:18 UTC (rev 9293)
@@ -2,3 +2,4 @@
 0003-Fix-compiler-crash.patch
 0005-fix-cimport-cython-in-string-code-fragments.patch
 0006-fix-refnanny-code-for-del-statement-inside-of-genera.patch
+0001-fix-analysis-of-entry-to-be-a-weakref-typo-introduce.patch




More information about the Python-apps-commits mailing list