From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102009] Blender crashes when compiling OpenCL kernel Date: Tue, 14 Nov 2017 23:23:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0951843997==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 919FF6E0FA for ; Tue, 14 Nov 2017 23:23:33 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0951843997== Content-Type: multipart/alternative; boundary="15107018130.af70C.26849"; charset="UTF-8" --15107018130.af70C.26849 Date: Tue, 14 Nov 2017 23:23:33 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102009 --- Comment #8 from Jan Vesely --- (In reply to Markus from comment #7) > I tried to obtain debug information from Mesa but was unable to do so (i.= e. > starting Blender with `MESA_DEBUG=3Dcontext CYCLES_OPENCL_SPLIT_KERNEL_TE= ST=3D1 > ./blender` did not generate any visible debug information). >=20 > What I did instead, is run Blender via gdb which then gave the attached > stack trace at the time of crash. Looking at the trace, it appears like t= he > crash is inside LLVM. >=20 > What is the best way to debug this further? >=20 > P.S.: As I just updated to Ubuntu 17.10 (Beta 2), I've also attached new > glxinfo and clinfo output. you can use CLOVER_DEBUG=3Dclc,llvm,native CLOVER_DEBUG_FILE=3Dblender to force clover to dump compiled CL programs (it should produce several dump files for .clc .ll .asm). Make sure the kernels are compiled and not loaded fomr ~/.cache/cycles/kernels >>From there you can run and debug LLVM on the command line. Note that I have been unable to reproduce this. blender-2.79 on OpenCL 1.1 Mesa 17.4.0-devel (git-138adc72e7) AMD Radeon R7 Graphics (CARRIZO / DRM 3.18.0 / 4.11.0-ROC-SC, LLVM 5.0.1) AMD Radeon (TM) R7 M340 (ICELAND / DRM 3.18.0 / 4.11.0-ROC-SC, LLVM 5.0.1) instead it hits MAX_GLOBAL_BUFFERS assertion in radeonsi pipe driver. bumping the limit renders a picture albeit much different from CPU rendering --=20 You are receiving this mail because: You are the assignee for the bug.= --15107018130.af70C.26849 Date: Tue, 14 Nov 2017 23:23:33 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 8 on bug 10200= 9 from Jan Vesely
(In reply to Markus from comment #7)
> I tried to obtain debug information from Mesa bu=
t was unable to do so (i.e.
> starting Blender with `MESA_DEBUG=3Dcontext CYCLES_OPENCL_SPLIT_KERNEL=
_TEST=3D1
> ./blender` did not generate any visible debug information).
>=20
> What I did instead, is run Blender via gdb which then gave the attached
> stack trace at the time of crash. Looking at the trace, it appears lik=
e the
> crash is inside LLVM.
>=20
> What is the best way to debug this further?
>=20
> P.S.: As I just updated to Ubuntu 17.10 (Beta 2), I've also attached n=
ew
> glxinfo and clinfo output.

you can use CLOVER_DEBUG=3Dclc,llvm,native CLOVER_DEBUG_FILE=3Dblender
to force clover to dump compiled CL programs (it should produce several dump
files for .clc .ll .asm). Make sure the kernels are compiled and not loaded
fomr ~/.cache/cycles/kernels
>>From there you can run and debug LLVM on the command line.

Note that I have been unable to reproduce this.
blender-2.79 on
OpenCL 1.1 Mesa 17.4.0-devel (git-138adc72e7)
AMD Radeon R7 Graphics (CARRIZO / DRM 3.18.0 / 4.11.0-ROC-SC, LLVM 5.0.1)
AMD Radeon (TM) R7 M340 (ICELAND / DRM 3.18.0 / 4.11.0-ROC-SC, LLVM 5.0.1)

instead it hits MAX_GLOBAL_BUFFERS assertion in radeonsi pipe driver.
bumping the limit renders a picture albeit much different from CPU renderin=
g


You are receiving this mail because:
  • You are the assignee for the bug.
= --15107018130.af70C.26849-- --===============0951843997== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0951843997==--