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:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

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.


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.



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


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.


No changes have been made to this item

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code