Date: Thu, 29 Nov 2007 02:26:11 -0800 From: "Carl Shapiro" <carl.shapiro@gmail.com> To: freebsd-current@freebsd.org Subject: Serious compatibility breakage in -current. Message-ID: <4dcb5abd0711290226u69105089ya10526519e5cc12d@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Developers, FreeBSD 7 has changed the protection violation signal from SIGBUS to SIGSEGV. Unfortunately, when an old binary is run on a current FreeBSD system, protection violations cause a SIGSEGV to be delivered to the executable instead of the anticipated SIGBUS. Binaries compiled on older versions of FreeBSD are not prepared to handle SIGSEGV in response to page protection violations. One consequence of this change is that applications that handle page protection violations, such as the CMUCL Lisp compiler have broken. CMUCL binaries compiled for FreeBSD 4, FreeBSD 5, and FreeBSD 6 crash on -current. Investments FreeBSD users have in binaries that handle page protection violations, such as things that link against boehm-gc, are lost forever. This significantly increases the cost of an upgrade to FreeBSD 7. The switch from SIGBUS to SIGSEGV is well motivated. However, it is not clear that consideration was given to binaries running under compat{4,5,6}x. One would expect the compat infrastructure to translate protection violation signals from SIGSEGV to SIGBUS while executing older binaries. This would ensure that the applications that establish SIGBUS handlers to catch protection violations continue to work. Among the open source operating systems the FreeBSD project has one of the best traditions of supporting old binaries. It would truly be a shame for this tradition to abruptly end as of the next major release. As a developer who supports several versions of FreeBSD through binary compatibility anything that can help us avoid breakage as of the next FreeBSD release would be appreciated. Thanks, Carl (and the many FreeBSD users of CMUCL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4dcb5abd0711290226u69105089ya10526519e5cc12d>