[Numpy-discussion] crash at prompt exit after running test

Pauli Virtanen pav at iki.fi
Tue Mar 9 18:07:34 EST 2010


ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti:
> thinking about it, this morning there was a fedora update to python, so 
> I am using 2.6.2-4.fc12.
> Looks like the problem is in python itself, hence this piece of info.

That the problem would be in Python is not so clear to me. Can you try
running it with the previous Python shipped by Fedora? Do you see the
problem then? What's the previous version, btw?

Memory errors are somewhat difficult to debug. Can you try running only
a certain subset of the tests, first

	nosetests numpy.core

Be sure to set Pythonpath so that you get the correct Numpy version. If
it segfaults, proceed to (under numpy/core/tests)

	nosetests test_multiarray.py
	nosetests test_multiarray.py:TestNewBufferProtocol

Since the crash occurs in cyclic garbage collection, I'm doubting a bit
the numpy/core/src/multiarray/numpymemoryview.c implementation, since
that's the only part in Numpy that supports that.

Alternatively, just replace numpymemoryview.c with the attached one
which has cyclic GC stripped, and see if you still get the crash.

Cheers,
Pauli

-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpymemoryview.c
Type: text/x-csrc
Size: 8573 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100310/1d7ee2a5/attachment.c>


More information about the NumPy-Discussion mailing list