RFR: 8224184: jshell got IOException at exiting with AIX

Toshio 5 Nakamura TOSHIONA at jp.ibm.com
Wed Jun 12 09:18:07 UTC 2019


Hi Jan,

Thank you so much for the great advice.
I could create a testcase for the issue.

Could you re-review the patch?
http://cr.openjdk.java.net/~tnakamura/8224184/webrev.01/

Thanks,
Toshio Nakamura

Jan Lahoda <jan.lahoda at oracle.com> wrote on 2019/06/11 22:30:50:

> From: Jan Lahoda <jan.lahoda at oracle.com>
> To: Toshio 5 Nakamura <TOSHIONA at jp.ibm.com>, Robert Field
> <robert.field at oracle.com>
> Cc: kulla-dev at openjdk.java.net
> Date: 2019/06/11 22:31
> Subject: [EXTERNAL] Re: RFR: 8224184: jshell got IOException at
> exiting with AIX
>
> Hi Toshio,
>
> I think the change is fine, and I can sponsor the change.
>
> It might be possible to create a unit-like test by doing something like:
> class TestExecPty extends ExecPty {
>      public List<String> getFlagsToSet(Attributes attr, Attributes
> current) {
>          return super.getFlagsToSet(attr, current);
>      }
> }
>
> and then:
> new TestExecPty().getFlagsToSet(..., ...)
>
> with carefully prepared Attributes sent to the method. (Having this
> would help to ensure this does not break on updates of the library.)
>
> Thanks,
>      Jan
>
> On 11. 06. 19 15:09, Toshio 5 Nakamura wrote:
> > Hi Robert,
> > Thank you for review.
> >
> > Hi Jan,
> > Sorry for bothering you, but can we have your opinion by RDP1?
> >
> > Thanks,
> > Toshio Nakamura
> >
> > Robert Field <robert.field at oracle.com> wrote on 2019/06/08 02:05:34:
> >
> >  > From: Robert Field <robert.field at oracle.com>
> >  > To: Toshio 5 Nakamura <TOSHIONA at jp.ibm.com>, kulla-
> >  > dev at openjdk.java.net, Jan Lahoda <jan.lahoda at oracle.com>
> >  > Date: 2019/06/08 02:05
> >  > Subject: [EXTERNAL] Re: RFR: 8224184: jshell got IOException at
> >  > exiting with AIX
> >  >
> >  > There are fixes for which the test is not possible or very hard,
that is
> >  > OK (there is even a special label for this case), they should still
be
> >  > fixed.
> >  >
> >  > The fix looks very reasonable to me.  You are checking for a failure
> >  > case that wasn't checked for before.  The behavior (by code
inspection,
> >  > and your report) without your fix is clearly wrong.  Ignoring the
> >  > character seems the best and safest choice.
> >  >
> >  > Jan is in charge of the internal JLine version.  I know he has a lot
of
> >  > pans in the fire right now.
> >  >
> >  > Jan: please let us know if I should be the sponsor of the patch, or
you
> >  > would?
> >  >
> >  > Thanks,
> >  > Robert
> >  >
> >  >
> >  > On 5/23/19 11:47 PM, Toshio 5 Nakamura wrote:
> >  > > Hi,
> >  > >
> >  > > I think lacking of testcase may be a concern of my proposal.
> >  > > Honestly, I couldn't create an automated testcase of this problem.
> >  > > I tried to use shell script like below, but it cannot execute the
> >  > > problematic path.
> >  > >
> >  > > $ echo "/exit" | jshell
> >  > >
> >  > > I think the testcase needs to run on 'pty'.
> >  > >
> >  > > Manual instructions are very simple, though.
> >  > > 1. Open a terminal on AIX (or telnet/ssh to AIX)
> >  > > 2. Launch jshell
> >  > > 3. Type "/exit"
> >  > >
> >  > > Could you give me any advice?
> >  > >
> >  > > Issue:
https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.openjdk.java.net_browse_JDK-2D8224184&d=DwID-g&c=jf_iaSHvJObTbx-siA1ZOg&r=EVbFABcgo-X99_TGI2-qsMtyulHUruf8lAzMlVpVRqw&m=UU1x5Bo_JUr9KEACZW9OxDD3WYht8KipUQKt2b8JZEQ&s=lmDNn3cUJVPx1lsz_iJbL7i791TOy2089Ql0_eUkUHw&e=

> >  > > Webrev:
https://urldefense.proofpoint.com/v2/url?u=http-3A__cr.openjdk.java.net_-7Etnakamura_8224184_webrev.00_&d=DwID-g&c=jf_iaSHvJObTbx-siA1ZOg&r=EVbFABcgo-X99_TGI2-qsMtyulHUruf8lAzMlVpVRqw&m=UU1x5Bo_JUr9KEACZW9OxDD3WYht8KipUQKt2b8JZEQ&s=bJhZaUbUIBWEae3YhYXXrQaXL2GpmLEXSfeNTru_6Xk&e=

> >  > >
> >  > > Thanks,
> >  > > Toshio Nakamura
> >  > > IBM Japan
> >  > >
> >  > >> From: "Toshio 5 Nakamura" <TOSHIONA at jp.ibm.com>
> >  > >> To: kulla-dev at openjdk.java.net
> >  > >> Date: 2019/05/20 17:13
> >  > >> Subject: [EXTERNAL] RFR: 8224184: jshell got IOException at
> > exiting with
> >  > > AIX
> >  > >> Sent by: "kulla-dev" <kulla-dev-bounces at openjdk.java.net>
> >  > >>
> >  > >>
> >  > >> Hi,
> >  > >>
> >  > >> Could you review JDK-8224184: jshell got IOException at exiting
> > with AIX?
> >  > >> Also, I'd like to have a sponsor of the patch (I'm an author).
> >  > >> AIX doesn't show "min" or "time" by "stty -a" when "icanon" is
> > defined.
> >  > >> This caused invalid value was trying to be set, and IOException
was
> >  > > thrown.
> >  > >> Thanks,
> >  > >> Toshio Nakamura


More information about the kulla-dev mailing list