From forax at univ-mlv.fr Sat Jul 28 12:42:13 2018 From: forax at univ-mlv.fr (Remi Forax) Date: Sat, 28 Jul 2018 14:42:13 +0200 (CEST) Subject: JShell EofException Message-ID: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> Hi all, hi Robert, using jshell, my CI sometimes reports this error, this never occurs on local making things hard to reproduce, any idea ? java.io.EOFException at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3284) at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1047) at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277) at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99) at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160) at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:848) at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:140) at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3547) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1301) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.runFile(JShellTool.java:3035) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:944) at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254) at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.run(JShellToolProvider.java:94) R?mi From robert.field at oracle.com Sat Jul 28 18:55:34 2018 From: robert.field at oracle.com (Robert Field) Date: Sat, 28 Jul 2018 11:55:34 -0700 Subject: JShell EofException In-Reply-To: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> Message-ID: <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> Hi R?mi, This is an indicator that back-end execution-processing JVM has died attempting to evaluate an expression.? Or it could have died before the expression was sent. There is one bug filed with that stack trace: ??? https://bugs.openjdk.java.net/browse/JDK-8205975 I have added your report to that one. On our big test machines running a zillion tests at once, we see JShell failures based on time-outs (usually the back-end hasn't launched in time).? We haven't seen this to my knowledge. What platform do you see this on? What version of JShell/JDK? Do you, by any chance, know what is being evaluated? Thanks, Robert On 07/28/18 05:42, Remi Forax wrote: > Hi all, hi Robert, > using jshell, my CI sometimes reports this error, this never occurs on local making things hard to reproduce, > any idea ? > > java.io.EOFException > at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) > at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3284) > at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1047) > at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277) > at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99) > at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160) > at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:848) > at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:140) > at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3547) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1301) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.runFile(JShellTool.java:3035) > at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:944) > at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254) > at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.run(JShellToolProvider.java:94) > > R?mi From john.r.rose at oracle.com Sat Jul 28 19:57:27 2018 From: john.r.rose at oracle.com (John Rose) Date: Sat, 28 Jul 2018 12:57:27 -0700 Subject: JShell EofException In-Reply-To: <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> Message-ID: <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> On Jul 28, 2018, at 11:55 AM, Robert Field wrote: > > Do you, by any chance, know what is being evaluated? You can reproduce easily with `System.exit(0)`. From robert.field at oracle.com Sat Jul 28 20:23:24 2018 From: robert.field at oracle.com (Robert Field) Date: Sat, 28 Jul 2018 13:23:24 -0700 Subject: JShell EofException In-Reply-To: <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> Message-ID: <87125096-1eb9-04f2-7651-67868f412289@oracle.com> On 07/28/18 12:57, John Rose wrote: > On Jul 28, 2018, at 11:55 AM, Robert Field > wrote: >> >> Do you, by any chance, know what is being evaluated? > > You can reproduce easily with `System.exit(0)`. > The backtrace shouldn't occur with System.exit.? And I don't get that (do you?): % jshell |? Welcome to JShell -- Version 10.0.1 |? For an introduction type: /help intro jshell> System.exit(0) |? State engine terminated. |? Restore definitions with: /reload -restore jshell> -Robert From john.r.rose at oracle.com Sat Jul 28 20:55:16 2018 From: john.r.rose at oracle.com (John Rose) Date: Sat, 28 Jul 2018 13:55:16 -0700 Subject: JShell EofException In-Reply-To: <87125096-1eb9-04f2-7651-67868f412289@oracle.com> References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> <87125096-1eb9-04f2-7651-67868f412289@oracle.com> Message-ID: <97641965-E0F0-414D-8F1C-E90A0A1A3C49@oracle.com> On Jul 28, 2018, at 1:23 PM, Robert Field wrote: > > The backtrace shouldn't occur with System.exit. And I don't get that (do you?): Here's a transcript. The same thing happens if I add --no-startup, so I don't think it's environmental. -------- jshell -J-version java version "11-ea" 2018-09-25 Java(TM) SE Runtime Environment 18.9 (build 11-ea+19) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+19, mixed mode) -------- jshell -version jshell 11-ea -------- jshell | Welcome to JShell -- Version 11-ea | For an introduction type: /help intro jshell> System.exit(0) | State engine terminated. | Restore definitions with: /reload -restore java.io.EOFException at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3284) at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1047) at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277) at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99) at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160) at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:848) at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:140) at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3547) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1301) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176) at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975) at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254) at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120) jshell> /exit | Goodbye -------- From robert.field at oracle.com Sat Jul 28 22:01:26 2018 From: robert.field at oracle.com (Robert Field) Date: Sat, 28 Jul 2018 15:01:26 -0700 Subject: JShell EofException In-Reply-To: <97641965-E0F0-414D-8F1C-E90A0A1A3C49@oracle.com> References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> <87125096-1eb9-04f2-7651-67868f412289@oracle.com> <97641965-E0F0-414D-8F1C-E90A0A1A3C49@oracle.com> Message-ID: Hmmmm.... what platform? -Robert On 07/28/18 13:55, John Rose wrote: > On Jul 28, 2018, at 1:23 PM, Robert Field > wrote: >> >> The backtrace shouldn't occur with System.exit. And I don't get that >> (do you?): > > Here's a transcript. ?The same thing happens if I add --no-startup, > so I don't think it's environmental. > > -------- > ? ? ? jshell -J-version > java version "11-ea" 2018-09-25 > Java(TM) SE Runtime Environment 18.9 (build 11-ea+19) > Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11-ea+19, mixed mode) > -------- > ? ? ? jshell -version > jshell 11-ea > -------- > ? ? ? jshell > | Welcome to JShell -- Version 11-ea > | For an introduction type: /help intro > > jshell> System.exit(0) > | State engine terminated. > | Restore definitions with: /reload -restore > java.io.EOFException > at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) > at > java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3284) > at > java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1047) > at > jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277) > at > jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99) > at > jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160) > at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:848) > at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:140) > at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493) > at > jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3547) > at > jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1301) > at > jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203) > at > jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176) > at > jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975) > at > jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254) > at > jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120) > > jshell> /exit > | Goodbye > -------- From john.r.rose at oracle.com Sat Jul 28 22:10:04 2018 From: john.r.rose at oracle.com (John Rose) Date: Sat, 28 Jul 2018 15:10:04 -0700 Subject: JShell EofException In-Reply-To: References: <1633332327.756746.1532781733184.JavaMail.zimbra@u-pem.fr> <6dcf163e-477f-8fea-f46f-1b4192308140@oracle.com> <905AA99C-FD8D-40E2-BC6B-0D97BF7C5779@oracle.com> <87125096-1eb9-04f2-7651-67868f412289@oracle.com> <97641965-E0F0-414D-8F1C-E90A0A1A3C49@oracle.com> Message-ID: On Jul 28, 2018, at 3:01 PM, Robert Field wrote: > > Hmmmm.... what platform? > -------- uname -a Darwin sword3-4.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 21 20:07:39 PDT 2018; root:xnu-3789.73.14~1/RELEASE_X86_64 x86_64 --------