URL: <https://savannah.gnu.org/bugs/?63619>
Summary: screen crashes on reattach in st terminal Project: GNU Screen Submitter: axelsvensson Submitted: Wed 04 Jan 2023 02:08:13 PM UTC Category: Crash/Freeze/Infloop Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: 4.8.0 Discussion Lock: Any Fixed Release: None Planned Release: None Work Required: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Wed 04 Jan 2023 02:08:13 PM UTC By: Axel Svensson <axelsvensson> To reproduce: # Install st terminal > git clone https://git.suckless.org/st > cd st > git checkout e5e959835b195c023d1f685ef4dbbcfc3b5120b2 > make install # Check that you get the expected termcap > sha256sum /etc/terminfo/s/st-256color f3c62ac3c07d4e90627be14d8af0c729d2c7592ef2a1da2e3baded1814a924e6 /etc/terminfo/s/st-256color # Start st and do the rest from inside this terminal. > st # Check that the TERM variable is set correctly > echo $TERM st-256color # Compile and run screen from the commit where the problem was introduced > git clone https://git.savannah.gnu.org/git/screen.git > cd screen/src > git checkout 241553f21ce38eae821ea4c1e12241365563d444 > git clean -fdx && ./autogen.sh && ./configure && make > ./screen -RS a # Press Ctrl+A D to detach # Reattach > ./screen -RS a Expected: screen reattaches Actual: screen crashes with message "[screen caught signal 11. (core dumped)]". This behavior depends to some degree on the constant TERMCAP_BUFSIZE in src/os.h (with a value of 1023 in the referenced snapshot). If this constant is set to a value in the range 914-1025, screen will crash on reattach as described above under "Actual". If it is set to a value in the range 1026-1105, screen will instead hang on detach. A value of 1106 or above will produce the expected behavior. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63619> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/