sbinet / go-python

naive go bindings to the CPython2 C-API
Other
1.53k stars 138 forks source link

Too many open files #40

Open anmolbabu opened 8 years ago

anmolbabu commented 8 years ago

Hi,

I faced the issue of too many open files while using go-python, the stack trace is as in:

http://paste.fedoraproject.org/368271/63639845/

Please provide your valuable suggestions.

Thanks, Anmol

sbinet commented 8 years ago

I see you've vendored sbinet/go-python. could you tell me at which revision you've vendored it?

that said, it won't tell me much as it seems this is the function being called that does the file opening (i.e. a user function) so presumably that should be matched by another user-function doing the closing.

the only place where sbinet/go-python does an explicit open is in PyRun_SimpleFile.

sbinet commented 8 years ago

can you test with 4941be0 ?

anmolbabu commented 8 years ago

I tried the fix above, but I still see the same issue as in http://paste.fedoraproject.org/368726/63709890/ And a wrapper around go-python that we use is as in : http://paste.fedoraproject.org/368727/63710081/

sbinet commented 8 years ago

Ok. Then please provide a minimal, reproducible test case.