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

 
 

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

Submitted by:  None
Submitted on:  Wed 16 Sep 2009 03:41:41 PM UTC  
 
Category: Crash/Freeze/InfloopSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1