[Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

Lev Maximov lev.maximov at gmail.com
Mon Mar 29 04:10:34 EDT 2021


I'm glad you sorted it out as the subject line sounded quite horrifying )

Best regards,
Lev

On Mon, Mar 29, 2021 at 2:54 PM Friedrich Romstedt <
friedrichromstedt at gmail.com> wrote:

> Hi Matti, Sebastian and Lev,
>
> Am Mo., 15. Feb. 2021 um 18:50 Uhr schrieb Lev Maximov <
> lev.maximov at gmail.com>:
> >
> > Try adding
> >     view->suboffsets = NULL;
> >     view->internal = NULL;
> > to Image_getbuffer
>
> finally I got it working easily using Lev's pointer cited above.  I
> didn't follow the valgrind approach furthermore, since I found it
> likely that it'd produce the same finding.
>
> This is just to let you know; I applied the fix several weeks ago.
>
> Many thanks,
> Friedrich
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20210329/96a64028/attachment.html>


More information about the NumPy-Discussion mailing list