Skip to content

esp32-s3: crash on os.sync() with freezefs mounted #1

@ned-pcs

Description

@ned-pcs

I've just added freezefs to my project, and am having problems with os.sync() crashing when it's called right after my freezefs module is loaded. If I os.umount() my freezefs module first, I can call os.sync() with no crash. I'm using v1.22.2 and have frozen my freezefs module. Unfortunately, I am not yet set up for debugging with this device.

I've traced the stack dump here:

py/obj.c:60
        return types[(uintptr_t)o_in & 0xf];

py/runtime.c:709
    const mp_obj_type_t *type = mp_obj_get_type(fun_in);

py/runtime.c:729
    return mp_call_function_n_kw(args[0], n_args + adjust, n_kw, args + 2 - adjust);

extmod/vfs_blockdev.c:124
                    mp_call_method_n_kw(0, 0, self->u.old.sync);

extmod/vfs_fat_diskio.c:121
        ret = mp_vfs_blockdev_ioctl(&vfs->blockdev, bp_op, 0);

extmod/modos.c:80 (discriminator 3)
        disk_ioctl(MP_OBJ_TO_PTR(vfs->obj), CTRL_SYNC, NULL);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions