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

Unplugging SD card while reading file on it result in a system crash #8

Open
siteswapjuggler opened this issue Mar 14, 2021 · 0 comments

Comments

@siteswapjuggler
Copy link

Hello,

I'm experiencing this problem in one of our projects.

hardware: NanoPi Neo Core LTS
system: nanopi-neo-core_eflasher_friendlycore-xenial_4.14_armhf_20191230 running from the internal 8 Gb emmc
use case: unplug sd card while reading a file on it
problem: read() function in my c program doesn't send error, program get stuck, system random behaviour and crash

The problem does not appear if we use USB stick instead of a SD card, with the USB stick the read function return an error when the USB stick is unplugged, the program can continue and the system doesn't crash.

Help would be greatly appreciated.

Sincerely

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

No branches or pull requests

1 participant