On a gentoo musl hardened new system, there's a segfault from i965_dri.so each time it is used. It prevents sddm or sway to start for instance. There was a patch fixing this issue in the previous versions, but is has been deleted: https://github.com/gentoo/musl/commit/7c5001885455f64a6fecf3b8343e6225828b2ee0#diff-3d9272404cad0e572f873023f93ff0cb The patch still works fine. Tested with mesa 19.1.1 Reproducible: Always Steps to Reproduce: 1.login in a tty 2.start sway 3. Actual Results: segfault from i965_dri.so, sway fails to start Expected Results: sway can start successfully
(In reply to Yed from comment #0) > On a gentoo musl hardened new system, there's a segfault from i965_dri.so > each time it is used. It prevents sddm or sway to start for instance. > > There was a patch fixing this issue in the previous versions, but is has > been deleted: > https://github.com/gentoo/musl/commit/ > 7c5001885455f64a6fecf3b8343e6225828b2ee0#diff- > 3d9272404cad0e572f873023f93ff0cb > > The patch still works fine. > Tested with mesa 19.1.1 > > > Reproducible: Always > > Steps to Reproduce: > 1.login in a tty > 2.start sway > 3. > Actual Results: > segfault from i965_dri.so, sway fails to start > > Expected Results: > sway can start successfully I'm not sure what happened here. So you want to create a pull request and I'll reintroduce the patch. Thanks.
(In reply to Anthony Basile from comment #1) > (In reply to Yed from comment #0) > > On a gentoo musl hardened new system, there's a segfault from i965_dri.so > > each time it is used. It prevents sddm or sway to start for instance. > > > > There was a patch fixing this issue in the previous versions, but is has > > been deleted: > > https://github.com/gentoo/musl/commit/ > > 7c5001885455f64a6fecf3b8343e6225828b2ee0#diff- > > 3d9272404cad0e572f873023f93ff0cb > > > > The patch still works fine. > > Tested with mesa 19.1.1 > > > > > > Reproducible: Always > > > > Steps to Reproduce: > > 1.login in a tty > > 2.start sway > > 3. > > Actual Results: > > segfault from i965_dri.so, sway fails to start > > > > Expected Results: > > sway can start successfully > > I'm not sure what happened here. So you want to create a pull request and > I'll reintroduce the patch. Thanks. patch is incorrect.
Created attachment 581746 [details, diff] upstream patch not landed on musl overlay yet Please throw the patch into /etc/portage/patches/media-libs/mesa/ and re-emerge and test thank you.
(In reply to Jory A. Pratt from comment #3) > Created attachment 581746 [details, diff] [details, diff] > upstream patch not landed on musl overlay yet > > Please throw the patch into /etc/portage/patches/media-libs/mesa/ and > re-emerge and test thank you. I did not know we can apply patches this way, it is great ! Tested with mesa-19.1.1::musl, this patch fix the issue. Thanks!
(In reply to Yed from comment #4) > (In reply to Jory A. Pratt from comment #3) > > Created attachment 581746 [details, diff] [details, diff] [details, diff] > > upstream patch not landed on musl overlay yet > > > > Please throw the patch into /etc/portage/patches/media-libs/mesa/ and > > re-emerge and test thank you. > > I did not know we can apply patches this way, it is great ! > Tested with mesa-19.1.1::musl, this patch fix the issue. > Thanks! Thanks for testing, I will move it to the overlay tonight after I am done with work.
commit 60e4a8942f1e6ab43491beab75db633bb53bc857 (HEAD -> master, origin/master, origin/HEAD) Author: Jory Pratt <anarchy@gentoo.org> Date: Tue Jul 2 12:27:36 2019 -0500 media-libs/mesa: Fix stack overflow issues with musl, upstream patch Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Jory Pratt <anarchy@gentoo.org>