From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 103653] Unreal segfault since gallium/u_threaded: avoid syncs for get_query_result Date: Thu, 09 Nov 2017 18:28:32 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1319922748==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 865066E0FB for ; Thu, 9 Nov 2017 18:28:32 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1319922748== Content-Type: multipart/alternative; boundary="15102521120.de933eA.8810"; charset="UTF-8" --15102521120.de933eA.8810 Date: Thu, 9 Nov 2017 18:28:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D103653 Bug ID: 103653 Summary: Unreal segfault since gallium/u_threaded: avoid syncs for get_query_result Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: adf.lists@gmail.com QA Contact: dri-devel@lists.freedesktop.org R9 285 Tonga, since commit 244536d3d6b40c1763d1e2b3e7676665afa69101 Author: Nicolai H=C3=A4hnle 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=3D0x5301430, payload=3D0x54c2a48) at util/u_threaded_context.c:374 374 if (!tq->head_unflushed.next) (gdb) bt #0 tc_call_end_query (pipe=3D0x5301430, payload=3D0x54c2a48) at util/u_threaded_context.c:374 #1 0x00007ffff11bfdaf in tc_batch_execute (job=3Djob@entry=3D0x54c27c0, thread_index=3Dthread_index@entry=3D0) at util/u_threaded_context.c:96 #2 0x00007ffff1083830 in util_queue_thread_func (input=3Dinput@entry=3D0x4= c37fe0) at u_queue.c:271 #3 0x00007ffff10834d7 in impl_thrd_routine (p=3D) 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 --=20 You are receiving this mail because: You are the assignee for the bug.= --15102521120.de933eA.8810 Date: Thu, 9 Nov 2017 18:28:32 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 103653
Summary Unreal segfault since gallium/u_threaded: avoid syncs for get= _query_result
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter adf.lists@gmail.com
QA Contact dri-devel@lists.freedesktop.org

R9 285 Tonga, since

commit 244536d3d6b40c1763d1e2b3e7676665afa69101
Author: Nicolai H=C3=A4hnle <nicolai.haehnle@amd.com>
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=3D0x5301430, payload=3D0x54c2a48) at
util/u_threaded_context.c:374
374        if (!tq->head_unflushed.next)
(gdb) bt
#0  tc_call_end_query (pipe=3D0x5301430, payload=3D0x54c2a48) at
util/u_threaded_context.c:374
#1  0x00007ffff11bfdaf in tc_batch_execute (job=3Djob@entry=3D0x54c27c0,
thread_index=3Dthread_index@entry=3D0) at util/u_threaded_context.c:96
#2  0x00007ffff1083830 in util_queue_thread_func (input=3Dinput@entry=
=3D0x4c37fe0)
at u_queue.c:271
#3  0x00007ffff10834d7 in impl_thrd_routine (p=3D<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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15102521120.de933eA.8810-- --===============1319922748== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1319922748==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 103653] Unreal segfault since gallium/u_threaded: avoid syncs for get_query_result Date: Fri, 10 Nov 2017 21:38:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0699917989==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 1106F6EB59 for ; Fri, 10 Nov 2017 21:38:07 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0699917989== Content-Type: multipart/alternative; boundary="15103498870.26E69EA.23712"; charset="UTF-8" --15103498870.26E69EA.23712 Date: Fri, 10 Nov 2017 21:38:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D103653 Andy Furniss changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #1 from Andy Furniss --- OK now https://cgit.freedesktop.org/mesa/mesa/commit/?id=3Dee880e91ccf06fbf7cdea35= c75b7dfd83bbc02b5 --=20 You are receiving this mail because: You are the assignee for the bug.= --15103498870.26E69EA.23712 Date: Fri, 10 Nov 2017 21:38:07 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Andy Furniss changed bug 10365= 3
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED


You are receiving this mail because:
  • You are the assignee for the bug.
= --15103498870.26E69EA.23712-- --===============0699917989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0699917989==--