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

Can't Get Accurate Error Messages When Ptyprocess.exec Failed #101

Open
eddiezhou1 opened this issue Mar 13, 2021 · 3 comments
Open

Can't Get Accurate Error Messages When Ptyprocess.exec Failed #101

eddiezhou1 opened this issue Mar 13, 2021 · 3 comments

Comments

@eddiezhou1
Copy link

I hope to get accurate error messages instead of Unknown reason, when I execute some non-existent commands.

java.io.IOException: Exec_tty error:Unknown reason
	at com.pty4j.unix.UnixPtyProcess.execInPty(UnixPtyProcess.java:219) ~[pty4j-0.11.4.jar!/:na]
	at com.pty4j.unix.UnixPtyProcess.<init>(UnixPtyProcess.java:59) ~[pty4j-0.11.4.jar!/:na]
	at com.pty4j.PtyProcessBuilder.start(PtyProcessBuilder.java:127) ~[pty4j-0.11.4.jar!/:na]
	at com.pty4j.PtyProcess.exec(PtyProcess.java:91) ~[pty4j-0.11.4.jar!/:na]
	at com.pty4j.PtyProcess.exec(PtyProcess.java:62) ~[pty4j-0.11.4.jar!/:na]
@segrey
Copy link
Collaborator

segrey commented Mar 19, 2021

Thanks, reproduced when command is not in PATH.

@eddiezhou1
Copy link
Author

It also reproduced when memeory can't allocate in native funcation
image

@zhaoxini
Copy link

zhaoxini commented Sep 3, 2021

Reason: Not enough storage

Solution :

  1. Increase memory capacity
  2. Modify memory strategy (vm.overcommit_memory =1)
  3. Check for memory leaks

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