<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 - [r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96488">96488</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[r600g]OpenCL driver causes segfault in ImageMagick's Histogram kernel
</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/r600
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nixscripter@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=124469" name="attach_124469" title="Histogram kernel backtrace">attachment 124469</a> <a href="attachment.cgi?id=124469&action=edit" title="Histogram kernel backtrace">[details]</a></span>
Histogram kernel backtrace
If I compile ImageMagick with OpenCL support, the current version segfaults
when I attempt to do any operation which computes a histogram. This is actually
done frequently internally, so it's more crippling than it first appears.
To reproduce:
1. Get the current latest ImageMagick from GitHub:
<a href="https://github.com/ImageMagick/ImageMagick">https://github.com/ImageMagick/ImageMagick</a>
2. Compile it with OpenCL support (--enable-opencl flag)
3. Get an image, and try to equalize its colors (based on the histogram):
convert input.png -equalize output.png
4. The segfault will occur
LLVM version: r272184
Mesa version: commit d5491a8
ImageMagick version: ade0d8e
The source code for the Histogram kernel is in
MagickCore/accelerate-kernels-private.h, starting on line 1283.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>