[plt-scheme] Re: OpenBSD build problems

From: Andreas Vögele (andreas at kurzegasse.de)
Date: Fri Jul 13 02:18:10 EDT 2007

Matthew Flatt writes:

> At Thu, 28 Jun 2007 10:34:52 +0800, Matthew Flatt wrote:
>> My guess is that the 3m GC isn't working right on OpenBSD. More
>> specifically, I'll bet it has to do with the write barrier for
>> generational collection.
>
> Actually, if my guess is on the right track, and given that the crash
> is a segfault, you might try just changing line 36 of
> "plt/src/mzscheme/gc2/sighand.c" from
>
>   #  define USE_SIGACTON_SIGNAL_KIND SIGBUS
>
> to
>
>   #  define USE_SIGACTON_SIGNAL_KIND SIGSEGV

In the meantime, I've built PLT Scheme several times under OpenBSD.
Sometimes the build fails with "JIT buffer overflows" during "make
install":

[...]
../../mzscheme/mzscheme3m -rq ./../../mzscheme/gc2/xform.ss --setup --cpp "g++ -E -I./../../mzscheme/gc2 -I./../../wxxt/src/AIAI-include -I./../../wxxt/src -I./../../mred/wxme/ -I./../../mzscheme/ -I./../../mzscheme/include/ -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/local/include/cairo -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/libpng -DNEWGC_BTC_ACCOUNT  -DOPERATOR_NEW_ARRAY -DWX_USE_XRENDER -DWX_USE_XFT -DWX_USE_CAIRO  -Dwx_xt  -I./../../wxxt/src/XWidgets -I./../../wxxt/src -I../../wxcommon/jpeg -I./../../wxcommon/jpeg -I./../../wxcommon/zlib" -o xsrc/wxs_bmap.cc ./../wxs/wxs_bmap.cxx
JIT buffer overflow: 0x7fff4035 [0x7fff4020,0x80003f80] (0)!!
*** Signal 6

I never got this error twice in the same module.  If I issue "make
install" again the build usually finishes successfully.



Posted on the users mailing list.