
On 04/11/2014 15:44, Gintautas Miliauskas wrote:
I think I have an idea of what's going wrong here. hvr@ was right in pointing out that we need to be careful with the PATH. It seems that the bundled gcc is picking up the system-wide DLLs, and bad things happen because of version incompatibilities. That does not explain why "rm" is crashing, but maybe that's fallout from cross-process damage. I will do some more testing. If this is indeed the cause, then hopefully debugging will not be needed anyway.
Update: even after setting PATH to have the embedded gcc path in the first position to make sure that the right DLLs are, I still got a few segfaults, so this is probably not it.
Is it always GHC that segfaults, or one of the other programs it invokes, like gcc? Have you tried to reproduce this on another machine, to rule out hardware problems? Cheers, Simon