Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap/debuginfod: use user's $HOME/.cache/debuginfod_client as cache path #68

Open
xmkg opened this issue Jul 1, 2024 · 0 comments
Open

Comments

@xmkg
Copy link
Contributor

xmkg commented Jul 1, 2024

Currently, the bundled debuginfod in hotkdump snap stores & uses the /home/<user>/snap/hotkdump/<revision>/.cache/debuginfod_client cache path. Ideally, the bundled debuginfod should also be able to access the user's .cache/debuginfod_client path to avoid duplicates, but that requires hotkdump snap to use personal-files interface, which needs to be approved by the snap store reviewers. Thus, we should decide if that's something worth digging into further.

PS: there's a workaround exists, which is to bind mount the path to the user's debuginfod cache (e.g. /home/user/.cache/debuginfod_client) to a path that hotkdump snap can access, e.g. /home/<user>/debuginfod-cache, and then set the DEBUGINFOD_CACHE_PATH environment variable before running the snap:

mkdir /home/user/debuginfod-cache
sudo mount --bind /home/user/.cache/debuginfod_client/ /home/user/debuginfod-cache
DEBUGINFOD_CACHE_PATH=/home/user/debuginfod-cache hotkdump --interactive -d /workspace/case-data/example-crash-dumps/lathiat/kdump-demos/focal/x86_64/5.15.0-67-generic/dump.202303240831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant