"Ted Unangst" <t...@tedunangst.com> writes: > TimoMyyrä wrote: >> I'm trying to make Gauche Scheme work on OpenBSD but I'm hitting a wall >> debugging it. The problem is that thread tests get stuck. >> Debugging the issue would indicate that the thread test causes threads to >> suspend and sem_wait blocks forever. > > Can you make a testcase in plain C? I don't want to debug seven layers of > abstraction. >
Well, given enough time even monkeys can type out Shakespeare... I'll try to get some small test case for this but with my skills it might be a while. I did notice that if I reduce the iterations from 30 to less than 7 the test passes. Looking at GC's debug output it seems once the 7th thread is created it triggers the GC and blocks on sem_wait call in gc pthread_stop_world. And the GC should be using same patches as one from ports I'd say the error is found somewhere in gauche's c code. Timo