lockFile: fd out of range
My program was terminated with the following message:
internal error: lockFile: fd out of range
(GHC version 6.6 for i386_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The reason appears to be the large number of simultaneously open files. If I limit the number of open descriptors to 1025 or lower, I get "openFile: resource exhausted (Too many open files" instead.