-
Notifications
You must be signed in to change notification settings - Fork 21
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
rcons
makes stdin, stdout, and stderr O_ASYNC | O_NONBLOCK
#56
Comments
neo954
changed the title
May 22, 2019
rcons
makes stdin, stdout, and stderr O_NONBLOCK | FASYNCrcons
makes stdin, stdout, and stderr O_ASYNC | O_NONBLOCK
@neo954 , is it possible to save original flag before F_SETFL system call and restore it in a defer function? |
hi, @chenglch , it is great to get your quickly response. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@neo954 commented on Tue May 21 2019
Here is the bug recreation steps.
Run
rcons
against a compute node, and then, pressCtrl-E C ?
. After that, run tftp client,tftp
. The tftp client will print out command line prompt repeatedly and endlessly.Additional information
The xCAT management node runs Ubuntu 18.04.2 on a ppc64el node. It has xCAT
2.15-snap201905170621
installed. The xCAT compute nodef6u13k15
is a regular KVM guest.@neo954 commented on Tue May 21 2019
I tried to get the tty state with
stty -a
before and after I runrcons
. But the two of outputs looked exactly same.@neo954 commented on Tue May 21 2019
I tried to run
strace tftp
when the tty is in the broken state. It seems theread()
system calls of tftp client process failed continuously and theerrno
was set toEAGAIN
.@neo954 commented on Tue May 21 2019
Enclosed please find the
strace
outputs.strace.tftp.out.good.txt
strace.tftp.out.problem.txt
@neo954 commented on Tue May 21 2019
This problem can be recreated with
cat
.@neo954 commented on Tue May 21 2019
@neo954 commented on Tue May 21 2019
Okay, here is the problem.
@neo954 commented on Tue May 21 2019
It seems the problem affected all three file descriptors 0, 1, and 2.
@neo954 commented on Tue May 21 2019
See http://man7.org/linux/man-pages/man5/proc.5.html for details of the
fdinfo
subdirectory.@neo954 commented on Tue May 21 2019
In file
/usr/src/linux-headers-4.15.0-47/include/uapi/asm-generic/fcntl.h
@neo954 commented on Tue May 21 2019
@neo954 commented on Tue May 21 2019
This is what happened on a RHEL 8 testing environment.
@neo954 commented on Tue May 21 2019
In the latest
goconserver
source,v0.3.2
.@neo954 commented on Wed May 22 2019
@chenglch, Do you have any idea about this issue? :-/
The text was updated successfully, but these errors were encountered: