[NumPy-Tickets] [NumPy] #1805: initialize_casting_tables() does never return on ARM

NumPy Trac numpy-tickets@scipy....
Thu Apr 21 18:09:20 CDT 2011


#1805: initialize_casting_tables() does never return on ARM
------------------------------------------------------+---------------------
 Reporter:  manowar                                   |       Owner:  somebody   
     Type:  defect                                    |      Status:  new        
 Priority:  normal                                    |   Milestone:  Unscheduled
Component:  Other                                     |     Version:  devel      
 Keywords:  arm, armv5tel, initialize_casting_tables  |  
------------------------------------------------------+---------------------
 Hi!

 I'm trying to port the NumPy to the armv5tel platform. While most of the
 code seem to work, there is a problem in initialize_casting_tables()
 function, numpy/core/src/multiarray/scalartypes.c.src:3642:

 the table index update operation

 k = _npy_next_larger_type_table[k]

 results in an infinite loop, because _npy_next_larger_type_table[0] is 255
 and _npy_next_larger_type_table[255] is 0. No loop escape (break)
 condition is either satisfied.

 So, the initialize_casting_tables() function does never return and the
 loading of the numpy module hangs forever in dl_load multiarray.so taking
 99% of CPU time.

 I'm not sure assuming that the problem is ARM-specific. What steps should
 I perform to expose the roots of the problem?


   TIA,
     Paul.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1805>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list