Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689078 - media-libs/mesa [musl]: i965_dri.so segfault
Summary: media-libs/mesa [musl]: i965_dri.so segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-01 13:26 UTC by Yed
Modified: 2019-07-02 17:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
upstream patch not landed on musl overlay yet (disk_cache-stack-overflow.patch,1.74 KB, patch)
2019-07-02 04:15 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yed 2019-07-01 13:26:03 UTC
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
Comment 1 Anthony Basile gentoo-dev 2019-07-01 13:29:55 UTC
(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.
Comment 2 Jory A. Pratt gentoo-dev 2019-07-02 04:13:42 UTC
(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.
Comment 3 Jory A. Pratt gentoo-dev 2019-07-02 04:15:31 UTC
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.
Comment 4 Yed 2019-07-02 07:28:15 UTC
(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!
Comment 5 Jory A. Pratt gentoo-dev 2019-07-02 17:15:40 UTC
(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.
Comment 6 Jory A. Pratt gentoo-dev 2019-07-02 17:28:16 UTC
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>