[issue22534] Possible Memory Leak with 'shelve'

2014-10-02 Thread Ned Deily
Ned Deily added the comment: Sorry, I'm not able to reproduce any major memory leak, using a couple of different dbm implementations, and there is not enough information to go on. To pursue further, you should identify: - what platform (operating system distribution and version) - exactly what

[issue22534] Possible Memory Leak with 'shelve'

2014-10-02 Thread STINNER Victor
STINNER Victor added the comment: I modified the example a little bit to display the RSS memory 10 times. The RSS increases by +176 kB at the beginning and then it is stable. I tested on Fedora 20 (Linux): anydbm.open('bla', 'c') creates a 'bsddb._DBWithCursor' object. Can you please give us

[issue22534] Possible Memory Leak with 'shelve'

2014-10-02 Thread TJ
TJ added the comment: Thanks for the help. For my linux box, I have no issue. This is Ubuntu 13.10: Linux localhost 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 2.7.5+ (default, Feb 27 2014, 19:37:08) [GCC 4.8.1] However, I'm still

[issue22534] Possible Memory Leak with 'shelve'

2014-10-01 Thread TJ
New submission from TJ: The following code causes memory usage to grow excessively. ''' import shelve def func(): for i in range(100): sh = shelve.open('blah') sh.close() func() ''' -- components: Library (Lib) messages: 228127 nosy: tjhnson priority: normal

[issue22534] Possible Memory Leak with 'shelve'

2014-10-01 Thread Ned Deily
Ned Deily added the comment: What happens if you use xrange instead of range? range(100).__sizeof__() 856 xrange(100).__sizeof__() 56 -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22534

[issue22534] Possible Memory Leak with 'shelve'

2014-10-01 Thread TJ
TJ added the comment: Put it in the while loop. Same result. Memory usage grows about 1 GiB per minute. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22534 ___