From nobody Fri Jun 3 13:24:45 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 35A651B54087 for ; Fri, 3 Jun 2022 13:24:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LF3Wx5DhTz4sj4 for ; Fri, 3 Jun 2022 13:24:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6EC541BBD for ; Fri, 3 Jun 2022 13:24:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 253DOjIh065089 for ; Fri, 3 Jun 2022 13:24:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 253DOjv2065088 for x11@FreeBSD.org; Fri, 3 Jun 2022 13:24:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 263845] graphics/libglvnd: Library compiled in ARM mode, but executes in Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL Date: Fri, 03 Jun 2022 13:24:45 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: flagtypes.name attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654262685; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pUDjZjzHsVfxRM2cB2w4Zu88TaYJXBF7aLFOV3C0zWU=; b=F4CiTiAMNR1vnG/EmpPKr9w5A4+f4yk7kWNwRYUQ5VPtCNDGmC92Ow5JiToyfqqRSHvlXi 4hr/EPcq29nwVdo3LZ3TwVBFYtQK2/HpwbAc1tiVdufaLZ9XwGXg9ZBhx2vbnlFi4ggrPU z1mjWqRjYAZMQPm2PAoLw/RaEG2wMp9vMBcVYZo8oah6eeCe8iBTTGYVnurP6BOBJh/kWb 3fqM2MGI58aQBTkMzK0GJT6F6kRrV3l4gR0zmIITMeqQtLPViQHi6pllafFC+vDkHw3aFD mrcx+9rFJTeS9+dH1vwKmyYQ3S6+vuiEF5Nk511XeR7PctBhq+hQKlvQfrts7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654262685; a=rsa-sha256; cv=none; b=L/qV8TzLPjNZQIEs2UPYvi2XaXj6NkjPqsHUBOy1eLptEWC5nHBuPGxXxiQNbtP9tWdWoZ Z4+PM/oeGrgx7NjCzdOj5anYgPUU2e1KMUZnnNlUU/W9OQnUBbXxw6sZ3dki2CVSR8dNzC NLv1am534Zwc76Q/f8TC53iaYI+zemtx3PRBgZKKEQVLzifPbni8+Pkc3nFPQO1RLQm4Jr PFAO2D18q19RyfJT5o2sh9+8FCDlBw1ktx8/ShEgybaE8VCA3knLYi8mbGWxz45s535nIJ 8zB3y7extjHdjTyq+OScyMRjJZyyJ2QJ7V95NxlkhLHTXPG8tNCa2gL+CTo6Dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263845 Robert Clausecker changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #234353|maintainer-approval?(x11@Fr | Flags|eeBSD.org) | Attachment #234353|0 |1 is obsolete| | Attachment #234421| |maintainer-approval? Flags| | --- Comment #7 from Robert Clausecker --- Created attachment 234421 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234421&action= =3Dedit graphics/libglvnd: fix on armv6/armv7 The .thumb_func directive does not switch to thumb mode in clang's integrated assembler. This causes the code to be miscompiled in that it is generated as ARM code but the symbols are tagged as thumb. The resulting library is unusable. Every call into it crashes. Fix this issue by applying an upstream patch set to have the entry stubs be in ARM mode instead of Thumb mode. See also:=20=20=20=20=20=20 https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/267 See also: https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/232 PR: 263845 Tested with Poudriere on armv7 arm64 FreeBSD 13. Portlint likes the port. --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=