From nobody Sat May 07 15:42:52 2022 X-Original-To: ports-bugs@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 AB52F1AC152A for ; Sat, 7 May 2022 15:42:52 +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 4KwWsm3D4Wz3tBS for ; Sat, 7 May 2022 15:42:52 +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 4E7D4137A2 for ; Sat, 7 May 2022 15:42:52 +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 247Fgq6L095460 for ; Sat, 7 May 2022 15:42:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 247FgquR095459 for ports-bugs@FreeBSD.org; Sat, 7 May 2022 15:42:52 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: ports-bugs@FreeBSD.org Subject: [Bug 263845] graphics/libglvnd: crashes on armv7 with SIGILL Date: Sat, 07 May 2022 15:42:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651938172; 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; bh=J0k2JPrW6gq1MIDD1rt2inqiANPwPMKAOzFng1QJkbo=; b=ymKOtzrIEqHgHXkpXG1dPbFfgixVTQRd2tZFY3xk6p2Jj0RJFpIHfurMkW9ukzTYF6kKC9 l+THOmagpgfO/McFgsV86FFJU5mZgpA1zor4UAM0A28JHZh6tBI1wdBy5e9l+YN3shgtTo x/A+uBiSEROEH/8jl7ZozW/iQkSU1p14UVsfEaeTwSsfnIzZrEY2zMLpEwmyzPaO/JZ9X5 fSbTOsvmXxySoI0JaYKo3hyGpntOPIKO5B7NK+e7uDrB9TFHDnU7ZUyOxaBax3UzkrR3Ax T+JHrDOLyaLpFpWKIz1P9aWIYWUVlPBz6L31p/etivpZKQrbzAs2fURQEEbI+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651938172; a=rsa-sha256; cv=none; b=STTuhjr1rXsSK2/IY7xt5QaoJA3Exx6Cj2B6D5U9e+Rh6jbSpjTYyW9D7/fXbzWHJozfA4 f8/zSJF3QDh0gWEt7stxONgkXGvrCa4TAkpzf/ExyrpdqJVTJUp5mFdrKTWtzHx/nzjCUV fQCU4Db/oJWbWGT2ypWluzF9JirKUOW/KpkESmfbeT8+dBGlhL0p+By2n3MPHwACvummoU 7BOzY3dhEyVLwUey81y6xxtzgHNA2EIsvOuwZOj9/NHMJ/x40R15dQw0AohJwx1HN3y0fm 8BHCzSZwZBWtRoz3EDoNB7akZPbzYITBmT5nekKAx+bk4SFt/kD9CD6KGfbPBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263845 Bug ID: 263845 Summary: graphics/libglvnd: crashes on armv7 with SIGILL Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: x11@FreeBSD.org Reporter: fuz@fuz.su Assignee: x11@FreeBSD.org Flags: maintainer-feedback?(x11@FreeBSD.org) The following simple program crashes with SIGILL when compiled on armv7 Fre= eBSD 13: #include int main() { glGetError(); } I am compiling with "cc -I/usr/local/lib -L/usr/local/include test.c -lGL. = My package version is libglvnd 1.4.0_1 and I've tested this both on native arm= v7 and in an armv7 jail running on arm64. The behaviour is extremely strange. I am aware that glvnd does some sort of dispatch logic to get to the platform's native driver, but this does not ma= tch what I see. When I try to debug this code, it seems that it is somehow iterating through the entirety of the the libGL API, only to then crash after having gone thr= ough glWriteMaskEXT. I do not understand what the purpose of this is and it does not seem to match any code I found in the library. Digging further into this, it seems that the library is compiled in ARM mod= e, but executed in Thumb mode for some reason (wtf). I suspect this might be because the source file src/GLdispatch/vnd-glapi/entry_armv7_tsd.c uses ".thumb_func" to label the stub entry points, but then they don't get compi= led in thumb mode for some reason. --=20 You are receiving this mail because: You are the assignee for the bug.=