Suppressing SIGBUS signals
Suppressing SIGBUS signals
Posted Jun 26, 2021 9:41 UTC (Sat) by roc (subscriber, #30627)In reply to: Suppressing SIGBUS signals by zlynx
Parent article: Suppressing SIGBUS signals
Finding zeroes in some pages is perfectly reasonably behaviour. After all, the file could have just contained zeroes there to start with. Rust safety only requires that &[u8] reference a range of memory that doesn't change and doesn't cause a crash if you access it.
If MAP_NOSIGBUS still triggers SIGBUS on I/O errors then I think it is misnamed.