Strange jboss-cli.sh error when quiting the session

57 views
Skip to first unread message

Roul Bergsma

unread,
Feb 9, 2021, 3:06:49 PM2/9/21
to WildFly
I see this behavior with Wildfly 16 and wildfly 22: When i enter the jboss-cli console and shutdown the wildfly server, I can't quit the session because it will result in a fully hanging SSh session. 
The error message is quite odd:
CLI Terminal Connection (uninterruptable)" java.io.IOError: java.io.IOException: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type
Java version is:
OpenJDK Runtime Environment (build 14.0.2-internal+0-adhoc.root.jdk14u-55692db5e928)
OpenJDK 64-Bit Server VM (build 14.0.2-internal+0-adhoc.root.jdk14u-55692db5e928, mixed mode, sharing) 
OS:
SmartOS (Solaris based) 

Jean Francois Denise

unread,
Feb 10, 2021, 9:13:37 AM2/10/21
to wil...@googlegroups.com
Hi Roul,
this is a problem with terminal handling on SmartOS.
In order to help debug could you update the bin/jboss-cli-logging.properties with (All the following lines exist in the file, you will have to un-comment some lines and update some others):
logger.org.jboss.as.cli.level=ALL
logger.org.aesh.level=ALL
logger.handlers=FILE
handler.FILE.level=ALL

Then starts bin/jboss-cli.sh, do the steps that show the problem.

The file jboss-cli.log will contain traces. Feel free to send them directly to me.

Thank-you.
JF
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/c624fd3f-a016-4237-bd8f-e412bf48eac2n%40googlegroups.com.


Roul Bergsma

unread,
Feb 10, 2021, 3:55:27 PM2/10/21
to WildFly
21:49:38,500 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:38,514 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:38,515 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:38,532 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:38,535 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:38,550 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:38,552 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:38,566 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:38,571 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, intr, undef]
21:49:38,590 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: 
21:49:38,591 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing [disconnected /] 
21:49:40,385 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing q
21:49:40,693 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing u
21:49:40,856 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing i
21:49:41,050 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing t
21:49:41,351 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing 

21:49:41,352 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:41,361 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:41,367 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Executing command quit in a new thread.
21:49:41,369 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Stopping.
21:49:41,372 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, -a]
21:49:41,381 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: speed 38400 baud; rows 81; columns 274;
intr = <undef>; quit = ^\; erase = ^?; kill = ^U; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; status = ^T; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab3 bs0 vt0 ff0
isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt -echoctl echoke -flusho

21:49:41,388 FINE  [org.aesh.readline.terminal.impl.ExecPty] Running: [stty, icrnl, ixon, echo, echoctl, icanon, iexten, eof, ^D, intr, ^C, min, 11111111111111111111111111111111, time, 11111111111111111111111111111111]
21:49:41,401 FINE  [org.aesh.readline.terminal.impl.ExecPty] Result: stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type

21:49:41,403 ERROR [org.jboss.as.cli.CommandContext] java.io.IOException: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type
: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type

21:49:41,404 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Print java.io.IOException: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type
: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type

21:49:41,404 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing java.io.IOException: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type
: Error executing 'stty icrnl ixon echo echoctl icanon iexten eof ^D intr ^C min 11111111111111111111111111111111 time 11111111111111111111111111111111': stty: invalid integer argument: '11111111111111111111111111111111': Value too large for defined data type

21:49:41,406 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Print 

21:49:41,407 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Writing 

21:49:41,407 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Done Executing command quit
21:49:41,408 TRACE [org.jboss.as.cli.impl.ReadlineConsole] Set a readline callback with prompt org.aesh.readline.Prompt@73406ff9
----------------------
Strange, looks like the values for "min" and "time" aren't processed as expected. Aspecialy the "time" which should be 0 (Zero) is also received as 11111111111111111111111111111111

Roul Bergsma

unread,
Feb 10, 2021, 4:25:50 PM2/10/21
to WildFly
What is the role of common.sh ? 
echo $* | $GREP "\-\-add\-modules"  Doesn't give a result, but i wonder what it would have to return? 

I noticed that the jboss-cli.sh is running with these "options":
 /usr/bin/bash /opt/local/bin/openjdk11-java --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED 
Which are "created" by common.sh

Jean Francois Denise

unread,
Feb 11, 2021, 3:33:27 AM2/11/21
to wil...@googlegroups.com
Hi,
I have a potential fix for this problem.
Could you rebuild readline from: https://github.com/aeshell/aesh-readline/pull/57
then copy readline/target/readline-2.1.jar to <wildfly install dir>/modules/system/layers/base/org/aesh/main/readline-2.1.jar
then update <wildfly install dir>/modules/system/layers/base/org/aesh/main/module.xml with <resource-root path="readline-2.1.jar"/>
Let me know if that fixes the problem on SmartOS.
Thank-you.
JF

Jean Francois Denise

unread,
Feb 19, 2021, 4:06:51 AM2/19/21
to wil...@googlegroups.com
Roul confirmed that the fix works on SmartOS. We need to upgrade aesh-readline, WFCORE-5287[1] tracks the problem.
JF
Reply all
Reply to author
Forward
0 new messages