I have a complicated script that uses many modules and runs for many minutes before dieing with a 'Too many open files' problem.
I don't want to step through it all with the debugger... Is there some simple way I can just see the stack trace every time something does an open(), and everytime something does a close(), to find the culprit that isn't closing when it should?