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

erd --long crashes when attempting to display user/group info for nonexistant group/user #189

Closed
nwoythal opened this issue Jun 7, 2023 · 0 comments · Fixed by #193
Closed

Comments

@nwoythal
Copy link

nwoythal commented Jun 7, 2023

I have a file on my filesystem that is owned by a GID that doesn't exist locally (but does inside a container) -- when erd attempts to fetch the data from this file, a SIGSEGV is generated:

$ touch foo
$ sudo chown :9999 foo
$ ls -plaht foo
-rw-rw-r-- 1 natewo 9999 0 Jun  7 11:54 foo
$ erd --no-config --long foo
[1]    1025586 segmentation fault (core dumped)  erd foo
$ sudo chown 9999:natewo foo
$ ls -plaht foo
-rw-rw-r-- 1 9999 natewo 0 Jun  7 11:54 foo
$ erd --no-config --long foo
[1]    1025644 segmentation fault (core dumped)  erd fo

FWIW I know very little about rust, but it seems to be coming from src/fs/ug.rs:try_get_user/src/fs/ug.rs:try_get_group

@nwoythal nwoythal changed the title erd --long crashes when attempting to display user/group info for nonexistant group erd --long crashes when attempting to display user/group info for nonexistant group/user Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant