All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 102009] Blender crashes when compiling OpenCL kernel
@ 2017-08-01 22:22 bugzilla-daemon
  2017-08-01 22:23 ` bugzilla-daemon
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-08-01 22:22 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1561 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

            Bug ID: 102009
           Summary: Blender crashes when compiling OpenCL kernel
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: mw@graph-ix.net
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 133182
  --> https://bugs.freedesktop.org/attachment.cgi?id=133182&action=edit
Blender crash dump

On Ubuntu 17.04 with a AMD Radeon R9 380 (Tonga Pro chipset), daily Mesa from
Padoka PPA (version 1:17.3~git170731230100.df61a05~z~padoka0), both Blender
2.78 and 2.79 daily build (09eac0159db) crash when the OpenCL kernel is
compiled for GPU rendering.


Steps to reproduce:
1. Start Blender with `CYCLES_OPENCL_SPLIT_KERNEL_TEST=1 ./blender` due to
missing detection of OpenCL support (probably due to #101594).
2. Under Render settings, switch `Device` to `GPU Compute` and assert this
setting is actually used.
3. Start a render and assert the OpenCL kernel is compiled.

Actual behavior:
* Blender crashes during kernel compilation (crash dump of 2.79 build is
attached).

Expected behavior:
* Blender renders with OpenCL.

Addtional info:
* `clinfo` and `glxinfo` output is attached as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3058 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
@ 2017-08-01 22:23 ` bugzilla-daemon
  2017-08-01 22:24 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-08-01 22:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 292 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #1 from Markus <mw@graph-ix.net> ---
Created attachment 133183
  --> https://bugs.freedesktop.org/attachment.cgi?id=133183&action=edit
glxinfo

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1161 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
  2017-08-01 22:23 ` bugzilla-daemon
@ 2017-08-01 22:24 ` bugzilla-daemon
  2017-08-01 22:44 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-08-01 22:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 291 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #2 from Markus <mw@graph-ix.net> ---
Created attachment 133184
  --> https://bugs.freedesktop.org/attachment.cgi?id=133184&action=edit
clinfo

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
  2017-08-01 22:23 ` bugzilla-daemon
  2017-08-01 22:24 ` bugzilla-daemon
@ 2017-08-01 22:44 ` bugzilla-daemon
  2017-09-14 22:04 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-08-01 22:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 513 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

Jan Vesely <jan.vesely@rutgers.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |99553


Referenced Bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=99553
[Bug 99553] Tracker bug for runnning OpenCL applications on Clover
-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1569 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-08-01 22:44 ` bugzilla-daemon
@ 2017-09-14 22:04 ` bugzilla-daemon
  2017-10-01 15:47 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-09-14 22:04 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 353 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #3 from Jan Vesely <jan.vesely@rutgers.edu> ---
the stacktrace does not say much, and it's not similar to segfault I see on my
machine. Can you repost the stacktrace with mesa debug information?

thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1127 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-09-14 22:04 ` bugzilla-daemon
@ 2017-10-01 15:47 ` bugzilla-daemon
  2017-10-01 15:50 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-10-01 15:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #4 from Markus <mw@graph-ix.net> ---
Created attachment 134599
  --> https://bugs.freedesktop.org/attachment.cgi?id=134599&action=edit
gdb Stacktrace - Ubuntu 17.10

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-10-01 15:47 ` bugzilla-daemon
@ 2017-10-01 15:50 ` bugzilla-daemon
  2017-10-01 15:50 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-10-01 15:50 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 307 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #5 from Markus <mw@graph-ix.net> ---
Created attachment 134600
  --> https://bugs.freedesktop.org/attachment.cgi?id=134600&action=edit
glxinfo - Ubuntu 17.10

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-10-01 15:50 ` bugzilla-daemon
@ 2017-10-01 15:50 ` bugzilla-daemon
  2017-10-01 15:58 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-10-01 15:50 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 306 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #6 from Markus <mw@graph-ix.net> ---
Created attachment 134601
  --> https://bugs.freedesktop.org/attachment.cgi?id=134601&action=edit
clinfo - Ubuntu 17.10

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-10-01 15:50 ` bugzilla-daemon
@ 2017-10-01 15:58 ` bugzilla-daemon
  2017-11-14 23:23 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-10-01 15:58 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #7 from Markus <mw@graph-ix.net> ---
I tried to obtain debug information from Mesa but was unable to do so (i.e.
starting Blender with `MESA_DEBUG=context CYCLES_OPENCL_SPLIT_KERNEL_TEST=1
./blender` did not generate any visible debug information).

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 the crash is
inside LLVM.

What is the best way to debug this further?

P.S.: As I just updated to Ubuntu 17.10 (Beta 2), I've also attached new
glxinfo and clinfo output.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1487 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-10-01 15:58 ` bugzilla-daemon
@ 2017-11-14 23:23 ` bugzilla-daemon
  2018-05-19  2:56 ` [Bug 102009] [clover, amdgcn] " bugzilla-daemon
  2018-09-09 22:40 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-11-14 23:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1530 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

--- Comment #8 from Jan Vesely <jan.vesely@rutgers.edu> ---
(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=context CYCLES_OPENCL_SPLIT_KERNEL_TEST=1
> ./blender` did not generate any visible debug information).
> 
> 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 the
> crash is inside LLVM.
> 
> What is the best way to debug this further?
> 
> 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=clc,llvm,native CLOVER_DEBUG_FILE=blender
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2408 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] [clover, amdgcn] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-11-14 23:23 ` bugzilla-daemon
@ 2018-05-19  2:56 ` bugzilla-daemon
  2018-09-09 22:40 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-05-19  2:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

Jan Vesely <jan.vesely@rutgers.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Blender crashes when        |[clover, amdgcn] Blender
                   |compiling OpenCL kernel     |crashes when compiling
                   |                            |OpenCL kernel

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1170 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug 102009] [clover, amdgcn] Blender crashes when compiling OpenCL kernel
  2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-05-19  2:56 ` [Bug 102009] [clover, amdgcn] " bugzilla-daemon
@ 2018-09-09 22:40 ` bugzilla-daemon
  10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2018-09-09 22:40 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 660 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102009

Timothy Arceri <t_arceri@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.
                   |.org                        |org
         QA Contact|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.
                   |.org                        |org
          Component|Drivers/Gallium/radeonsi    |Gallium/StateTracker/Clover

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1582 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-09-09 22:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-01 22:22 [Bug 102009] Blender crashes when compiling OpenCL kernel bugzilla-daemon
2017-08-01 22:23 ` bugzilla-daemon
2017-08-01 22:24 ` bugzilla-daemon
2017-08-01 22:44 ` bugzilla-daemon
2017-09-14 22:04 ` bugzilla-daemon
2017-10-01 15:47 ` bugzilla-daemon
2017-10-01 15:50 ` bugzilla-daemon
2017-10-01 15:50 ` bugzilla-daemon
2017-10-01 15:58 ` bugzilla-daemon
2017-11-14 23:23 ` bugzilla-daemon
2018-05-19  2:56 ` [Bug 102009] [clover, amdgcn] " bugzilla-daemon
2018-09-09 22:40 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.