<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 - Unreal segfault since gallium/u_threaded: avoid syncs for get_query_result"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103653">103653</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unreal segfault since gallium/u_threaded: avoid syncs for get_query_result
</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>normal
</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>adf.lists@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>dri-devel@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>R9 285 Tonga, since
commit 244536d3d6b40c1763d1e2b3e7676665afa69101
Author: Nicolai Hähnle <<a href="mailto:nicolai.haehnle@amd.com">nicolai.haehnle@amd.com</a>>
Date: Sun Oct 22 17:38:51 2017 +0200
gallium/u_threaded: avoid syncs for get_query_result
Queries should still get marked as flushed when flushes are executed
asynchronously in the driver thread.
To this end, the management of the unflushed_queries list is moved into
the driver thread.
I get a segfault starting Unreal Elemental demo or unreal tournament.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe34f5700 (LWP 7403)]
tc_call_end_query (pipe=0x5301430, payload=0x54c2a48) at
util/u_threaded_context.c:374
374 if (!tq->head_unflushed.next)
(gdb) bt
#0 tc_call_end_query (pipe=0x5301430, payload=0x54c2a48) at
util/u_threaded_context.c:374
#1 0x00007ffff11bfdaf in tc_batch_execute (job=job@entry=0x54c27c0,
thread_index=thread_index@entry=0) at util/u_threaded_context.c:96
#2 0x00007ffff1083830 in util_queue_thread_func (input=input@entry=0x4c37fe0)
at u_queue.c:271
#3 0x00007ffff10834d7 in impl_thrd_routine (p=<optimized out>) at
../../include/c11/threads_posix.h:87
#4 0x00007ffff7bc5434 in start_thread () from /lib/libpthread.so.0
#5 0x00007ffff6a1206d in clone () from /lib/libc.so.6</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>