Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574912 - >=media-libs/mesa-11.1.1 causes segmentation fault of www-client/firefox when GPU hardware acceleration is enabled using Intel GPU
Summary: >=media-libs/mesa-11.1.1 causes segmentation fault of www-client/firefox when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 20:22 UTC by Rick Harris
Modified: 2017-01-01 13:11 UTC (History)
4 users (show)

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


Attachments
firefox-44.0_segfault.txt (firefox-44.0_segfault.txt,24.78 KB, text/plain)
2016-02-16 20:22 UTC, Rick Harris
Details
glsl-nir-assert_fix.diff (glsl-nir-assert_fix.diff,762 bytes, patch)
2016-02-17 22:00 UTC, Rick Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2016-02-16 20:22:28 UTC
Created attachment 425666 [details]
firefox-44.0_segfault.txt

When GPU hardware accleration option is enabled it causes Firefox to segfault.

Steps to reproduce:
1. Enable GPU hardware acceleration in Firefox under
'Preferences > Advanced > Use hardware acceleration when available'

2. Play a YouTube video

(see attached gdb stack trace)

Graphics hardware is an Intel Ironlake GPU.
Comment 1 Gleb 2016-02-16 20:38:22 UTC
For the record, I also have Ironlake GPU Mobile, but Mesa is latest stable 11.0.6, while Kernel is 4.4.1-r1 (I had issues with hanging GPU on 4.1.12 and 4.1.15, actually, only on Transmission as I noticed), Firefox-bin 44.

I don't have such problem and everything works fine.
Comment 2 Rick Harris 2016-02-16 23:37:52 UTC
(In reply to Gleb from comment #1)
> For the record, I also have Ironlake GPU Mobile, but Mesa is latest stable
> 11.0.6, while Kernel is 4.4.1-r1 (I had issues with hanging GPU on 4.1.12
> and 4.1.15, actually, only on Transmission as I noticed), Firefox-bin 44.
> 
> I don't have such problem and everything works fine.

Yes, further testing indicates it is not compatible with later mesa versions.

So the segfault occurs when using mesa-11.1.1 or mesa-11.1.2.
Have updated the bug title accordingly.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2016-02-17 13:32:52 UTC
Probably not specific to any version of www-client/firefox since I reproduced this problem also with www-client/firefox-43.0.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2016-02-17 17:51:05 UTC
Is it reproduced with firefox-bin as well?
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2016-02-17 17:54:11 UTC
Also, just as a lark, could one of you try installing media-libs/libtxc_dxtn and see if that improves matters?
Comment 6 Arfrever Frehtes Taifersar Arahesis 2016-02-17 18:23:14 UTC
Segmentation fault still present after installation of media-libs/libtxc_dxtn.
Comment 7 Matt Turner gentoo-dev 2016-02-17 18:35:46 UTC
I strongly suspect this was fixed by upstream commit https://cgit.freedesktop.org/mesa/mesa/commit/?id=70dff4a55e767de8b9ce10f055b94ebb1f6a9755

Could someone use epatch_user to apply that to 11.1.2 and see if it indeed fixes their issue? It's planned to include that patch into 11.1.3 already, but confirmation would be nice.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2016-02-17 18:50:04 UTC
In order to apply this patch, src/compiler/nir/nir_lower_vec_to_movs.c must be changed to src/glsl/nir/nir_lower_vec_to_movs.c (due to https://cgit.freedesktop.org/mesa/mesa/commit/?id=a39a8fbbaa129f4e52f2a3ad2747182e9a74d910).

(And there is no call to epatch_user in ebuilds...)
Comment 9 Arfrever Frehtes Taifersar Arahesis 2016-02-17 20:49:22 UTC
This patch seems to help.
Comment 10 Rick Harris 2016-02-17 22:00:13 UTC
Created attachment 425752 [details, diff]
glsl-nir-assert_fix.diff

Can also confirm the patch applies and fixes the issue for both mesa-11.1.1 and 11.1.2.

Had to hand roll the patch as mentioned so have attached that if needed, thanks :)
Comment 11 Matt Turner gentoo-dev 2016-02-22 17:53:35 UTC
Whoops. I'd forgotten the directory structure changed since 11.1. Thanks for muddling through that.

I've committed mesa-11.1.2-r1 that contains the patch. I expect it will be upstream for 11.1.3.

Thanks for the report!