I am using Arch Linux and am trying to use GPU Rendering in Blender. In the Arch Linux Wiki from Blender I read that I need either the AMDGPU-PRO or the opencl-amd package. So I installed the opencl-amd package and clinfo shows one platform with OpenCL 1.2.
But when I start Blender and change the Renderer to Cycles Render, it crashes. Showing the error
amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-9)
Segmentation fault (core dumped)
It is also crashing when I go to Settings > System with the same error message.
Blender Crash Log: https://pastebin.com/uaGcZAZ2
I have a RX 580 and using open-source amdgpu drivers on Arch linux.