You are not logged in.
Pages: 1
So I'm trying to debug a complex ROCM issue, and tried to install rocmgdb.
Unfortunately the documentation didn't specify that just using 'make' will overwrite your OS gdb instead of naming it 'rocmgdb' like it maybe should, instead you need to use a complex four-line configure command to set it properly. So, apparently, it set all the permissions for a bunch of gdb related folders to r-x------ instead of r-xr-xr-x.
The consequence is that I can now run gdb as a non-root user debugging that user's program, but backtraces are mangled because gdb can't access its own python functionality anymore.
Installation error: gdb._execute_unwinders function is missingThe prime suspect is those folder/file permissions.
First, I reinstalled gdb, to no avail.
Then, I tried manually setting permissions inside of /usr/local/share/gdb and all the subfolders, by browsing the package repository and seeing all the files in gdb and gdb-common, but this didn't help.
Then, I tried reinstalling gdb using pacman again, but this didn't help. I wanted to see if pacman at least gave me a notice of wrong permissions, but it didn't care about the permissions in /usr/local/share/gdb.
I tried reinstalling every package gdb depends on using pacman, but this, again, didn't help. So maybe I set all of them correctly. Yet my problem remains.
Is there something I can do to tell pacman to reinstate the mangled folder/file permissions so other users than root can debug things?
Last edited by Aphid_ARCH (2024-02-17 18:11:38)
Offline
/usr/local/share is not populated by packages, but will come first in your path. You can just clean out all binaries in /usr/local. so the makefile didn't touch your actual system files at all and is simply masking them from a PATH perspective.
Offline
Pages: 1