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

Bug 801109 (libffi-3.4)

Summary: [tracker] dev-libs/libffi-3.4 porting
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: atoth
Priority: Normal Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on: 804660    
Bug Blocks:    

Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-07 21:56:01 UTC
libffi-3.4 has no API changes but has a trampoline change that is known to expose bugs in apps:
- ghc has too optimistic assumption about executable memory:
- gobject-introspection uses incorrect object as a closure:

Both are currently mitigated by disabling USE=-exec-static-trampoline default. But more might lurk in the shadows.

This is a tracker bug. No talking here please.

Let's gather typical failures and examples of fixes at:
Comment 1 Larry the Git Cow gentoo-dev 2021-07-24 23:47:12 UTC
The bug has been referenced in the following commit(s):

commit 9f1d3258d1e53b8171f75848e42f7628ca14ce28
Author:     Sam James <>
AuthorDate: 2021-07-24 23:43:41 +0000
Commit:     Sam James <>
CommitDate: 2021-07-24 23:46:49 +0000

    profiles/base: mask dev-libs/libffi[exec-static-trampoline]
    Masking for now until we've had some more testing just in case
    of other consumers relying on faulty assumptions which we
    haven't discovered yet.
    Feel free to test this flag, but be aware of possible
    breakage. Let us know of any bugs!
    Signed-off-by: Sam James <>

 profiles/base/package.use.mask | 8 ++++++++
 1 file changed, 8 insertions(+)