Skip to content

gpio:stop/0 on esp32 causes VM crash #816

@UncleGrumpy

Description

@UncleGrumpy

I have deleted the AtomVM/build and AtomVM/src/platforms/esp32/build directories and done a complete clean rebuild of the esp32 image several times. The following is the simplest way to reproduce the crash is:

start() ->
    _GPIO = gpio:start(),
    timer:sleep(500),
    io:format("Stopping GPIO driver.~n"),
    gpio:stop().

For some reason I have not had stack traces with the last several rebuild of the image either, but the output is similar to:

AtomVM init.
I (876) sys: Loaded BEAM partition main.avm at address 0x210000 (size=1048576 bytes)
Starting application...

assert failed: tlsf_free tlsf.c:1119 (!block_is_free(block) && "block already marked as free")


Backtrace: 0x4008214e:0x3ffc63a0 0x4008c15d:0x3ffc63c0 0x40093c01:0x3ffc63e0 0x400918b7:0x3ffc6500 0x40091760:0x3ffc6520 0x4008251a:0x3ffc6540 0x40093c31:0x3ffc6560 0x400e4afe:0x3ffc6580 0x4013b31d:0x3ffc65a0 0x4013b3b3:0x3ffc65c0 0x400e5199:0x3ffc65e0 0x400da626:0x3ffc6670 0x400d16c4:0x3ffc6690 0x4008f655:0x3ffc66b0




ELF file SHA256: 759c8a1d95a85310

CPU halted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions