Your message dated Sun, 26 Nov 2006 12:47:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#399440: fixed in python-numarray 1.5.2-2.2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-numarray
Version: 1.5.2-2
Severity: important
Tags: patch

executing the python script with python2.4 shows the decrement of None refcount:

import sys
import numarray

data1=numarray.arange(4096*2, type=numarray.Float32)
data2=numarray.arange(4096*2, type=numarray.Float32)

while True:
    print sys.getrefcount(None)
    val=numarray.dot(data1, data2)


I could trace this error down to the function NA_FromDimsStridesDescrAndData
in numarray/Src/libnumarray.ch .

The bug fix is:
--- python-numarray-1.5.2/Src/libnumarray.ch    2006-08-24 20:38:15.000000000 
+0200
+++ /home/achim/libnumarray.ch  2006-11-19 21:14:52.000000000 +0100
@@ -877,6 +877,7 @@
                if (!buf) return NULL;
        } else {
                buf = Py_None;
+               Py_INCREF(buf);
        }
        
        a = NA_NewAllFromBuffer( nd, dimensions, descr->type_num, buf, 




-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages python-numarray depends on:
ii  lapack3 [liblapack.so.3] 3.0.20000531a-6 library of linear algebra routines
ii  libc6                    2.3.6.ds1-7     GNU C Library: Shared libraries
ii  libg2c0                  1:3.4.6-4       Runtime library for GNU Fortran 77
ii  python                   2.4.3-11        An interactive high-level object-o
ii  python-central           0.5.10          register and build utility for Pyt
ii  refblas3 [libblas.so.3]  1.2-8           Basic Linear Algebra Subroutines 3

python-numarray recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: python-numarray
Source-Version: 1.5.2-2.2

We believe that the bug you reported is fixed in the latest version of
python-numarray, which is due to be installed in the Debian FTP archive:

python-numarray-doc_1.5.2-2.2_all.deb
  to pool/main/p/python-numarray/python-numarray-doc_1.5.2-2.2_all.deb
python-numarray-ext_1.5.2-2.2_i386.deb
  to pool/main/p/python-numarray/python-numarray-ext_1.5.2-2.2_i386.deb
python-numarray_1.5.2-2.2.diff.gz
  to pool/main/p/python-numarray/python-numarray_1.5.2-2.2.diff.gz
python-numarray_1.5.2-2.2.dsc
  to pool/main/p/python-numarray/python-numarray_1.5.2-2.2.dsc
python-numarray_1.5.2-2.2_i386.deb
  to pool/main/p/python-numarray/python-numarray_1.5.2-2.2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Viehmann <[EMAIL PROTECTED]> (supplier of updated python-numarray 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 26 Nov 2006 11:59:24 +0100
Source: python-numarray
Binary: python-numarray python-numarray-doc python-numarray-ext
Architecture: source all i386
Version: 1.5.2-2.2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[EMAIL PROTECTED]>
Changed-By: Thomas Viehmann <[EMAIL PROTECTED]>
Description: 
 python-numarray - An array processing package modelled after Python-Numeric
 python-numarray-doc - An array processing package for Python (documentation)
 python-numarray-ext - Extension modules for Python array processing
Closes: 399440
Changes: 
 python-numarray (1.5.2-2.2) unstable; urgency=medium
 .
   * Non-maintainer upload at maintainer suggestion (see bug log).
     Medium urgency for important bug and to not stall last NMU's
     testing progression.
   * Keep Py_None refcount accurate. Closes: #399440
     Thanks to Achim Gaedke for submitting the bug and patch.
Files: 
 8e663d1705e63a0ad7bcf743728e3237 874 python optional 
python-numarray_1.5.2-2.2.dsc
 8d315b480c084348f14654bc8f91797e 6886 python optional 
python-numarray_1.5.2-2.2.diff.gz
 6ada753127679efeb93cccf44c189545 570418 python optional 
python-numarray_1.5.2-2.2_i386.deb
 1c8b06e1f7f5b865aed5a1148b5e5fdc 186884 python optional 
python-numarray-ext_1.5.2-2.2_i386.deb
 2f74edaedcf4767d28bdc6c4beb6099a 292998 doc optional 
python-numarray-doc_1.5.2-2.2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: GnuPG key at <http://thomas.viehmann.net/>

iD8DBQFFaYnbriZpaaIa1PkRAjoLAJ42YO7Z0h5+sjfu0wHVakfMHfjpbwCgoJDj
hso9MzuQM/c/ls93z4XrHTE=
=qeh3
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to