Linux and FreeBSD occasionally send SI_KERNEL codes, nonexistent on other platforms.
Problem caught on NetBSD.
Differential D12659
Use SI_KERNEL on platforms defining it krytarowski on Sep 4 2015, 7:36 PM. Authored by
Details Linux and FreeBSD occasionally send SI_KERNEL codes, nonexistent on other platforms. Problem caught on NetBSD.
Diff Detail
Event TimelineComment Actions Makes sense. Adding a tiny comment explaining which platforms get SI_KERNEL might be a good idea here. Comment Actions Can I replace the following comment: // Linux will occasionally send spurious SI_KERNEL codes. // (this is poorly documented in sigaction) // One way to get this is via unaligned SIMD loads. To something more generic: // Some platforms will occasionally send nonstandard spurious SI_KERNEL codes. // One way to get this is via unaligned SIMD loads. This is not exactly what you asked for but makes it more generic and thus not desynchronized with the reality when the time will pass. Comment Actions I agree - there's no point in trying to manually keep a list in the comment up to date. |