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==--