[ python-Bugs-880531 ] Segmentantion Fault in bsddb
SourceForge.net
noreply at sourceforge.net
Tue Jan 20 07:28:56 EST 2004
Bugs item #880531, was opened at 2004-01-20 12:28
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=880531&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Rafael Ugolini (psycao)
Assigned to: Nobody/Anonymous (nobody)
Summary: Segmentantion Fault in bsddb
Initial Comment:
Hi , i was using bsddb module and i got a Segmentantion
Fault....
psyc at barbaric:~$ python
[GCC 3.3.3 20031229] (prerelease) (Debian) on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import bsddb
>>> x = bsddb.rnopen('lala.db')
>>> x[None] = 'anything'
Segmentation fault
The problem is in rnopen , when you put a None key you
got a segfault.
i little patch is edit __init__.py in line 120 put an if.
def __setitem__(self, key, value):
self._checkOpen()
if key != None:
self.db[key] = value
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=880531&group_id=5470
More information about the Python-bugs-list
mailing list