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.
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.
(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.
Probably not specific to any version of www-client/firefox since I reproduced this problem also with www-client/firefox-43.0.
Is it reproduced with firefox-bin as well?
Also, just as a lark, could one of you try installing media-libs/libtxc_dxtn and see if that improves matters?
Segmentation fault still present after installation of media-libs/libtxc_dxtn.
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.
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...)
This patch seems to help.
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 :)
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!