Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905840 - dev-python/pypy3: ctypes broken with dev-libs/libffi[debug]
Summary: dev-python/pypy3: ctypes broken with dev-libs/libffi[debug]
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 898670
  Show dependency tree
 
Reported: 2023-05-06 18:39 UTC by Agostino Sarubbo
Modified: 2024-10-16 04:55 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,89.90 KB, text/plain)
2023-05-06 18:39 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-06 18:39:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/freetype-py-2.4.0 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-06 18:39:33 UTC
Created attachment 861243 [details]
build.log

build log and emerge --info
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 04:31:47 UTC
I can't reproduce.  Can you modify the ebuild to pass `epytest -s tests` locally, and see whether it gives you a specific error?
Comment 3 Agostino Sarubbo gentoo-dev 2023-05-07 08:56:41 UTC
It looks like there is an assertion failure on libffi:

pypy3 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:tavern -s tests
=========================================================================== test session starts ===========================================================================
platform linux -- Python 3.9.16[pypy-7.3.11-final], pytest-7.3.1, pluggy-1.0.0 -- /var/tmp/portage/dev-python/freetype-py-2.4.0/work/freetype-py-2.4.0-pypy3/install/usr/bin/pypy3
cachedir: .pytest_cache
rootdir: /var/tmp/portage/dev-python/freetype-py-2.4.0/work/freetype-py-2.4.0
collecting ... ASSERTION FAILURE: (!isvariadic) || (nfixedargs >= 1) at /var/tmp/portage/dev-libs/libffi-3.4.4-r1/work/libffi-3.4.4/src/prep_cif.c:121
Fatal Python error: Aborted
Comment 4 Ionen Wolkens gentoo-dev 2023-05-07 09:08:45 UTC
Can reproduce with libffi[debug]
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 11:49:04 UTC
Well, this package is using ctypes, so either it's a bug in dev-lang/python or libffi itself, I guess.  Or perhaps, a wrong use of ctypes that triggers directly in libffi instead of being caught by CPython?
Comment 6 Ionen Wolkens gentoo-dev 2023-05-07 14:38:44 UTC
(In reply to Michał Górny from comment #5)
> ... bug in dev-lang/python ...
Only happens with pypy3 that I can see.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 15:02:40 UTC
Reported to pypy first at https://foss.heptapod.net/pypy/pypy/-/issues/3933.