<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 - OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL"
href="https://bugs.freedesktop.org/show_bug.cgi?id=102233">102233</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>critical
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Gallium/radeonsi
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>senad.jahic@gmx.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>99553
</td>
</tr></table>
<p>
<div>
<pre>Hardware:
AMD A8-7600 with Radeon™ R7 Series
Sapphire R7 240 4GB
ASUS R7 240 4GB
OS: Ubuntu server 17.04 64bit (headless mode).
OpenCL Driver: Padoka
Description:
clinfo works, shows all three GPU platforms.
Sometimes I get segmentation fault using memtestCL.
I get 100% crashes with YACMiner (crypto mining software).
I've traced memtestCL down to this line:
<a href="https://github.com/ihaque/memtestCL/blob/607499a54dcac9b846fcc827dc5980d8e5f66cec/memtestCL_cli.cpp#L126">https://github.com/ihaque/memtestCL/blob/607499a54dcac9b846fcc827dc5980d8e5f66cec/memtestCL_cli.cpp#L126</a>
On repeating runs, clGetDeviceIDs sometimes returns 0 for num_cpu and sometimes
1.
If it returns 1, clGetDeviceInfo later crashes when called with device id that
does not exist.
If I hardcode "num_devices=3" at offending line, I can run memtestCL on all
three devices successfully without faults.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - Tracker bug for runnning OpenCL applications on Clover"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99553">Bug 99553</a>] Tracker bug for runnning OpenCL applications on Clover
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>