问题
So I was fiddling some code in jshell, but it started crashing when I pressed Tab.
int[] a = new int[]{1, 2, 5, 0, -1}
In my next statement, when I type A-r-r-a, then (Tab) to autocomplete to Array and get options, it crashes with
Error on input: java.io.IOException: Resource temporarily unavailable
Does anyone know how to fix this?
EDIT: I'm using Elementary OS Juno. It is a distro based on Ubuntu 18.04
回答1:
I believe this may be a result of https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813873, which says that is missing the second of two patches, and
This second patch is required to prevent a rather serious regression where userspace applications reading from stdin can receive EAGAIN when they should not.
(Note the EAGAIN is "Resource temporarily unavailable"). I can reproduce this jshell bug when running kernel 4.15.0-44 or 4.15.0-45, but not when running 4.15.0-43. If my skimming of the aforementioned bug ticket is accurate, it seems that a new kernel version with the patch applied should be released on March 4.
来源:https://stackoverflow.com/questions/54859244/getting-error-on-input-java-io-ioexception-resource-temporarily-unavailable