Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/tests/lib/libc/gen



In article <20120422085226.787F7175DD%cvs.netbsd.org@localhost>,
Martin Husemann <source-changes-d%NetBSD.org@localhost> 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



Home | Main Index | Thread Index | Old Index