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

NetBSD - TPM locks up the entire system. #263

Open
Retro64XYZ opened this issue Sep 29, 2023 · 4 comments
Open

NetBSD - TPM locks up the entire system. #263

Retro64XYZ opened this issue Sep 29, 2023 · 4 comments

Comments

@Retro64XYZ
Copy link

doo@otaku [22:48:20] [~/.tmux/plugins/tpm] [master] -> % ./tpm tr: unknown option -- C usage: tr [-cs] string1 string2 tr [-c] -d string1 tr [-c] -s string1 tr [-c] -ds string1 string2 tr: unknown option -- C usage: tr [-cs] string1 string2 tr [-c] -d string1 tr [-c] -s string1 tr [-c] -ds string1 string2 /sdf/arpa/af/d/doo/.tmux/plugins/tpm/scripts/check_tmux_version.sh: line 67: [: : integer expression expected

I have an account on SDF. I have installed TPM and when I try to run tmux, nothing happens. I then tried to run TPM from the folder and it locks up completely. I have to disconnect from SSH and reconnect to get access again. The error is above. Is there a fix for this?

@the-homeless-god
Copy link

Same behavior

@RossBarnie
Copy link

Looking at https://man.netbsd.org/tr.1, it seems the BSD version of tr doesn't support the -C flag available in the GNU version so this won't work. Functionally it means NetBSD isn't supported by TPM. Someone with NetBSD and a little bash knowledge should be able to add the platform-specific changes that are needed.

@the-homeless-god
Copy link

Looking at https://man.netbsd.org/tr.1, it seems the BSD version of tr doesn't support the -C flag available in the GNU version so this won't work. Functionally it means NetBSD isn't supported by TPM. Someone with NetBSD and a little bash knowledge should be able to add the platform-specific changes that are needed.

How can I isolate tpm to avoid to freeze whole system and restarts? I will push a pull request to tpm with fix when you will help me to figure out about debugging it without the system restart

@RossBarnie
Copy link

I don't know BSD well enough to know. I'd suggest a container environment like docker or podman but I have no idea if they even work on BSD to be honest. One approach would be to look for the tr instances in the code and return something hard-coded instead of calling out to tr or any other tool you come across that breaks your system, then slowly reintroduce them with a conditional statement where one branch uses the current implementation (the default) and the other for BSD.

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

3 participants