[NumPy-Tickets] [NumPy] #1578: test_from_unicode crashes on Python 2.7 and Numpy 2.0.0-devel

NumPy Trac numpy-tickets@scipy....
Sun Apr 8 14:41:31 CDT 2012


#1578: test_from_unicode crashes on Python 2.7 and Numpy 2.0.0-devel
-------------------------+--------------------------------------------------
  Reporter:  mbudisic    |       Owner:  somebody   
      Type:  defect      |      Status:  reopened   
  Priority:  normal      |   Milestone:  Unscheduled
 Component:  numpy.core  |     Version:  devel      
Resolution:              |    Keywords:             
-------------------------+--------------------------------------------------

Comment(by charris):

 The easiest way I've found to reproduce this for 2.7:


 {{{
 $charris@f16 tests (master)$ python-debug
 Python 2.7.2 (default, Oct 27 2011, 01:39:22)
 [GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 /home/charris/.local/lib/python2.7/site-
 packages/numpy/random/__init__.py:91: RuntimeWarning: numpy.ndarray size
 changed, may indicate binary incompatibility
   from mtrand import *
 [148661 refs]
 >>> a = np.array([u'abc'])[0]
 [148667 refs]
 >>> del a
 Debug memory block at address p=0x2f2f0d0: API 'm'
     16 bytes originally requested
     The 7 pad bytes at p-7 are FORBIDDENBYTE, as expected.
     The 8 pad bytes at tail=0x2f2f0e0 are FORBIDDENBYTE, as expected.
     The block was made by call #253339 to debug malloc/realloc.
     Data at p: 61 00 00 00 62 00 00 00 63 00 00 00 00 00 00 00
 Fatal Python error: bad ID: Allocated using API 'm', verified using API
 'o'
 Aborted (core dumped)

 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1578#comment:15>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list