From issues-return-38517-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Fri Feb 2 07:14:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id B4BA9180608 for ; Fri, 2 Feb 2018 07:14:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A40A3160C57; Fri, 2 Feb 2018 06:14:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ECA55160C44 for ; Fri, 2 Feb 2018 07:14:04 +0100 (CET) Received: (qmail 42753 invoked by uid 500); 2 Feb 2018 06:14:04 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 42736 invoked by uid 99); 2 Feb 2018 06:14:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2018 06:14:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8F6EEC405A for ; Fri, 2 Feb 2018 06:14:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LQDkvcBNhk4T for ; Fri, 2 Feb 2018 06:14:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C970B5F2C3 for ; Fri, 2 Feb 2018 06:14:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5AACCE00C6 for ; Fri, 2 Feb 2018 06:14:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 92FEC21E80 for ; Fri, 2 Feb 2018 06:14:01 +0000 (UTC) Date: Fri, 2 Feb 2018 06:14:00 +0000 (UTC) From: "Xilai Dai (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KARAF-5592) Karaf shell unexpected exit when Ctrl + C during log:display or select text then press Enter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Xilai Dai created KARAF-5592: -------------------------------- Summary: Karaf shell unexpected exit when Ctrl + C during log:= display or select text then press Enter Key: KARAF-5592 URL: https://issues.apache.org/jira/browse/KARAF-5592 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.4 Environment: Java 1.8.0_121 Windows 7 64bit Reporter: Xilai Dai Start Karaf 4.1.4 on Windows (bin/karaf.bat) 1) execute log:display from the shell console 2) during the display (not finished), press Ctrl + C to interrupt, then th= e shell will exit unexpected {code:java} 2018-02-02T11:04:04,039 | ERROR | Karaf local console user karaf | he.karaf= .shell.support.ShellUtil 149 | 111 - org.apache.karaf.shell.core - 4.1.4 |= Exception caught while executing command com.sun.jna.LastErrorException: [6] The handle is invalid. =09at com.sun.jna.Native.invokeVoid(Native Method) ~[?:?] =09at com.sun.jna.Function.invoke(Function.java:408) [?:?] =09at com.sun.jna.Function.invoke(Function.java:354) [?:?] =09at com.sun.jna.Library$Handler.invoke(Library.java:244) [?:?] =09at org.jline.terminal.impl.jna.win.$Proxy28.GetConsoleScreenBufferInfo(U= nknown Source) [183:org.jline:3.4.0] =09at org.jline.terminal.impl.jna.win.JnaWinSysTerminal.getSize(JnaWinSysTe= rminal.java:72) [183:org.jline:3.4.0] =09at org.apache.karaf.shell.impl.console.JLineTerminal.getSize(JLineTermin= al.java:173) [111:org.apache.karaf.shell.core:4.1.4] =09at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:481= ) [183:org.jline:3.4.0] =09at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSes= sionImpl.java:348) [111:org.apache.karaf.shell.core:4.1.4] =09at java.lang.Thread.run(Thread.java:748) [?:?]{code} =C2=A0 Or: 1) Select some text in the shell console, then press "Enter" try to copy/pa= ste it 2) then the shell console will exit unexpected. =C2=A0 I did some tests locally, the second problem (copy/paste) can be solved aft= er upgrade jline from 3.4.0 to 3.5.2(or 3.5.0 also OK). but the first probl= em still existing after jline upgrade. -- This message was sent by Atlassian JIRA (v7.6.3#76005)