Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 733298

Summary: dev-python/llfuse fails test test_rounding: OverflowError: Python int too large to convert to C long
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal CC: sam, whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731430, 772488    
Attachments: build.log
build.log x86

Description Agostino Sarubbo gentoo-dev 2020-07-20 10:03:49 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/llfuse fails tests.
Discovered on: x86 (internal ref: x86_at)
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-20 10:03:55 UTC
Created attachment 649952 [details]
build.log

build log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-16 05:55:54 UTC
Seems like sandbox incompatibility:

            if hit:
>               raise AssertionError('Suspicious output to stderr (matched "%s")' % hit.group(0))
E               AssertionError: Suspicious output to stderr (matched "ERROR")

test/pytest_checklogs.py:104: AssertionError
---------------------------- Captured stderr setup -----------------------------
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-01 16:28:16 UTC
Created attachment 688914 [details]
build.log x86

> ____________________________________________________ test_rounding _____________________________________________________
> 
>     def test_rounding():
>         # Incorrect division previously resulted in rounding errors for
>         # all dates.
>         entry = llfuse.EntryAttributes()
>     
>         # Approximately 100 years, ending in 999
>         secs = 100 * 365 * 24 * 3600 + 999
>         nanos = _NANOS_PER_SEC - 1
>     
>         total = secs * _NANOS_PER_SEC + nanos
>     
> >       entry.st_atime_ns = total
> 
> test/test_rounding.py:31: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> >   self.attr.st_atime = val // _NANOS_PER_SEC
> E   OverflowError: Python int too large to convert to C long
> 
> src/misc.pxi:474: OverflowError
> =============================================== short test summary info ================================================
> FAILED test/test_rounding.py::test_rounding - OverflowError: Python int too large to convert to C long
> ======================================== 1 failed, 6 passed, 8 skipped in 1.29s ========================================
>  * ERROR: dev-python/llfuse-1.4.0::gentoo failed (test phase):
>  *   Tests fail with python3.8