Someone just reported a problem with "Too many open files" when running on Ubuntu 12.04, 32-bit.
Solution above did not do the trick.
During parsing blockchain files the number of unclosed files increase.
Running the command below gives me a higher number during (re)building:
lsof | grep python | wc -l
The code and (possible) solution is mentioned on:
http://stackoverflow.com/questions/16386678/too-many-open-files-python-multiprocess-tcp-serverMentioned solution: "The problem solved. File descriptor assotiated with socket must be manually closed. os.close(fd)"
Hopefully you can reproduce this, or maybe it is only a problem in Ubuntu 12.04, 32-bit.