[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #63619] screen crashes on reattach in st terminal

From: Axel Svensson
Subject: [screen-devel] [bug #63619] screen crashes on reattach in st terminal
Date: Wed, 4 Jan 2023 09:08:14 -0500 (EST)


                 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
> cd st
> git checkout e5e959835b195c023d1f685ef4dbbcfc3b5120b2
> make install

# Check that you get the expected termcap
> sha256sum /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

# Compile and run screen from the commit where the problem was introduced
> git clone
> cd screen/src
> git checkout 241553f21ce38eae821ea4c1e12241365563d444
> git clean -fdx && ./ && ./configure && make
> ./screen -RS a
# Press Ctrl+A D to detach
# Reattach
> ./screen -RS a

screen reattaches

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
A value of 1106 or above will produce the expected behavior.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]