[racket-dev] memory consumption (bug?) on Debian/kFreeBSD-i386

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon May 9 08:58:24 EDT 2011

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))




Posted on the dev mailing list.