[Scipy-tickets] [SciPy] #1139: Weave.inline with Blitz type converters cause segfault when accessing numpy array locations >2GB into array

SciPy Trac scipy-tickets@scipy....
Sat Mar 27 13:44:50 CDT 2010


#1139: Weave.inline with Blitz type converters cause segfault when accessing numpy
array locations >2GB into array
--------------------------------------+-------------------------------------
 Reporter:  yoden                     |       Owner:  somebody
     Type:  defect                    |      Status:  new     
 Priority:  normal                    |   Milestone:  0.8.0   
Component:  scipy.weave               |     Version:  0.7.0   
 Keywords:  blitz type converter 2GB  |  
--------------------------------------+-------------------------------------
 '''What I expect to happen:'''

 weave.inline and blitz type converters access numpy arrays just like in
 python

 '''What happens:'''

 Segfault when cells above 2GB are accessed.  Python can access the entire
 array just fine.

 ----

 Presumably something in the indexing code of the blitz type converters is
 getting cast to an int32, because this happens on 64 bit machines.  I've
 attached a test case which reproduces the bug.  You might need to change
 it a bit if the segfault happens before stdout is flushed.

 '''Expected output of test case:'''

 {{{
 python total 15994
 weave_total 15994


 python total 15998
 weave_total 15998
 }}}


 '''Actual output of test case:'''

 {{{
 python total 15994
 weave_total 15994


 Segmentation fault
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1139>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list