[Python-bugs-list] [ python-Bugs-408271 ] crash in shelve module
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 15 May 2002 18:02:19 -0700
Bugs item #408271, was opened at 2001-03-13 10:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=408271&group_id=5470
Category: Python Library
Group: None
Status: Closed
Resolution: Wont Fix
Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Barry Warsaw (bwarsaw)
Summary: crash in shelve module
Initial Comment:
While using shelve module on SGI
sloth 271> uname -a
IRIX64 sloth 6.5 04191225 IP27
my python program crashes and
I am getting following error message:
File "/usr/local/lib/python1.5/shelve.py", line 71,
in __setitem__
self.dict[key] = f.getvalue()
bsddb.error: (0, 'Error')
At the time the size of the "shelve" file was quite big
(maybe this is a problem ?)
sloth 267> ls -lt *shelve
-rw-r--r-- 1 ryszard cdiApps 85778432 Mar 13
12:27 recap_mddr.shelve
----------------------------------------------------------------------
Comment By: Martin D Katz, Ph.D. (drbits)
Date: 2002-05-15 18:02
Message:
Logged In: YES
user_id=276840
Apparently, this problem only occurs when the hash table
form of bsddb is used. The b-bree version (btopen) does not
have this problem.
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2002-05-06 20:56
Message:
Logged In: YES
user_id=29957
Barry, if it's known to be stuffed, why is it
still there?
Is there an open bug report for how it's busted?
A bunch of stuff that depends on getting "a db
storage" is going to use bsddb...
----------------------------------------------------------------------
Comment By: Garth T Kidd (gtk)
Date: 2002-05-06 20:49
Message:
Logged In: YES
user_id=59803
Submitted patch #553108.
----------------------------------------------------------------------
Comment By: Garth T Kidd (gtk)
Date: 2002-05-06 19:35
Message:
Logged In: YES
user_id=59803
If bssdb is broken, shelve should use anydbm and bsddb
should be deprecated. Precedence: regexp.
ActivePython 2.2.0 Build 221 (ActiveState Corp.) based on
Python 2.2 (#28, Mar 28 2002, 12:10:20) [MSC 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import shelve
>>> s = shelve.open('temp.db', 'c')
>>> s.dict
<bsddb.bsddb object at 0x008A2D48>
Python 2.2.1 (#1, Apr 30 2002, 17:02:05)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import shelve
>>> s = shelve.open('temp.db', 'c')
>>> s.dict
<bsddb.bsddb object at 0x815a388>
>>>
----------------------------------------------------------------------
Comment By: Barry Warsaw (bwarsaw)
Date: 2002-05-06 08:13
Message:
Logged In: YES
user_id=12800
I'd highly suggest that any serious work with BerkeleyDB be
done with pybsddb and a more modern version of Berkeley.
The bsddb module that comes with Python 2.2 has serious
problems, including not being able to link on some *nix
distros. Also BDB 1.85 is way way old and has many known
problems.
I ran the deadlybloddyserious example using BDB 3.11 and
pybsddb 3.0 and it passed with flying colors. See
www.sleepycat.com for the latest BDB's and pybsddb.sf.net
for the latest Python wrappers.
----------------------------------------------------------------------
Comment By: Garth T Kidd (gtk)
Date: 2002-05-06 00:55
Message:
Logged In: YES
user_id=59803
You might want to re-open this one, Barry. The problem
seems to be with any large number of bsddb inserts, which
can also be triggered by shelve. See:
http://www.deadlybloodyserious.com/Python/2002/05/06.html
http://bugs.activestate.com/show_bug.cgi?id=10242
----------------------------------------------------------------------
Comment By: Barry Warsaw (bwarsaw)
Date: 2001-03-18 08:10
Message:
Logged In: YES
user_id=12800
Besides, this was submitted by "anonymous" and the only clue
to the identity of the original poster is in the ls output.
Unfortunately, I'm not prepared to spam all the Ryszard's in
my name database. :)
I'm closing this report until/unless we get more
information.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-03-17 22:03
Message:
Logged In: YES
user_id=31435
Assigned to Barry because there's not enough info here to
do anything about it <wink>.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=408271&group_id=5470