Skip to content

Fix Linux debugging on NVIDIA + X11#770

Open
andreymlv wants to merge 8 commits intoEpicGamesExt:devfrom
andreymlv:linux-fixes
Open

Fix Linux debugging on NVIDIA + X11#770
andreymlv wants to merge 8 commits intoEpicGamesExt:devfrom
andreymlv:linux-fixes

Conversation

@andreymlv
Copy link
Copy Markdown

Hit several issues debugging on Arch + NVIDIA 595 + X11.

X11 window used CopyFromParent visual, mismatching EGL/GLX framebuffer config: GLX BadMatch crash, EGL silent black window. Renderer now publishes its chosen visual + colormap.

eglCreateContext got a null EGLConfig; NVIDIA lacks EGL_KHR_no_config_context, so the context silently no-op'd and all draws hit GL_INVALID_OPERATION. Pass the config; bind a pbuffer at init.

dmn_lnx_rdebug_vaddr_from_memory SIGILL'd on the GNU_HASH branch (NotImplemented). Modern toolchains link --hash-style=gnu only. Symbol count now derived from GNU_HASH.

Breakpoints didn't bind: rdi_from_dwarf built source paths from dir_table[dir_idx] + file->path without prepending dir_table[0], so build/main.c became /build/main.c. DWARFv5 6.2.4: relative dir entries append to entry 0.

Memory view SIGILL'd on unimplemented eval ops at -Og/-O2. Implemented Swap; soft-fail BadOp for CallSiteValue (entry_value needs caller-frame regs, not plumbed); no-op for piece markers.

RDI cache redirected to ~/raddbg/rdi-cache when the binary lives under /usr, /lib, etc. - writes for libc.so/ld.so were failing.

Tested on ArchLinux + NVIDIA 595.58.03 + X11(dwm). Not tested on Mesa or Wayland.

image

@andreymlv andreymlv force-pushed the linux-fixes branch 2 times, most recently from cf59dc1 to ddfda21 Compare April 28, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants