[Python-bugs-list] [ python-Bugs-408271 ] crash in shelve module

noreply@sourceforge.net noreply@sourceforge.net
Mon, 06 May 2002 08:13:51 -0700


Bugs item #408271, was opened at 2001-03-13 13: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: Barry Warsaw (bwarsaw)
Date: 2002-05-06 11: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 03: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 11: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-18 01: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