In article <20120422085226.787f717...@cvs.netbsd.org>, Martin Husemann <source-changes-d@NetBSD.org> wrote: >Module Name: src >Committed By: martin >Date: Sun Apr 22 08:52:26 UTC 2012 > >Modified Files: > src/tests/lib/libc/gen: t_siginfo.c > >Log Message: >Do not compare si_addr (address of faulting instruction) against the >unaligned data address causing the fault - this will always fail. >If anybody knows a portable way to get the data address involved in the >fault, please fix the test case as originally intended.
There is no portable way to do this; sigbus according to ToG does not define what si_addr contains. If we want to exceed the standard we need to provide and document what's available depending on the processor architecture. christos