Bug 100984 - QupZilla crashes at startup after mesa upgrade
Summary: QupZilla crashes at startup after mesa upgrade
Status: RESOLVED INVALID
Alias: None
Product: Spam
Classification: Unclassified
Component: Two (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-10 05:27 UTC by Francesco Turco
Modified: 2017-08-14 19:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
gdb backtrace (basic version) (8.63 KB, text/plain)
2017-05-10 05:28 UTC, Francesco Turco
Details
gdb backtrace (full version) (163.80 KB, text/plain)
2017-05-10 05:29 UTC, Francesco Turco
Details

Description Francesco Turco 2017-05-10 05:27:22 UTC
Since I upgraded media-libs/mesa from version 17.0.4 to version 17.1.0_rc4 I cannot start QupZilla anymore because it produces a segmentation fault. I have an Intel GPU (Q35 chipset). My GNU/Linux distribution is Gentoo.

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)

# emerge -pv qupzilla mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] www-client/qupzilla-2.1.2::gentoo  USE="dbus -debug -gnome-keyring -kwallet -libressl -nonblockdialogs" LINGUAS="-ar_SA -bg_BG -ca_ES -cs_CZ -da_DK -de_DE -el_GR -es_ES -es_MX -es_VE -eu_ES -fa_IR -fi_FI -fr_FR -gl_ES -he_IL -hr_HR -hu_HU -id_ID -is -it_IT -ja_JP -ka_GE -lg -lt -lv_LV -nl_NL -nqo -pl_PL -pt_BR -pt_PT -ro_RO -ru_RU -sk_SK -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv_SE -tr_TR -uk_UA -uz@Latn -zh_CN -zh_HK -zh_TW" 2,703 KiB
[ebuild   R    ] media-libs/mesa-17.1.0_rc4::gentoo  USE="classic debug dri3 egl gallium gbm nptl -bindist -d3d9 -gles1 -gles2 -llvm -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -vaapi -valgrind -vdpau -vulkan -wayland -xa -xvmc" VIDEO_CARDS="i915 intel (-freedreno) -i965 -imx -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 2,703 KiB
Comment 1 Francesco Turco 2017-05-10 05:28:25 UTC
Created attachment 131290 [details]
gdb backtrace (basic version)

I used the "bt" gdb command.
Comment 2 Francesco Turco 2017-05-10 05:29:11 UTC
Created attachment 131291 [details]
gdb backtrace (full version)

I used the "thread apply all bt full" gdb command.
Comment 3 Francesco Turco 2017-05-11 15:34:48 UTC
I found another applications that segfaults with media-libs/mesa-17.1.0_rc4 and media-libs/mesa-9999 (git version): media-video/mpv.
Comment 4 Francesco Turco 2017-05-11 15:56:16 UTC
See also https://bugs.gentoo.org/show_bug.cgi?id=618206
Comment 5 Emil Velikov 2017-05-11 20:50:40 UTC
Francesco there can be two driver for your device. The following command will show  which one.
$ glxinfo| grep "renderer string"

In either case - these drivers have hardly anyone looking at them, so a simple test case, or a offending commit considering it's a regression, will be appreciated.
Comment 6 Francesco Turco 2017-05-11 21:31:35 UTC
$ glxinfo | grep "renderer string"
couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
OpenGL renderer string: Gallium 0.4 on i915 (chipset: Q35)
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
i915_program_error: bad opcode 133
i915_program_error: bad opcode 121
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
i915_get_shader_param: Unknown cap 28.
i915_get_shader_param: Unknown cap 30.
i915_get_param: Unknown cap 49.
i915_get_param: Unknown cap 119.
i915_get_param: Unknown cap 49.
Comment 7 Alexander Tsoy 2017-05-14 22:13:26 UTC
Confirming this issue with i915g driver.

$ DISPLAY=:0 glxinfo | egrep 'renderer string|OpenGL version string'
OpenGL renderer string: Gallium 0.4 on i915 (chipset: 945GM)
OpenGL version string: 2.1 Mesa 17.1.0-rc4

"glxgears" and "mpv --vo=opengl" segfaults:

[35772.915780] mpv/vo[8568]: segfault at 12c ip 00007f456c76ae76 sp 00007f456dbad880 error 4 in i915g_dri.so[7f456c261000+6a9000]
[35779.817131] mpv/vo[8599]: segfault at 12c ip 00007f14033bce76 sp 00007f1408b6a880 error 4 in i915g_dri.so[7f1402eb3000+6a9000]
[35792.307840] glxgears[8625]: segfault at 12c ip 00007f07ee640e76 sp 00007fff2adb5900 error 4 in i915g_dri.so[7f07ee137000+6a9000]
[35874.392980] glxgears[8638]: segfault at 12c ip 00007f54a2cfae76 sp 00007ffeb5249370 error 4 in i915g_dri.so[7f54a27f1000+6a9000]
Comment 8 Alexander Tsoy 2017-05-15 09:17:45 UTC
This is probably a duplicate of bug 100189.
Comment 9 Francesco Turco 2017-05-20 12:15:50 UTC
I have upgraded media-libs/mesa from 17.1.0_rc4 to 17.1.0.

After running "eselect mesa set i915 2" (gallium) both qupzilla and mpv crash.
After running "eselect mesa set i915 1" (classic) both qupzilla and mpv run successfully.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.