Skip to content

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

@siteswapjuggler

Description

@siteswapjuggler

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

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