Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bsddb memory leak on ubuntu #47791

Closed
kcwu mannequin opened this issue Aug 11, 2008 · 6 comments
Closed

bsddb memory leak on ubuntu #47791

kcwu mannequin opened this issue Aug 11, 2008 · 6 comments
Labels
extension-modules C modules in the Modules dir performance Performance or resource usage

Comments

@kcwu
Copy link
Mannequin

kcwu mannequin commented Aug 11, 2008

BPO 3541
Nosy @jcea, @devdanzin

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-05-22.12:17:16.281>
created_at = <Date 2008-08-11.13:06:46.430>
labels = ['extension-modules', 'performance']
title = 'bsddb memory leak on ubuntu'
updated_at = <Date 2009-05-22.12:17:16.231>
user = 'https://bugs.python.org/kcwu'

bugs.python.org fields:

activity = <Date 2009-05-22.12:17:16.231>
actor = 'jcea'
assignee = 'none'
closed = True
closed_date = <Date 2009-05-22.12:17:16.281>
closer = 'jcea'
components = ['Extension Modules']
creation = <Date 2008-08-11.13:06:46.430>
creator = 'kcwu'
dependencies = []
files = []
hgrepos = []
issue_num = 3541
keywords = []
message_count = 6.0
messages = ['71013', '87931', '87934', '88046', '88054', '88193']
nosy_count = 4.0
nosy_names = ['jcea', 'ajaksu2', 'kcwu', 'marcin.bachry']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'test needed'
status = 'closed'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue3541'
versions = ['Python 2.6', 'Python 2.7']

@kcwu
Copy link
Mannequin Author

kcwu mannequin commented Aug 11, 2008

On ubuntu, python 2.5.2.
The memory usage of following program is increasing infinitly. There may
be something leaking.

However, it only consumes constant memory on windows (python 2.5.2).

import bsddb
d = bsddb.hashopen('a.db', 'c')
d.close()
while True:
    d = bsddb.hashopen('a.db')
    d.close()

@kcwu kcwu mannequin added extension-modules C modules in the Modules dir performance Performance or resource usage labels Aug 11, 2008
@devdanzin
Copy link
Mannequin

devdanzin mannequin commented May 16, 2009

Confirmed in trunk.

@marcinbachry
Copy link
Mannequin

marcinbachry mannequin commented May 16, 2009

The test program uses constant memory on my machine. Ubuntu 9.04,
libdb4.7.25-6ubuntu1, python 2.7 trunk.

@jcea
Copy link
Member

jcea commented May 18, 2009

Python 2.5 is in security maintenance mode only.

Please, upgrade to Python 2.6. If you can not upgrade Python, install a
recent bsddb release from http://www.jcea.es/programacion/pybsddb.htm

If you can still reproduce the problem, let me know.

@jcea jcea closed this as completed May 18, 2009
@jcea jcea self-assigned this May 18, 2009
@devdanzin
Copy link
Mannequin

devdanzin mannequin commented May 18, 2009

I can confirm it in trunk and release26-maint on Ubuntu 8.04.

For trunk:
bsddb.__version__ : '4.7.3'
libdb4.6-dev: 4.6.21-6ubuntu1
_bsddb.version(): (4, 6, 21)
bsddb._bsddb.cvsid: '$Id: _bsddb.c 66568 2008-09-23 18:54:08Z jesus.cea $'

@devdanzin devdanzin mannequin reopened this May 18, 2009
@jcea
Copy link
Member

jcea commented May 22, 2009

I can *not* reproduce the problem with Python 2.6 (with its stock bsddb
version) and Berkeley DB 4.7.25 (the current one).

I can reproduce the issue if I use Berkeley DB 4.6.21. Seems to be a
(solved) problem in the library.

Berkeley DB 4.7.25 is known to solve a few memory leaks:
http://www.oracle.com/technology/documentation/berkeley-db/db/ref/changelog/4.7.html

I mark the bug as "closed" and "out of date" because it is no something
we can solve and it is already resolved in BDB 4.7.25, published a year ago.

Moreover, any serious usage of Berkeley DB "demands" a recent version of
the library.

@jcea jcea closed this as completed May 22, 2009
@jcea jcea removed their assignment May 22, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant