[lxml-dev] file descriptors leak since lxml 2.0.5 while resolving local DTD
Stefan Behnel
stefan_ml at behnel.de
Sat Jun 21 12:37:09 CEST 2008
Hi,
Dmitri Fedoruk wrote:
> Up to 2.0.5 I have no problem when the resolvingParser is called. But
> since 2.0.5 after I have this:
> # no call of resolving parser
> [root at machine ~/trunk/fb-ports/py-lxml]$ sysctl kern.openfiles
> kern.openfiles: 377
> # after a single (!) call of resolving parser
> [root at machine ~/trunk/fb-ports/py-lxml]$ sysctl kern.openfiles
> kern.openfiles: 11439
>
> And my local DTD file is opened about 11000 times (according to fstat
> and find -inode).
When I run the "resolve_filename_dtd" test in test_etree.py and print "lsof |
wc -l" directly before and after parsing, I get the same number each time. So
I can't see your leak here.
Stefan
More information about the lxml-dev
mailing list