<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [bisected] Steam crashes when newest Iris built with LTO"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111376">111376</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[bisected] Steam crashes when newest Iris built with LTO
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Gallium/Iris
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mike@fireburn.co.uk
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>I've bisected back to
<a href="https://gitlab.freedesktop.org/mesa/mesa/commit/0fd4359733e6920d5cac9596eeada753a587a246">https://gitlab.freedesktop.org/mesa/mesa/commit/0fd4359733e6920d5cac9596eeada753a587a246</a>
I was seeing steam[1804860]: segfault at 0 ip 00000000f6371b97 sp
00000000fff096c0 error 6 in iris_dri.so[f5cf7000+1134000] in my dmesg
Here's the build:
meson --buildtype plain --libdir lib --localstatedir /var/lib --prefix /usr
--sysconfdir /etc --wrap-mode nodownload --cross-file
/var/tmp/portage/media-libs/mesa-9999/temp/meson.i686-pc-linux-gnu.x86
-Dplatforms=surfaceless,x11,wayland,drm -Dllvm=true -Dlmsensors=true
-Dlibunwind=false -Dgallium-nine=true -Dgallium-va=true
-Dva-libs-path=/usr/lib/va/drivers -Dgallium-vdpau=true -Dgallium-xa=false
-Dgallium-xvmc=false -Dgallium-opencl=disabled -Dglx-read-only-text=false
-Dosmesa=none -Dbuild-tests=false -Dglx=dri -Dshared-glapi=true -Ddri3=true
-Degl=true -Dgbm=true -Dgles1=false -Dgles2=true -Dglvnd=false -Dselinux=false
-Dvalgrind=false -Ddri-drivers= -Dgallium-drivers=iris,radeonsi,swrast
-Dvulkan-drivers=amd,intel -Dvulkan-overlay-layer=true --buildtype plain
-Db_ndebug=true /var/tmp/portage/media-libs/mesa-9999/work/mesa-9999
/var/tmp/portage/media-libs/mesa-9999/work/mesa-9999-abi_x86_32.x86
The Meson build system
Version: 0.51.1
Source dir: /var/tmp/portage/media-libs/mesa-9999/work/mesa-9999
Build dir: /var/tmp/portage/media-libs/mesa-9999/work/mesa-9999-abi_x86_32.x86
Build type: cross build
Program python found: YES
(/var/tmp/portage/media-libs/mesa-9999/temp/python3.7/bin/python)
Project name: mesa
Project version: 19.2.0-devel
Appending CFLAGS from environment: '-O3 -march=native -pipe -flto=8'
Appending LDFLAGS from environment: '-O3 -march=native -pipe -flto=8 -Wl,-O2
-Wl,--hash-style=gnu -Wl,--as-needed -Wl,--build-id=sha1'
C compiler for the build machine: x86_64-pc-linux-gnu-gcc -m32 (gcc 9.1.0
"x86_64-pc-linux-gnu-gcc (Gentoo 9.1.0-r1 p1.1) 9.1.0")
Appending CXXFLAGS from environment: '-O3 -march=native -pipe -flto=8'
Appending LDFLAGS from environment: '-O3 -march=native -pipe -flto=8 -Wl,-O2
-Wl,--hash-style=gnu -Wl,--as-needed -Wl,--build-id=sha1'
C++ compiler for the build machine: x86_64-pc-linux-gnu-g++ -m32 (gcc 9.1.0
"x86_64-pc-linux-gnu-g++ (Gentoo 9.1.0-r1 p1.1) 9.1.0")
C compiler for the host machine: x86_64-pc-linux-gnu-gcc -m32 (gcc 9.1.0
"x86_64-pc-linux-gnu-gcc (Gentoo 9.1.0-r1 p1.1) 9.1
And a backtrace from an unstripped mesa
Thread 1 "steam" received signal SIGSEGV, Segmentation fault.
0xf632d4ad in ralloc_steal () from /usr/lib/dri/iris_dri.so
(gdb) bt
#0 0xf632d4ad in ralloc_steal () from /usr/lib/dri/iris_dri.so
#1 0xf63efe93 in steal_memory(ir_instruction*, void*) [clone .lto_priv.0] ()
from /usr/lib/dri/iris_dri.so
#2 0xf63ee7ca in ir_hierarchical_visitor::visit_enter(ir_function*) () from
/usr/lib/dri/iris_dri.so
#3 0xf63ee0b1 in ir_function::accept(ir_hierarchical_visitor*) () from
/usr/lib/dri/iris_dri.so
#4 0xf6678787 in _mesa_get_fixed_func_fragment_program () from
/usr/lib/dri/iris_dri.so
#5 0xf675c65b in update_program () from /usr/lib/dri/iris_dri.so
#6 0xf6772b2f in _mesa_update_state_locked () from /usr/lib/dri/iris_dri.so
#7 0xf6773237 in _mesa_update_state () from /usr/lib/dri/iris_dri.so
#8 0xf6497467 in _mesa_Clear () from /usr/lib/dri/iris_dri.so
#9 0xed1ae806 in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/vgui2_s.so
#10 0xed1bd4ed in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/vgui2_s.so
#11 0xf054bc6d in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/steamui.so
#12 0xf054bef5 in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/steamui.so
#13 0xf053e28f in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/steamui.so
#14 0xf0491eaa in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/steamui.so
#15 0xf0493c2e in ?? () from
/home/fireburn/.local/share/Steam/ubuntu12_32/steamui.so
#16 0x5658e1b0 in RunSteam(int, char**, bool) ()
#17 0x5658f0ab in ?? ()
#18 0x5657a06c in ?? ()
#19 0xf78a5021 in __libc_start_main () from /lib/libc.so.6
#20 0x5657dd29 in _start ()</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>