Re: Bug#1092890: mesa: regression in 24.3: software rendering crashes on ppc64el with segmentation fault

Dmitry Shachnev <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <[email protected]>
On Wed, Jan 29, 2025 at 11:54:34PM +0300, Dmitry Shachnev wrote:
> In other news, I tried to use different linkers and linker options. With all
> linkers, it crashes, but in a bit different ways:
>
> - bfd (default): jump happens to stderr().
>
> - gold: jump happens to some incorrect place in libgallium-24.3.4.so:
>   https://paste.debian.net/1347044/
>   https://paste.debian.net/1347045/
>
> - lld: jump happens to 0x0.
>
> - bfd with -Wl,-z,now: *** stack smashing detected *** but in the same
>   location, when attempting to do driSwapBuffers(pdraw->dri_drawable).
>
> Also I tried a different compiler (clang), and did not notice any difference
> compared to gcc.
>
> In case someone else wants to take a look at this, here is how I test it:
> [...]

First, I found an easier way to reproduce this issue. Installing mesa-utils
package and running "xvfb-run -a glxgears" is enough to trigger it.

Second, I noticed that building without -DUSE_PPC64LE_ASM makes the issue
go away. Maybe there is some problem with the assembly (entry_ppc64le_tls.h)
but I can’t say what exactly. Anyway, I submitted a merge request to disable
assembly for now:
https://salsa.debian.org/xorg-team/lib/mesa/-/merge_requests/52

Dear Debian powerpc porters, if someone has an idea what happens here and
whether it can be fixed in a better way, any help would be welcome! Please see
my previous comments on this bug for more details.

--
Dmitry Shachnev
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEq2sdvrA0LydXHe1qsmYUtFL0RrYFAmefiNYACgkQsmYUtFL0
RrYvuA/9GgS/4EQlPzhbgI5v2/UBEOBEH8UA68Cy3o2NplWNsyjVtuJKb99RFp4c
8uhC1HChFDZ+LWOrWAcHFtV4d0vtPkOc/DGwfuJ1XMoIQljdjoQcC0K3g03upthW
9RdcbRJhdmGebcqI35OZcug4jKl1SOhu8wYowAHZMEjf07rxFHLGiqqXasIgvyk/
XLJHClil8NSTZyVeYSuXvzM10zDPFH9KOnq/XKT6iwA1aj8ycJel/Zr8gNV6gZpp
udukR2r+yc2/sB1v8RnHpwAAA0wMWer1jfd0rCEJUdCChknUOLDfWBZUW5GkSYSE
eXnmsVNctBRYy/4+WLmGGIpmCPKFPn1YR3SJVMp8quRp0A2eoiCMFj0tkJmcFsgJ
HC2OXyXLGQDgL/4zUzz7DqcWwRYa45jnhbiMUDD5i6+/xLV9uTq9R7s0qttXdrp/
nd1mt0nfsO6edjMjrrSjE3pSZ8Bz2lAXGcrdY/RovjnVCsK012P+Cdvsh074Wp3K
4+1kwvk5s6PeheSa2JFHUu6JOflBGGMzSk+DUnpdJynK8EMsZy597Q7LLBD/PXR1
7QL/iVvRKhT7dWIBoYALPft2fjXPxpzqUOWQQqGnSsOk71hXdukbxFxZTtylPR3D
ZYpFkRN+cu7pFbb/YmWZimmMs9iD6ixMnO9jBRp81jPWaaQBo+8=
=BZo6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.