[M3devel] freebsd 10

John Marino adacore at marino.st
Tue May 27 00:35:46 CEST 2014


On 5/27/2014 00:22, mika at async.caltech.edu wrote:
> Thanks so much for the reminder that Modula-3 is in FreeBSD ports.
> That's great!  I've used it on FreeBSD since 1999 (was that FreeBSD
> 2?) and this is definitely the easiest install ever.

Actually it was gone for many years, it only came back a few months ago
after a long hiatus.


> But the default configuration uses pthreads.  Pthreads support in Modula-3
> is broken.

Really?  I didn't know that.  That's not good.

> 
> root at pluto:/home/mika/cm3/cm3/m3-libs/m3core/tests/thread # AMD64_FREEBSD/threadtest 
> Writing file...done
> Creating read threads...done
> Creating fork threads...done
> Creating alloc threads...done
> Creating lock threads...done
> running...printing oldest/median age/newest
> .
> 
> ***
> *** runtime error:
> ***    Segmentation violation - possible attempt to dereference NIL
> ***    pc = 0x4387e8 = Move + 0x6a in ../src/runtime/common/RTCollector.m3
> ***
> 
> Abort (core dumped)
> root at pluto:/home/mika/cm3/cm3/m3-libs/m3core/tests/thread # 
> 
> I wonder what the best way of reconfiguring this installation to use
> user threads (which always work right, in my experience) is...
> 

Probably adding something to the build environment but I don't know
what.  How does one normally build "user threads" over posix threads?


John





More information about the M3devel mailing list