[Bug 273955] devel/valgrind patch for ifuncs

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Sep 2023 04:48:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273955

            Bug ID: 273955
           Summary: devel/valgrind patch for ifuncs
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pjfloyd@wanadoo.fr

Created attachment 245034
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245034&action=edit
Add a patch for ifunc_handler

The work for simd support uses @gnu_indirect_function. When Valgrind sees
binaries using such function it expects to have its own ifunc_handler. Until
now there wasn't one for FreeBSD so Valgrind terminates with an abort.

This patch merges the fix I made upstream:

commit c934430d56c2add25002ea8e321bd8bdab80fc99
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Thu Aug 31 15:32:21 2023 +0200

    Bug 473870 - FreeBSD 14 applications fail early at startup

    FreeBSD recently started adding some functions using
@gnu_indirect_function,
    specifically strpcmp which was causing this crash.

    When running and encountering this ifunc Valgrind looked for the
    ifunc_handler. But there wasn't one for FreeBSD so Valgrind asserted.

-- 
You are receiving this mail because:
You are the assignee for the bug.