"I" BTrees on 64-bit boxes can lose bits

Bug #143237 reported by Tim Peters on 2004-11-23
2
Affects Status Importance Assigned to Milestone
ZODB
Medium
Unassigned

Bug Description

See

    <http://mail.zope.org/pipermail/zodb-dev/2004-November/008200.html>

for the long course. Short course: IO, II, and OI BTree-based data structures intend that the integers fit in no more than 32 bits, but don't detect violations on boxes with sizeof(long) > sizeof(int) (most likely 64-bit non-Windows C compilers). Instead bits from ints can be lost, via implicit downcasting (from long to int) in the C code.

Andreas Jung (ajung) wrote :

Is this still an issue?

Tim Peters (tim-one) wrote :

Yes, it's still an issue.

Tim Peters (tim-one) wrote :

Unassigned myself -- I haven't done ZODB work in nearly 3 years :-(

Changed in zope2:
assignee: tim-one → nobody
affects: zope2 → zodb
Jim Fulton (jim-zope) on 2010-07-11
Changed in zodb:
status: Confirmed → Fix Committed
Hanno Schlichting (hannosch) wrote :

Fix released in 3.10.0b2

Changed in zodb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers