QuickCheck application hangs with concurrent read/write of Chan
If you configure the test case in https://github.com/centromere/ghc-bug-testcase like so:
$ cabal configure --enable-tests -fbad
The QuickCheck application will hang when executed:
$ ./dist/build/properties/properties --quickcheck-verbose --quickcheck-tests 10
10
9
8
7
6
5
4
3
2
1
10
testCase
1
a:
If you compile it without the 'bad' flag, it will execute successfully. The problem is reproducible on both FreeBSD 10 and Ubuntu 15.10. Attached is the output from truss when run against the bad version of the application.