bugzilla-daemon at bugzilla.mindrot.org
2018-Jan-04 22:30 UTC
[Bug 2816] New: tty misbehaving
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 Bug ID: 2816 Summary: tty misbehaving Product: Portable OpenSSH Version: 7.6p1 Hardware: Sparc OS: Solaris Status: NEW Severity: major Priority: P5 Component: sshd Assignee: unassigned-bugs at mindrot.org Reporter: ted.carr at sungardas.com I recently compiled 7.6p1, same as I did 7.4p1. After successfully logging into the server now running 7.6p1 resizing my terminal window is not reflected in my ssh session. The tty remains fixed at 80 cols / 24 lines. For example, I am using SecureCRT to connect to the test system and after resizing my window to 194x43, tput lines still returns 24 and tput cols returns 80. Shrinking the terminal window to 54x10 also has no effect. Bash shell and 'checkwinsize' set to 'on'. Oracle Developer Studio 12.6 Build Environment: LDFLAGS=-xlang=c99 -m64 -fast CXXCPP=CC -E CPPFLAGS=-xlang=c99 -m64 -mt -fast -xcode=pic32 CXXFLAGS=-m64 CPP=cc -E SOFLAGS=-G LD=cc CXX=CC CFLAGS=-m64 CC=cc -- You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 --- Comment #1 from Ted Carr <ted.carr at sungardas.com> --- Build machine is 5.10 Generic_150400-52 SPARC-Enterprise-T5220 -- You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 Darren Tucker <dtucker at dtucker.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtucker at dtucker.net --- Comment #2 from Darren Tucker <dtucker at dtucker.net> --- Is the client on Solaris, the server on Solaris or both? Could you please attach (vie "Add an attacment") the generated config.h files from both 7.4p1 and 7.6p1 builds? Also please log in using ssh -vvv and try resizing your window. You should see something like this: $ stty | grep rows rows = 24; columns = 86; ypixels = 0; xpixels = 0; [resize here] debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 $ stty | grep rows rows = 24; columns = 87; ypixels = 0; xpixels = 0; That should help narrow it down to whether or not the client is sending the window change messages. (actually please attach the entire output of this ssh session too). -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 --- Comment #3 from Ted Carr <ted.carr at sungardas.com> --- Hi Darren, Thanks for having a look. Unfortunately I did not save the config.h from the 7.4p1 build. I am in the middle of rebuilding both versions to ensure that it is not me that is causing the issue. My client is SecureCRT running on my Mac and OpenSSH 7.6p1 running on Solaris 10 SPARC. I will upload the new config.h files once I have them. Here is the output from the SecureCRT session with trace turned on. It printed out the [LOCAL] messages as I resized the window. ?[ted.carr at testldom01:~] [18:56:01] -> [LOCAL] : SEND[0]: window-change (rows: 42, cols: 189) [LOCAL] : SEND[0]: window-change (rows: 36, cols: 161) [LOCAL] : SEND[0]: window-change (rows: 31, cols: 140) [LOCAL] : SEND[0]: window-change (rows: 28, cols: 128) [LOCAL] : SEND[0]: window-change (rows: 26, cols: 123) [LOCAL] : SEND[0]: window-change (rows: 26, cols: 122) [LOCAL] : SEND[0]: window-change (rows: 26, cols: 121) [LOCAL] : SEND[0]: window-change (rows: 26, cols: 123) [LOCAL] : SEND[0]: window-change (rows: 28, cols: 136) [LOCAL] : SEND[0]: window-change (rows: 31, cols: 148) [LOCAL] : SEND[0]: window-change (rows: 33, cols: 160) [LOCAL] : SEND[0]: window-change (rows: 35, cols: 168) [LOCAL] : SEND[0]: window-change (rows: 38, cols: 178) [LOCAL] : SEND[0]: window-change (rows: 40, cols: 188) [LOCAL] : SEND[0]: window-change (rows: 41, cols: 190) [LOCAL] : SEND[0]: window-change (rows: 42, cols: 193) [LOCAL] : SEND[0]: window-change (rows: 43, cols: 194) [18:56:01] -> stty | grep rows ?[ted.carr at testldom01:~] [18:56:50] -> stty speed 9600 baud; swtch = <undef>; tab3 ?[ted.carr at testldom01:~] [18:57:17] -> -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 --- Comment #4 from Darren Tucker <dtucker at dtucker.net> --- I just tried to reproduce on a Solaris 10 VM I have here (with an OpenSSH on Linux client) and it resized OK. Can you try it with a different client? OS X ships with OpenSSH so you should have one available. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 --- Comment #5 from Ted Carr <ted.carr at sungardas.com> --->From the OpenSSH client on the mac I do see the debug messages,however, the output from 'tput lines' and 'tput cols' never changes. ?[ted.carr at testldom01:~] [14:23:36] -> tput lines 24 ?[ted.carr at testldom01:~] [14:23:40] -> tput cols 80 ?[ted.carr at testldom01:~] [14:23:45] -> debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 debug2: client_check_window_change: changed debug2: channel 0: request window-change confirm 0 debug3: send packet: type 98 [14:23:45] -> tput lines 24 ?[ted.carr at testldom01:~] [14:25:53] -> tput cols 80 Running stty on my system does not output anything other than: ?[ted.carr at testldom01:~] [14:26:12] -> stty speed 9600 baud; swtch = <undef>; tab3 Just an FYI. -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 --- Comment #6 from Darren Tucker <dtucker at dtucker.net> --- (In reply to Ted Carr from comment #5)> From the OpenSSH client on the mac I do see the debug messages, > however, the output from 'tput lines' and 'tput cols' never changes.OK so it seems to be on the server side. Could you please attach the two config.h files as previously described and also run the server in debug mode ("/path/to/sshd -ddde -p 2222" then connect on port 2222). If possible attach the logs from the working and non-working versions. -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 Ted Carr <ted.carr at sungardas.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #7 from Ted Carr <ted.carr at sungardas.com> --- Darren, My apologies. The issue was caused by a misconfiguration in my build environment. I have successfully built and tested version 7.6p1. Please disregard. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=2816 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Damien Miller <djm at mindrot.org> --- closing resolved bugs as of 8.6p1 release -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.