OpenBSD's privelege separated X server runs on another user and can't attach
them because Mesa's EGL software creates SysV shm with mode 0600.
If you are using Xvfb, you can switch it manually on with UseEGL=Y

Index: dlls/win32u/sysparams.c
--- dlls/win32u/sysparams.c.orig
+++ dlls/win32u/sysparams.c
@@ -167,7 +167,11 @@ static pthread_mutex_t display_lock = PTHREAD_MUTEX_IN
 
 BOOL emulate_modeset = FALSE;
 BOOL decorated_mode = TRUE;
+#ifdef __OpenBSD__
+BOOL use_egl = FALSE; /* OpenBSD's privilege separated X server can't attach thru SysV shm. Enable it if you can using UseEGL=Y */
+#else
 BOOL use_egl = TRUE;
+#endif
 UINT64 thunk_lock_callback = 0;
 
 #define VIRTUAL_HMONITOR ((HMONITOR)(UINT_PTR)(0x10000 + 1))
