bugGNU Screen - Bugs: bug #58132, screen -r hangs terminal

 
 

bug #58132: screen -r hangs terminal

Submitted by:  None
Submitted on:  Tue 07 Apr 2020 03:17:07 AM UTC  
 
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  5 - Normal Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  4.8.0
Work Required:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 30 Apr 2020 10:12:48 PM UTC, comment #2: 

I don't know whether I have the same problem or not.
My terminal doesn't hang with screen -r, but it cannot reattach to any session with the following message: [screen caught signal 11.]

I have a fresh Archlinux installed with the latest updates.

$ screen -v
Screen version 4.08.00 (GNU) 05-Feb-20

$ screen -ls
There is a screen on:
        54052.pts-0.sidshome    (Detached)
1 Socket in /home/sids/.screen.

$ screen -r

[screen caught signal 11.]

$ screen -ls
There is a screen on:
        54052.pts-0.sidshome    (Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /home/sids/.screen.

I tried to install git-version 4.8.0 from branch screen-v4 at 30c9a2a6c190647e35d1ce7b4758de9081f06d10, same behavior.

Problem disappears with version 4.7.0

The package is built under Arch with the following commands:

./autogen.sh
./configure \
        --prefix=/usr \
        --mandir=/usr/share/man \
        --infodir=/usr/share/info \
        --enable-pam \
        --enable-utmp \
        --enable-telnet \
        --enable-socket-dir \
        --with-system_screenrc="/etc/screenrc" \
        --with-pty-mode="0622" \
        --with-pty-group="5" \
        --with-pty-rofs="yes"

make

Aleksandr Kolychev <sids>
Mon 27 Apr 2020 03:44:52 PM UTC, comment #1: 

I tested screen 4.8.0 (checked from git) right now on openSUSE. It works.
If there is just one screen detached session, 'screen -r' will use this one, and if you have more then one:

> screen -v
Screen version 4.08.00 (GNU) 05-Feb-20

> screen -ls
There are screens on:
        28297.pts-0.ThinkPad    (Detached)
        27857.pts-0.ThinkPad    (Detached)
2 Sockets in /tmp/screens/S-alex.

> screen -r
There are several suitable screens on:
        28297.pts-0.ThinkPad    (Detached)
        27857.pts-0.ThinkPad    (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

Can you try git-version 4.8.0 (branch 'screen-4') please?
Are there any patches used with screen packages on Arch GNU/Linux?

Alexander Naumov <anaumov>
Project Administrator
Tue 07 Apr 2020 03:17:07 AM UTC, original submission:  

On screen version 4.8.0, attempting to reattach to a detached session with screen -r hangs. The session is not displayed, and the only way to get out is to kill the terminal. Processes under the session continue running, but there is no way to reattach to the session itself.

Encountered on the current version of Arch GNU/Linux both with the distribution provided package of screen 4.8.0 and the source 4.8.0. Problem is not present source build of 4.7.0.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #50173:  screen.dump added by None (996B - application/octet-stream - I get the same behaviour as comment #2. I tried getting a bt with gdb but somehow having to invoke screen a second time messes this up. I attach the output from coredumpctl, hoping that it is useful)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sids (Posted a comment)
  • -email is unavailable- added by anaumov (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-31 None Attached File- => Added screen.dump, #50173
    2020-04-27 anaumov StatusNone => Need Info

    Back to the top


    Powered by Savane 3.6