bug-gnulib
[Top][All Lists]
Advanced

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

Re: [RFC PATCH] test-c-stack2.sh: skip if the platform sent SIGILL on an


From: Bruno Haible
Subject: Re: [RFC PATCH] test-c-stack2.sh: skip if the platform sent SIGILL on an invalid address.
Date: Sat, 29 Dec 2018 15:54:45 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

I wrote:
> I believe you should make it signal a SIGSEGV or SIGBUS, not SIGILL, for
> the following reasons:

A third reason is that the application will want to react depending on the
memory address which produced the fault. (I mean the memory address of the
data, not of the instruction.) This memory address is available as si_addr
in the siginfo struct only for SIGSEGV and SIGBUS, see
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]