plugin/sizes.py crashes on 32 bit system for big packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-xapian-index (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
We're seeing crashes in /usr/sbin/
When the plugin calls xapian.
https:/
and this is easily reproducible on a 32 bit system:
$ python3
>>> from xapian import *
>>> sortable_
You first get an OverflowError for the conversion past 32 bits, and then a SystemError because sortable_
Both ultimately are bugs in Xapian, which I will report upstream. For now, in discussion with @cyphermox, it was decided that we'll catch the exception and treat the values as == -1, which the code already handles and declines to add the size for.