ports/lang/neko perfectly works on FreeBSD 7.0 as long as there is only one core. On a SMP system, it crashes with a corrupted stack as soon as it tries to create a thread. The behavior can be reproduced with vmware. Fix: Don't know. Maybe boehm-gc releated. How-To-Repeat: - Install neko from ports - Download ftp://ftp.c9x.org/misc/server.n - Run neko server.n 0.0.0.0 1935 - Try curl -v http://127.0.0.1:1935 - crash on SMP, ok on UP.
The Neko virtual machine is indeed broken on FreeBSD 7 + SMP. Here's a very simple way to make it crash. Just create a thread. $ echo '$loader.loadprim("std@thread_create", 2)(function(z) { $print(z) }, "OK");' > nekothread.neko $ nekoc nekothread.neko $ neko nekothread.n
lang/neko is not longer in the freebsd ports tree.