#8448 LOW Not Tri: datastore fails if sys.maxint >= 2**32 (e.g., 64-bit / x86_64 systems)

Zarro Boogs per Child bugtracker at laptop.org
Fri Sep 12 17:57:25 EDT 2008


#8448: datastore fails if sys.maxint >= 2**32 (e.g., 64-bit / x86_64 systems)
--------------------------+-------------------------------------------------
 Reporter:  mtd           |         Owner:  mtd               
     Type:  defect        |        Status:  new               
 Priority:  low           |     Milestone:  Not Triaged       
Component:  not assigned  |       Version:  Git as of bug date
 Keywords:                |   Next_action:  review            
 Verified:  0             |     Blockedby:                    
 Blocking:                |  
--------------------------+-------------------------------------------------
 On 64-bit machines the datastore fails with a dbus OverflowError due to
 #7234's fix tickling some bug when sys.maxint is >= 2**32:

 Here is a datastore.log except showing the symptom:
 {{{
 1221255009.568194 ERROR root: Error while processing <anyfile>:
 OverflowError("in method 'Enquire_get_mset', argument 4 of type
 'Xapian::doccount'",)
 Traceback (most recent call last):
   File "sugar-jhbuild/install/lib/python2.5/site-
 packages/olpc/datastore/backingstore.py", line 803, in _walk
     result, count = self.indexmanager.search(dict(filename=relative))
   File "sugar-jhbuild/install/lib/python2.5/site-
 packages/olpc/datastore/xapianindex.py", line 471, in search
     checkatleast=sys.maxint)
   File "sugar-jhbuild/install/lib/python2.5/site-
 packages/secore/searchconnection.py", line 610, in search
     mset = enq.get_mset(startrank, maxitems, checkatleast)
 OverflowError: in method 'Enquire_get_mset', argument 4 of type
 'Xapian::doccount'
 }}}

 The attached patch fixes it for me.

-- 
Ticket URL: <http://dev.laptop.org/ticket/8448>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list