[pypy-issue] Issue #1940: changeset 68c97410a30e causes segfault in numpypy casting float->int8 (pypy/pypy)

mattip issues-reply at bitbucket.org
Tue Dec 2 14:45:47 CET 2014


New issue 1940: changeset 68c97410a30e causes segfault in numpypy casting float->int8
https://bitbucket.org/pypy/pypy/issue/1940/changeset-68c97410a30e-causes-segfault-in

mattip:

The following works pre-`68c97410a30e`, fails after

    import _numpypy.multiarray as np
    b = np.arange(1500).astype('int8')

I tried writing a test in micronumpy/test/test_zjit , but it passes.
Note I could not find a way to cast `W_Int8Box.value` back to float line 32 correctly even before the changeset, but that does not seem to be the issue here.
Here is the diff for the test [https://gist.github.com/mattip/e0cea71ee0102ac375fb](https://gist.github.com/mattip/e0cea71ee0102ac375fb)




More information about the pypy-issue mailing list