GithubHelp home page GithubHelp logo

Strange (out of memory?) crash about esp-hal HOT 4 CLOSED

t-moe avatar t-moe commented on July 28, 2024
Strange (out of memory?) crash

from esp-hal.

Comments (4)

t-moe avatar t-moe commented on July 28, 2024 1

Ok. Thanks.

Then I will close this, since enabling flip-link yields the behavior I expected and I have some other pressing things to take care of first before going down the rabbit hole here.

from esp-hal.

bjoernQ avatar bjoernQ commented on July 28, 2024

I can only reproduce the crash in debug mode - in release it's fine. (and usually, release should be the preferred build profile)

Seeing the Guru Meditation usually happens if something crashes before esp-hal gets a chance to set the interrupt-vector. That is not the case here - probably the code just manages to even overwrite the interrupt vector

flip-link is not a default - with flip-link enabled I get


Stack overflow detected at 0x42035fc6 called by 0x42033e54
0x42035fc6 - core::intrinsics::is_aligned_and_not_null
    at C:\Users\Bjoern\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\intrinsics.rs:2635
0x42033e54 - core::slice::raw::from_raw_parts::runtime
    at C:\Users\Bjoern\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\slice\raw.rs:99

from esp-hal.

t-moe avatar t-moe commented on July 28, 2024

Thanks for the fast reply @bjoernQ and for trying this out.

Do you think it is worth to additionally investigate why it still crashes? Or should we close this with "its up to the compiler to allocate structures as he wants" (and two structures of the same size, dont necessarily need to be allocated the same way) ?

from esp-hal.

bjoernQ avatar bjoernQ commented on July 28, 2024

I guess analyzing it is a lot of effort (especially the generated assembly in debug mode is hard to read) and I'm not sure it will yield any useable insights.

If you still want to look into what is really happening and share your results - that's certainly welcome

from esp-hal.

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.