[Scipy-tickets] [SciPy] #343: crash with 'todense' after scipy.io.mmread

SciPy scipy-tickets at scipy.net
Thu Jan 11 01:35:21 CST 2007

#343: crash with 'todense' after scipy.io.mmread
 Reporter:  jdpipe        |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:          
Component:  scipy.sparse  |     Version:          
 Severity:  critical      |    Keywords:          
 Hi there

 I'm getting a big fat crash with 'todense' after I load in a matrix using
 scipy.io.mmread. The Matrix Market file I have createed myself -- there's
 not guarantee that it is correctly formed. But scipy shouldn't crash,

 Will attach the offending matrix.


 VERSION is 0.5.1 (ubuntu 6.10) not shown in list

 john at roadwork:~$ ipython
 Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
 Type "copyright", "credits" or "license" for more information.

 IPython 0.7.2 -- An enhanced Interactive Python.
 ?       -> Introduction to IPython's features.
 %magic  -> Information about IPython's 'magic' % functions.
 help    -> Python's own help system.
 object? -> Details about 'object'. ?object also works, ?? prints more.

 In [1]: import scipy, scipy.io

 In [2]: scipy.io.mmread("/home/john/ascend/slv3mmio.mtx")
 <19x19 sparse matrix of type '<type 'numpy.float64'>'
         with 49 stored elements in COOrdinate format>

 In [3]: M = scipy.io.mmread("/home/john/ascend/slv3mmio.mtx")

 In [4]: D = M.todense()
 Segmentation fault (core dumped)
 john at roadwork:~$

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

More information about the Scipy-tickets mailing list