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