From nobody Sun Jun 5 16:11:25 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 C12C91BD7E72 for ; Sun, 5 Jun 2022 16:11:27 +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 4LGM7L5YDPz4jMP for ; Sun, 5 Jun 2022 16:11:26 +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 CBC49151F1 for ; Sun, 5 Jun 2022 16:11:25 +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 255GBP1j078423 for ; Sun, 5 Jun 2022 16:11:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 255GBPME078422 for x11@FreeBSD.org; Sun, 5 Jun 2022 16:11:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Sun, 05 Jun 2022 16:11:25 +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: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ merge-quarterly? X-Bugzilla-Changed-Fields: 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=1654445486; 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=vB+56oDSeP4QjqNGdNXldQC7kU/qYbE9AOssdFjzSgc=; b=dwuY/3HcWfYTuD5HaHklHVV53Zi+SRmEGJ9SIPqvnLhZC1m6PCOcJO28Ijyg0Bmg6ItlD3 yOu3MlscZoiShYM9LYxeCQVU6bf0UzvJVSyozNrGqfAvnXVJOC30CUSOmGwFTIW4M9Swj3 AgKi2rvn0SDVgLrGs4tLHnTJg4VZBaom6+G36w1DKbl4Qqnq9TaVFTtaPABSeYKlHuePGQ OrhCN5XtSHJwGTL7AL5+z2qNezr8LwARYMgXp1qwGSHZLQ6tsn54gEOy7h3XToge+CjoxY 0ZvpeINidU+Z1oLgBqb1JQSlfuZJGbRXQVVih25RlW+KZrbBJMeVB23JkdWHGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654445486; a=rsa-sha256; cv=none; b=EFn8y7HLZM7LaMX0gERR+0i86CYtfYI7lVv2IQi5t+eU5k/oC34Cy7Vteul6O8y5Vedrck 3yCBw/paclUU4M/EtJpPoJMbjRAYSRGYtU0N7NMVX13klw4yUCbqABK2BYpZFG26P0gp/6 /jg/AdLwFGpQVpANAwgYV/VDC91LBZaiX8ByYntaxPIUKiX1uO67z8p0WmItJ7VKiZofSb BLovYiL+Ndnq8c4uVCoHyFpvhEqMriZw/vsiGaMnapJVagOk0tHyPm9ljYvRtQ+ZmwaCht QlXZQmm/2ElDbRiwdd65x/JaelwK6AM530EchgTZVJcng2ISPt9bDVt9EnuypQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263845 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Def2d763b3855c82449ac171a538d90e= 70cbd7ba1 commit ef2d763b3855c82449ac171a538d90e70cbd7ba1 Author: Robert Clausecker AuthorDate: 2022-06-03 13:18:05 +0000 Commit: Li-Wen Hsu CommitDate: 2022-06-05 16:09:55 +0000 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 (cherry picked from commit 239ba7a240fd6fd611ac6a72986de6b26ab5da64) graphics/libglvnd/Makefile | 7 ++++++- graphics/libglvnd/distinfo | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=