Bug 121336 - lang/neko threading ok on UP, broken on SMP (FreeBSD 7)
Summary: lang/neko threading ok on UP, broken on SMP (FreeBSD 7)
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: threads (show other bugs)
Version: 7.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-threads (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 23:00 UTC by Frank DENIS
Modified: 2014-12-06 18:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank DENIS 2008-03-03 23:00:03 UTC
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.
Comment 1 Frank DENIS 2008-03-04 23:17:03 UTC
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
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2014-12-06 18:34:27 UTC
lang/neko is not longer in the freebsd ports tree.