[plt-scheme] sync deadlock weirdness

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Feb 5 09:28:46 EST 2007

At Mon, 5 Feb 2007 04:07:08 -0500 (EST), Dimitris Vyzovitis wrote:
> I was tracking down a deadlock in a multi-thread program, and isolated
> what seems like a bug in sync.

This is indeed a bug in MzScheme's thread scheduler.

In certain cases, MzScheme runs channel-sync steps in one thread on
behalf of another. One of the steps incorrectly referred to the current
thread, instead of the thread for which the steps were being run. As a
result of this mix-up, the wrong thread was resumed when the channel
sync completed.

This is now fixed in SVN.


Posted on the users mailing list.