-
Notifications
You must be signed in to change notification settings - Fork 22
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
fgets
error when leaving Julia
#971
Comments
The
The
|
Can't reproduce this on macOS, but I can on Linux. But on Linux I also get the same behavior with a "plain" / "regular" GAP. So this seems to be a GAP issue, and/or possibly one in the GAP package named "Singular"? Note that what happens here is that In this particular case, it might also help to first kill the child process / instruct it to shutdown, before brutally closing its input stream. Actually, I wonder if this isn't a bug in the GAP kernel (but I should read up on the exact POSIX semantics of the various involved pieces first): static Obj FuncCLOSE_PTY_IOSTREAM(Obj self, Obj stream)
{
UInt pty = HashLockStreamIfAvailable(stream);
// Close down the child
int status;
int retcode = close(PtyIOStreams[pty].ptyFD);
if (retcode)
Pr("Strange close return code %d\n", retcode, 0);
kill(PtyIOStreams[pty].childPID, SIGTERM); Note how we first close the file descriptor, then call |
@fingolfin Yes, the problem occurs also in plain GAP; I did not notice this because the error message in plain GAP is different: the "Input/output error" is missing. Can we close this issue, since the problem is now fixed on the GAP side? |
The problem will be solved in GAP 4.13. |
Currently the following happens with Julia 1.8.5. (The problem had been observed in oscar-system/Oscar.jl/pull/3478.)
load
command, I do not get this error message.repsn
instead ofsglppow
does not cause the error message.GAP.prompt()
and thenLoadPackage("sglppow")
at the GAP prompt.The text was updated successfully, but these errors were encountered: