[racket-dev] memory consumption (bug?) on Debian/kFreeBSD-i386
At Mon, 9 May 2011 06:56:48 -0600, Matthew Flatt wrote:
> Maybe someone decided that SIGSEGV is the right signal after all for an
> mprotect() violation (which Rackets catches as a write barrier) instead
> of SIGBUS.
>
> In "src/racket/gc2/sighand.c" around line 137:
>
> # if defined(__FreeBSD__) && (__FreeBSD_version < 700000)
> # define USE_SIGACTON_SIGNAL_KIND SIGBUS
> # else
> # define USE_SIGACTON_SIGNAL_KIND SIGSEGV
> # endif
>
> try dropping the "defined(__FreeBSD__) &&".
Sorry -- that's a useless change. That first line should change to
# if defined(__FreeBSD_kernel__) \
|| (defined(__FreeBSD__) && (__FreeBSD_version < 700000))