Skip to content

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.

Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information