Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using storage.VfsFat(sd) object after sd has been deinit causes safemode crash #9417

Closed
RetiredWizard opened this issue Jul 9, 2024 · 0 comments · Fixed by #9418
Closed
Assignees
Labels
Milestone

Comments

@RetiredWizard
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants