[Scipy-tickets] [SciPy] #794: linalg.eig segmentation fault on unpickled arrays

SciPy scipy-tickets@scipy....
Sat Feb 21 03:00:45 CST 2009


#794: linalg.eig segmentation fault on unpickled arrays
--------------------------+-------------------------------------------------
 Reporter:  tzito         |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  high          |    Milestone:  0.8.0   
Component:  scipy.linalg  |      Version:          
 Severity:  critical      |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by stefan):

 Reproduce without pickle:

 {{{
 import numpy as np
 import scipy.linalg

 # Allocate 804 bytes of memory (allocated on boundary)
 a = np.arange(804, dtype=np.uint8)

 # Create an array with boundary offset 4
 z = np.frombuffer(a.data, offset=4, count=100, dtype=float)
 z.shape = 10, 10

 out = scipy.linalg.eig(z.T, overwrite_a=True)
 }}}

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


More information about the Scipy-tickets mailing list