Skip to content

Assertions cause crash when running a wine application

Running an OpenCL application under wine causes the following assert to be triggered and a resulting crash:

/usr/src/debug/rocm-opencl-runtime/clr-rocm-6.2.4/rocclr/os/os_posix.cpp:321: static void amd::Os::currentStackInfo(unsigned char**, size_t*): Assertion `Os::currentStackPtr() >= *base - *size && Os::currentStackPtr() < *base && "just checking"' failed.

Building with -DCMAKE_BUILD_TYPE=Release fixes the issue and allows the application to work.

hip-runtime-amd is also affected by the same issue but it requires currently non public code to replicate.

Description:

Assert is triggered in CLR when running a wine application that uses OpenCL

Additional info:

Steps to reproduce:

  1. Download windows version of this tool: https://github.com/ProjectPhysX/OpenCL-Benchmark/releases/
  2. Run it through wine wine64 OpenCL-Benchmark-Windows.exe
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information