8000 Using storage.VfsFat(sd) object after sd has been deinit causes safemode crash · Issue #9417 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Using storage.VfsFat(sd) object after sd has been deinit causes safemode crash #9417
Closed
@RetiredWizard

Description

@RetiredWizard

CircuitPython version

Adafruit CircuitPython 9.1.0-beta.4 on 2024-07-03; LILYGO T-DECK with ESP32S3

Adafruit CircuitPython 9.1.0-beta.4-5-g8fbbb598ff-dirty on 2024-07-08; MakerFabs-ESP32-S3-Parallel-TFT-With-Touch-7inch with ESP32S3

Code/REPL

import storage
import board
import sdcardio

sd = sdcardio.SDCard(board.SPI(),board.SDCARD_CS)
vfs = storage.VfsFat(sd)

sd.deinit()

print(vfs.label)
vfs.mkdir('/xxx')

Behavior

If either of the last two statements are executed the board crashes into safe mode. I didn't try every attribute of the vfs object so there may be more that cause the crash as well.

Description

The crash also occurred when using the sdioio module being worked on for issue #8498

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0