Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2023 04:48:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273955] devel/valgrind patch for ifuncs
Message-ID:  <bug-273955-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273955

            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=3D245034&action=
=3Dedit
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273955-7788>