bugGNU Screen - Bugs: bug #27462, Reconnect stalls when original...

 
 

bug #27462: Reconnect stalls when original session is lost.

Submitter:  None
Submitted:  Wed 16 Sep 2009 03:41:41 PM UTC
   
 
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  4.0.3
Fixed Release:  5.0.0 Planned Release:  5.0.0
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Jul 2024 08:05:27 PM UTC, comment #1: 


Kubuntu 22.04 (x86_64)   <==    OpenBSD 7.5 (x86_64)
screen 4.99 (master)            OpenSSH_9.7, LibreSSL 3.9.0


  • Start screen locally (on Kubuntu)
  • Attach from a remote connection (from OpenBSD)
  • Break connection abruptly without detaching screen ('pkill sshd' on Kubuntu)
  • Get message 'Connection to IP_ADDRESS closed'
  • Create new connection (systemctl start sshd) and reconnect


Reconnect without any problem.

I'm able to reconnect and reattach. The screen session is ok and works well. I can attach from local machine and remote.

Alexander Naumov <anaumov>
Group administrator
Wed 16 Sep 2009 03:41:41 PM UTC, original submission:  



Steps to reproduce:

- Start screen locally
- Attach from a remote connection
- Break connection abruptly without detaching screen
- Create new connection and try to reconnect (-r, -dr, -x, etc)


Possible cause:

It looks to me as if screen can not attach or detach if the parent of the current process is unreachable.  It does make sense that it is trying to talk to the other process and it's dead so there is no response so it waits forever.


Workaround:

In this example pts/12 is from the dropped connection.

x@trailer:~$ screen -dr
(Hangs until forever)

x@trailer:~$ ps -ef |grep screen
x          524 27582  0 08:23 pts/4    00:00:00 grep screen
/usr/bin/SCREEN.real -c /home/x/.screen-profiles/profile
x        28876 28701  0 07:42 pts/12   00:00:00 /usr/bin/screen.real -c /home/x/.screen-profiles/profile -dr

x@trailer:~$ ps -ef |grep 28701
x          953 27582  0 08:24 pts/4    00:00:00 grep 28701
x        28701 28696  0 07:42 pts/12   00:00:00 -bash
x        28876 28701  0 07:42 pts/12   00:00:00 /usr/bin/screen.real -c /home/x/.screen-profiles/profile -dr

x@trailer:~$ screen -ls
There is a screen on:
        7942.pts-0.trailer      (08/12/2009 02:34:38 PM)        (Detached)
1 Socket in /var/run/screen/S-x.

x@trailer:~$ kill 28876

x@trailer:~$ screen -dr
(Now it works!)


I did a few bug searches but didn't see this reported anywhere.  Apologies if it is a dupe.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-02 anaumov StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 5.0.0
        Planned ReleaseNone 5.0.0

    Back to the top

    Powered by Savane 3.13-3e34.
    Corresponding source code