All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
@ 2017-08-15 14:06 bugzilla-daemon
  2017-09-15 22:41 ` bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-08-15 14:06 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1633 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

            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™ 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/607499a54dcac9b846fcc827dc5980d8e5f66cec/memtestCL_cli.cpp#L126

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

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


Referenced Bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=99553
[Bug 99553] Tracker bug for runnning OpenCL applications on Clover
-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3553 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
  2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
@ 2017-09-15 22:41 ` bugzilla-daemon
  2017-11-04 22:59 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-09-15 22:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 349 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

--- Comment #1 from Jan Vesely <jan.vesely@rutgers.edu> ---
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=/etc/OpenCL/vendors/mesa.icd

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1167 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
  2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
  2017-09-15 22:41 ` bugzilla-daemon
@ 2017-11-04 22:59 ` bugzilla-daemon
  2017-12-22 12:16 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-11-04 22:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 374 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

Jan Vesely <jan.vesely@rutgers.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1090 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
  2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
  2017-09-15 22:41 ` bugzilla-daemon
  2017-11-04 22:59 ` bugzilla-daemon
@ 2017-12-22 12:16 ` bugzilla-daemon
  2017-12-22 12:17 ` bugzilla-daemon
  2018-05-10 19:06 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-12-22 12:16 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 526 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

--- Comment #2 from Jan Vesely <jan.vesely@rutgers.edu> ---
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 devids
array out of bounds.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1364 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
  2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-12-22 12:16 ` bugzilla-daemon
@ 2017-12-22 12:17 ` bugzilla-daemon
  2018-05-10 19:06 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2017-12-22 12:17 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 338 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

--- Comment #3 from Jan Vesely <jan.vesely@rutgers.edu> ---
(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.

[-- Attachment #1.2: Type: text/html, Size: 1247 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL
  2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-12-22 12:17 ` bugzilla-daemon
@ 2018-05-10 19:06 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-05-10 19:06 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=102233

Jan Vesely <jan.vesely@rutgers.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTOURBUG
             Status|NEEDINFO                    |RESOLVED

--- Comment #4 from Jan Vesely <jan.vesely@rutgers.edu> ---
This PR should fix memtestCL:
https://github.com/ihaque/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.

[-- Attachment #1.2: Type: text/html, Size: 2252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-10 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-15 14:06 [Bug 102233] OpenCL segmentation fault on AMD Radeon (Kaveri+R7) with memtestCL bugzilla-daemon
2017-09-15 22:41 ` bugzilla-daemon
2017-11-04 22:59 ` bugzilla-daemon
2017-12-22 12:16 ` bugzilla-daemon
2017-12-22 12:17 ` bugzilla-daemon
2018-05-10 19:06 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.