[Bug 206503] [exp-run] Correct type of 'ss_sp' in stack_t and struct sigstack
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 22 19:28:02 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206503
Bug ID: 206503
Summary: [exp-run] Correct type of 'ss_sp' in stack_t and
struct sigstack
Product: Ports & Packages
Version: Latest
Hardware: Any
URL: https://github.com/freebsd/freebsd/compare/master...bs
djhb:sigstack_void.diff
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Ports Framework
Assignee: portmgr at FreeBSD.org
Reporter: jhb at FreeBSD.org
CC: freebsd-ports-bugs at FreeBSD.org
POSIX requires the 'ss_sp' fields in 'stack_t' (used with sigaltstack(2)) and
'struct sigstack' (used with sigstack(2)) to be declared as 'void *':
http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html
However, FreeBSD defines these as 'char *' (and inherited this from 4BSD).
NetBSD changed their ss_sp to void * back in 1998 (1.27 of signal.h). OpenBSD
followed suit in 1.9 of their signal.h.
I suspect if anything this should reduce breakage in 3rd party software, but an
exp-run can't hurt.
The patch is contained in the URL. The majority of the patch is fixes to the
kernel to compile with the change. Only the change to sys/sys/signal.h is
visible to userland, so you only need a new world with the patched signal.h for
an exp-run.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list