From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Tue, 15 Aug 2017 14:06:16 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2036802132==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D9E289FC9 for ; Tue, 15 Aug 2017 14:06:16 +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 --===============2036802132== Content-Type: multipart/alternative; boundary="15028059760.117aD6D.12646"; charset="UTF-8" --15028059760.117aD6D.12646 Date: Tue, 15 Aug 2017 14:06:16 +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=3D102233 Bug ID: 102233 Summary: OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: critical Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: senad.jahic@gmx.com QA Contact: dri-devel@lists.freedesktop.org Blocks: 99553 Hardware: AMD A8-7600 with Radeon=E2=84=A2 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: https://github.com/ihaque/memtestCL/blob/607499a54dcac9b846fcc827dc5980d8e5= f66cec/memtestCL_cli.cpp#L126 On repeating runs, clGetDeviceIDs sometimes returns 0 for num_cpu and somet= imes 1. If it returns 1, clGetDeviceInfo later crashes when called with device id t= hat does not exist. If I hardcode "num_devices=3D3" at offending line, I can run memtestCL on a= ll three devices successfully without faults. Referenced Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=3D99553 [Bug 99553] Tracker bug for runnning OpenCL applications on Clover --=20 You are receiving this mail because: You are the assignee for the bug.= --15028059760.117aD6D.12646 Date: Tue, 15 Aug 2017 14:06:16 +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 102233
Summary OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memt= estCL
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity critical
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter senad.jahic@gmx.com
QA Contact dri-devel@lists.freedesktop.org
Blocks 99553

Hardware:
AMD A8-7600 with Radeon=E2=84=A2 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:
https://github.com/ihaque/memtest=
CL/blob/607499a54dcac9b846fcc827dc5980d8e5f66cec/memtestCL_cli.cpp#L126

On repeating runs, clGetDeviceIDs sometimes returns 0 for num_cpu and somet=
imes
1.
If it returns 1, clGetDeviceInfo later crashes when called with device id t=
hat
does not exist.

If I hardcode "num_devices=3D3" at offending line, I can run memt=
estCL on all
three devices successfully without faults.



You are receiving this mail because:
  • You are the assignee for the bug.
= --15028059760.117aD6D.12646-- --===============2036802132== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2036802132==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Fri, 15 Sep 2017 22:41:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0157596802==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 729F66ECFE for ; Fri, 15 Sep 2017 22:41:37 +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 --===============0157596802== Content-Type: multipart/alternative; boundary="15055152970.26A55b6a.25875"; charset="UTF-8" --15055152970.26A55b6a.25875 Date: Fri, 15 Sep 2017 22:41:37 +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=3D102233 --- Comment #1 from Jan Vesely --- What is the mesa/llvm version? can you post clinfo? do you use ocl-icd library? if so can you run setting OCL_ICD_VENDORS=3D/etc/OpenCL/vendors/mesa.icd --=20 You are receiving this mail because: You are the assignee for the bug.= --15055152970.26A55b6a.25875 Date: Fri, 15 Sep 2017 22:41:37 +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

Commen= t # 1 on bug 10223= 3 from Jan Vesely
What is the mesa/llvm version?
can you post clinfo?
do you use ocl-icd library? if so can you run setting
OCL_ICD_VENDORS=3D/etc/OpenCL/vendors/mesa.icd


You are receiving this mail because:
  • You are the assignee for the bug.
= --15055152970.26A55b6a.25875-- --===============0157596802== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0157596802==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Sat, 04 Nov 2017 22:59:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0550178920==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 72B976E185 for ; Sat, 4 Nov 2017 22:59:56 +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 --===============0550178920== Content-Type: multipart/alternative; boundary="15098363961.abF3fFBEE.14666"; charset="UTF-8" --15098363961.abF3fFBEE.14666 Date: Sat, 4 Nov 2017 22:59:56 +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=3D102233 Jan Vesely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --=20 You are receiving this mail because: You are the assignee for the bug.= --15098363961.abF3fFBEE.14666 Date: Sat, 4 Nov 2017 22:59:56 +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 = Jan Vesely changed bug 10223= 3
What Removed Added
Status NEW NEEDINFO


You are receiving this mail because:
  • You are the assignee for the bug.
= --15098363961.abF3fFBEE.14666-- --===============0550178920== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0550178920==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Fri, 22 Dec 2017 12:16:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1678836675==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C97E6E02A for ; Fri, 22 Dec 2017 12:16:15 +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 --===============1678836675== Content-Type: multipart/alternative; boundary="15139449750.2FfCf8.18421"; charset="UTF-8" --15139449750.2FfCf8.18421 Date: Fri, 22 Dec 2017 12:16:15 +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=3D102233 --- Comment #2 from Jan Vesely --- Can you try initializing the num_gpu, num_cpu, num_accel variables? clGetDeviceIDs returns CL_DEVICE_NOT_FOUND error if there are no devices matching the requested type. This does not set num_devices output parameter= to 0. Unless the variables are initialized to 0, the loop on line 135 accesses de= vids array out of bounds. --=20 You are receiving this mail because: You are the assignee for the bug.= --15139449750.2FfCf8.18421 Date: Fri, 22 Dec 2017 12:16:15 +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

Commen= t # 2 on bug 10223= 3 from Jan Vesely
Can you try initializing the num_gpu, num_cpu, num_accel varia=
bles?
clGetDeviceIDs returns CL_DEVICE_NOT_FOUND error if there are no devices
matching the requested type. This does not set num_devices output parameter=
 to
0.

Unless the variables are initialized to 0, the loop on line 135 accesses de=
vids
array out of bounds.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15139449750.2FfCf8.18421-- --===============1678836675== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1678836675==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Fri, 22 Dec 2017 12:17:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0998802842==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 517B66E02A for ; Fri, 22 Dec 2017 12:17:45 +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 --===============0998802842== Content-Type: multipart/alternative; boundary="15139450650.d1ECF7b.18537"; charset="UTF-8" --15139450650.d1ECF7b.18537 Date: Fri, 22 Dec 2017 12:17:45 +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=3D102233 --- Comment #3 from Jan Vesely --- (In reply to Senad from comment #0) > I get 100% crashes with YACMiner (crypto mining software). please report a separate bug for YACMiner --=20 You are receiving this mail because: You are the assignee for the bug.= --15139450650.d1ECF7b.18537 Date: Fri, 22 Dec 2017 12:17:45 +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

Commen= t # 3 on bug 10223= 3 from Jan Vesely
(In reply to Senad from comment #0)
> I get 100% crashes with YACMiner (crypto mining =
software).

please report a separate bug for YACMiner


You are receiving this mail because:
  • You are the assignee for the bug.
= --15139450650.d1ECF7b.18537-- --===============0998802842== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0998802842==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL Date: Thu, 10 May 2018 19:06:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0358650969==" 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 4165F6F005 for ; Thu, 10 May 2018 19:06:18 +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 --===============0358650969== Content-Type: multipart/alternative; boundary="15259791780.11310.4269" Content-Transfer-Encoding: 7bit --15259791780.11310.4269 Date: Thu, 10 May 2018 19:06:18 +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=3D102233 Jan Vesely changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|NEEDINFO |RESOLVED --- Comment #4 from Jan Vesely --- This PR should fix memtestCL: https://github.com/ihaque/memtestCL/pull/9 feel free to reopen if you still see the problem. --=20 You are receiving this mail because: You are the assignee for the bug.= --15259791780.11310.4269 Date: Thu, 10 May 2018 19:06:18 +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 = Jan Vesely changed bug 10223= 3
What Removed Added
Resolution --- NOTOURBUG
Status NEEDINFO RESOLVED

Commen= t # 4 on bug 10223= 3 from Jan Vesely
This PR should fix memtestCL:
https://github.com/i=
haque/memtestCL/pull/9

feel free to reopen if you still see the problem.


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