GHC 6.4.3 on FreeBSD
simonmar at microsoft.com
Mon Aug 7 10:12:19 EDT 2006
An update on the GHC/FreeBSD front: I didn't manage to reproduce the
reported threading bugs on a UP, will be trying on a MP shortly.
However, I did discover one odd case that libpthread doesn't appear to
handle properly, but libthr does. This arose from a test in GHC's test
suite, but I've transliterated the code from Haskell to C:
$ cat thr1.c
int main(int argc, char *argv)
sigprocmask(SIG_BLOCK, &s, NULL);
$ gcc -pthread thr1.c
$ gcc -lthr thr1.c
This might (or might not) be related to the other threading issues with
GHC on FreeBSD.
Do you think we should link with -lthr by default on FreeBSD? This
would be a trivial change to make, and given that GHC has its own
lightweight threading runtime, we probably aren't getting much from
having the KSE-based threading implementation anyway.
More information about the Glasgow-haskell-users