2.4.0 Cygwin - exceptions.OverflowError: can't convert negative value delta.py line 127,

Ronald Blaschke mailing-lists at rblasch.org
Wed Sep 28 21:37:45 UTC 2011


On 09/28/2011 10:14 PM, Martin Packman wrote:
> On 28/09/2011, Ronald Blaschke <mailing-lists at rblasch.org> wrote:
>>
>> I'm now pretty confident the OverflowError is caused by a negative
>> stat.st_dev.
> 
> Yes, well tracked down Ronald. Looking into the code while working on
> the fix, I think I can now explain where the negative values were
> coming from. There's a pyrex extension module that uses the platform
> lstat directly then wraps the result to look like a normal Python stat
> result. With the following, I get some negative values:
> 
>     from bzrlib._readdir_pyx import UTF8DirReader
>     for r in UTF8DirReader().read_dir(".", "/cygdrive"):
>         print r[4], r[3].st_dev
> 
> Based on your earlier feedback I've already included a test for
> negative st_dev values with the fix, which is proposed for merging
> now:
> 
> <https://code.launchpad.net/~gz/bzr/2.4_overflow_pack_stat_683191_706957/+merge/77373>

Fantastic.  Thank you very much for looking into this.

Ron



More information about the bazaar mailing list