История изменений
Исправление SZT, (текущая версия) :
Как с точки зрения приложения будет выглядеть ошибка (SIGBUS?)
https://stackoverflow.com/a/54371304
I/O errors on the underlying file (e.g. its removable drive is unplugged or optical media is ejected, disk full when writing, etc.) while accessing its mapped memory are reported to the application as the SIGSEGV/SIGBUS signals on POSIX, and the EXECUTE_IN_PAGE_ERROR structured exception on Windows. All code accessing mapped memory must be prepared to handle these errors, which don't normally occur when accessing memory.
в какой момент она появится и как ее правильно обработать?
Появится при попытке прочитать что-то. Как обрабатывать - через навешивания обработчика на сигнал, man 2 signal.
Исходная версия SZT, :
Как с точки зрения приложения будет выглядеть ошибка (SIGBUS?)
https://stackoverflow.com/a/54371304
I/O errors on the underlying file (e.g. its removable drive is unplugged or optical media is ejected, disk full when writing, etc.) while accessing its mapped memory are reported to the application as the SIGSEGV/SIGBUS signals on POSIX, and the EXECUTE_IN_PAGE_ERROR structured exception on Windows. All code accessing mapped memory must be prepared to handle these errors, which don't normally occur when accessing memory.
в какой момент она появится и как ее правильно обработать?
Появится при попытке прочитать что-то. Как обрабатывать - через навешивания обработчика на сигнал, man 2 signal.