Code Monkey home page Code Monkey logo

Comments (5)

jepler avatar jepler commented on June 26, 2024

should also check slice deletion for similar problem

from micropython-ulab.

v923z avatar v923z commented on June 26, 2024

OK, but is this an issue in ulab as such, or is something in micropython amiss?

from micropython-ulab.

jepler avatar jepler commented on June 26, 2024

The site of the crash is

0x0000555555584a03 in ndarray_from_mp_obj (obj=0x0, 
    other_type=other_type@entry=0 '\000')
    at /home/jepler/src/ulab/code/ndarray.c:1696
1696	    if(mp_obj_is_int(obj)) {
(gdb) where
#0  0x0000555555584a03 in ndarray_from_mp_obj (obj=0x0, 
    other_type=other_type@entry=0 '\000')
    at /home/jepler/src/ulab/code/ndarray.c:1696
#1  0x0000555555584e66 in ndarray_subscr (self_in=0x7ffff7a4e360, index=0x1, 
    value=<optimized out>) at /home/jepler/src/ulab/code/ndarray.c:1446
#2  0x00005555555b4a2e in mp_obj_subscr (base=0x7ffff7a4e360, index=0x1, 
    value=0x0) at ../../py/obj.c:538

A value of MP_OBJ_NULL (0 in this build) is used with the subscr method to delete. I think the proper fix for this is in ulab and raises an error when the argument to ndarray_subscr is MP_OBJ_NULL.

from micropython-ulab.

v923z avatar v923z commented on June 26, 2024

@jepler Thanks for raising the issue and the suggestion!

Fixed by #619.

from micropython-ulab.

jepler avatar jepler commented on June 26, 2024

Thanks for the fix

from micropython-ulab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.