Program hangs without -threaded option
Attached program hangs without
-threaded option very often (but not always). With
-threaded it works as it should (exits almost immediately with an exception). As program does not use any FFI and almost none IO I think this is a bug.
I wasn't able to remove use of Etage but I did simplified it much.
I tried to pin down the problem with debug messages in the library and it seems that although the
SampleVar (I use to mark that thread has finished) is filled, main thread is still blocked on reading it. I have tested this by printing things before and after writing and reading. So print after writing is seen but reading is still waiting.
I am using 7.1.20101124. Tested both on Mac OS X and Linux amd64.