* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
@ 2016-01-18 0:39 bugzilla-daemon
2016-01-18 15:57 ` bugzilla-daemon
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-01-18 0:39 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1416 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
Bug ID: 93748
Summary: [r600g]OpenCL driver causes ImageMagick to segfault
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: dri-devel@lists.freedesktop.org
Reporter: nixscripter@gmail.com
QA Contact: dri-devel@lists.freedesktop.org
Created attachment 121096
--> https://bugs.freedesktop.org/attachment.cgi?id=121096&action=edit
Output of /usr/bin/display
If I compile ImageMagick with OpenCL support, and use the display utility to
view any image, the program segfaults before anything is rendered with the
attached LLVM error.
I'm using ImageMagick 6.2.9.6, though it has failed on several previous
versions also.
The relevant piece of source code is in magick/accelerate.c, a gigantic list of
OpenCL stuff (which I must admit I am ill-equipped to read). The function it
complains about, GenerateNoiseImage, seems to start on line 428.
I'm using LLVM r254897 from SVN, and Mesa commit 9214664 (r74971).
My card is:
Advanced Micro Devices, Inc. [AMD/ATI] Juniper PRO [Radeon HD 6750]
Please let me know if you need more information.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2864 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
@ 2016-01-18 15:57 ` bugzilla-daemon
2016-01-19 2:33 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-01-18 15:57 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #1 from Jan Vesely <jan.vesely@rutgers.edu> ---
Hi,
I had trouble locating the kernel. There's a git repo nd 6.9.X.Y release
tarballs. Unfortunately imagemagick does not tag releases. Do you know the git
commit that corresponds to to 6.2.9.6?
posting the corresponding __kernel function would suffice too.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1217 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
2016-01-18 15:57 ` bugzilla-daemon
@ 2016-01-19 2:33 ` bugzilla-daemon
2016-05-30 17:44 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-01-19 2:33 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1071 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #2 from nixscripter@gmail.com ---
Created attachment 121124
--> https://bugs.freedesktop.org/attachment.cgi?id=121124&action=edit
GenerateNoiseImage kernel
Here is their kernel. It's rather ugly.
It has a lot of macros (like ClamptoQuantum) and functions running on the host
(mwcGenerateDifferentialNoise is elsewhere in the same file), but perhaps if
it's an LLVM assembler bug those don't matter.
The initialization code for the OpenCL context, by the way, is entirely
separate and also rather ugly (I presume so they can load it early and "drop it
in" when needed).
Here is a link to the source of my exact version (which I know is old, sorry
about that) so you can look at any surrounding context necessary:
http://distfiles.icmpv6.org/distfiles/ImageMagick-6.9.2-6.tar.xz
Note that this kernel can be found in magick/accelerate-private.h -- the error
pointing to magick/accelerate.c is where the kernel is initialized.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2056 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
2016-01-18 15:57 ` bugzilla-daemon
2016-01-19 2:33 ` bugzilla-daemon
@ 2016-05-30 17:44 ` bugzilla-daemon
2016-05-30 17:48 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 17:44 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1240 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
nixscripter@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #121096|0 |1
is obsolete| |
--- Comment #3 from nixscripter@gmail.com ---
Created attachment 124178
--> https://bugs.freedesktop.org/attachment.cgi?id=124178&action=edit
AddNoise backtrace for IMv7 Git
In order to assist with this issue, I tried upgrading to the Git Version of
Imagemagick, available on GitHub:
https://github.com/ImageMagick/ImageMagick
ImageMagick master commit 5fb7d58 still fails with LLVM revision 264388 and
Mesa commit 511ce29. (I upgrade to the latest revisions every week or two, just
in case this issue could be fixed without me noticing.)
However, the traceback is now quite different, and the image does display --
for just a moment while they do some operation subsequently which makes it
segfault. Now it's in the AddNose kernel.
Hopefully the source version will make the issue easier to reproduce/debug.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2723 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] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
` (2 preceding siblings ...)
2016-05-30 17:44 ` bugzilla-daemon
@ 2016-05-30 17:48 ` bugzilla-daemon
2016-05-30 17:56 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 17:48 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 279 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #4 from nixscripter@gmail.com ---
Oh, and before I forget, The AddNoise kernel is in MagickCore/accelerate.c,
starting on line 499.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1048 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] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
` (3 preceding siblings ...)
2016-05-30 17:48 ` bugzilla-daemon
@ 2016-05-30 17:56 ` bugzilla-daemon
2016-05-30 18:34 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 17:56 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 276 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #5 from nixscripter@gmail.com ---
Correction, make that MagickCore/accelerate-kernels-private.h, starting on line
798. (Argh...)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1045 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] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
` (4 preceding siblings ...)
2016-05-30 17:56 ` bugzilla-daemon
@ 2016-05-30 18:34 ` bugzilla-daemon
2016-05-30 20:27 ` [Bug 93748] [r600g]OpenCL driver causes ImageMagick display command " bugzilla-daemon
2016-05-30 20:27 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 18:34 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 564 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #6 from Jan Vesely <jan.vesely@rutgers.edu> ---
based on the LLVM dump something is trying to do v2 load.
Do you know what noise type is used?
Guassian noise in that kernel uses sinpi and cospi which use v2float (float
load is the same as int).
can you try newer llvm version?
proper constant address space loads were implemented in r269481. it fixed
builtin functions that rely on tables, like sinpi/cospi.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1350 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] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick display command to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
` (5 preceding siblings ...)
2016-05-30 18:34 ` bugzilla-daemon
@ 2016-05-30 20:27 ` bugzilla-daemon
2016-05-30 20:27 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 20:27 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 633 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
nixscripter@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[r600g]OpenCL driver causes |[r600g]OpenCL driver causes
|ImageMagick to segfault |ImageMagick display command
| |to segfault
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1519 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] 9+ messages in thread
* [Bug 93748] [r600g]OpenCL driver causes ImageMagick display command to segfault
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
` (6 preceding siblings ...)
2016-05-30 20:27 ` [Bug 93748] [r600g]OpenCL driver causes ImageMagick display command " bugzilla-daemon
@ 2016-05-30 20:27 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2016-05-30 20:27 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 304 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=93748
--- Comment #7 from nixscripter@gmail.com ---
I upgraded LLVM to r271203, past the version you suggested, and it does indeed
fix the issue! Thanks!
Closing as FIXED.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1157 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] 9+ messages in thread
end of thread, other threads:[~2016-05-30 20:27 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 0:39 [Bug 93748] [r600g]OpenCL driver causes ImageMagick to segfault bugzilla-daemon
2016-01-18 15:57 ` bugzilla-daemon
2016-01-19 2:33 ` bugzilla-daemon
2016-05-30 17:44 ` bugzilla-daemon
2016-05-30 17:48 ` bugzilla-daemon
2016-05-30 17:56 ` bugzilla-daemon
2016-05-30 18:34 ` bugzilla-daemon
2016-05-30 20:27 ` [Bug 93748] [r600g]OpenCL driver causes ImageMagick display command " bugzilla-daemon
2016-05-30 20:27 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).