[Python-bugs-list] [ python-Bugs-834461 ] simple bsddb interface
potential for deadlock with threads
SourceForge.net
noreply at sourceforge.net
Sun Nov 2 04:30:14 EST 2003
Bugs item #834461, was opened at 2003-11-02 01:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=834461&group_id=5470
Category: Extension Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory P. Smith (greg)
Assigned to: Gregory P. Smith (greg)
Summary: simple bsddb interface potential for deadlock with threads
Initial Comment:
>From Lib/bsddb/__init__.py
# FIXME-20031101-greg: I believe there is still the potential
# for deadlocks in a multithreaded environment if someone
# attempts to use the any of the cursor interfaces in one
# thread while doing a put or delete in another thread. The
# reason is that _checkCursor and _closeCursors are not atomic
# operations. Doing our own locking around self.dbc,
# self.saved_dbc_key and self._iter_cursors could prevent this.
# TODO: A test case demonstrating the problem needs to be written.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=834461&group_id=5470
More information about the Python-bugs-list
mailing list