<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [clover] OpenCL segfault in gegl 'clones' test"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73571">73571</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[clover] OpenCL segfault in gegl 'clones' test
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jano.vesely@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=91998" name="attach_91998" title="gegl don't askfor cl/gl extensions">attachment 91998</a> <a href="attachment.cgi?id=91998&action=edit" title="gegl don't askfor cl/gl extensions">[details]</a></span>
gegl don't askfor cl/gl extensions

The tests/compositions/clones.xml from gegl test suite segfaults when using
mesa OpenCL on Radeon HD 7570 (AMD Turks). I tired running it in gdb, here's
the backtrace:
[New Thread 0x7fffca312700 (LWP 8187)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffffffc8b0 in ?? ()
(gdb) bt
#0  0x00007fffffffc8b0 in ?? ()
#1  0x00007fffffffc960 in ?? ()
#2  0x00007fffe6238202 in (anonymous
namespace)::InlineSpiller::insertSpill(unsigned int, bool,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >) ()
   from /home/vesely/.local/lib/libLLVMCodeGen.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

llvm, clang, mesa, libclc, gegl, babl are all latest git as of today.

Note that I had to patch gegl in order to use OpenCL on mesa at all (it
requires some GL/CL extensions). The patch is attached.

Note that the same test crashes when using intel-ocl too.</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>