Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801109 (libffi-3.4) - [tracker] dev-libs/libffi-3.4 porting
Summary: [tracker] dev-libs/libffi-3.4 porting
Alias: libffi-3.4
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Keywords: Tracker
Depends on: 804660
  Show dependency tree
Reported: 2021-07-07 21:56 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-09-19 00:49 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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(+)