bugGNU Screen - Bugs: bug #65913, When reattaching to a screen...

 
 

bug #65913: When reattaching to a screen launched with -dm, screen will freeze if layout is changed

Submitter:  None
Submitted:  Mon 24 Jun 2024 04:45:14 AM UTC
   
 
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.9.0
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Jun 2024 02:05:25 PM UTC, comment #2: 

OP here:

After a little bit more testing, it looks like reattaching to a Screen started with `-dm` completely disregards any layout.

I created a new .screenrc with exactly one layout and while Screen doesn't hang, it looks like the layout wasn't applied either.

Using `source ~/.screenrc` after reattaching does not apply a layout, but it does re-add your defined Windows.

I take it Screen completely avoids even reading in layouts when starting detached?

Anonymous
Mon 24 Jun 2024 06:13:00 AM UTC, comment #1: 

Thanks for reporting.
Confirmed in master.

I have to take a closer look...

Alexander Naumov <anaumov>
Group administrator
Mon 24 Jun 2024 04:45:14 AM UTC, original submission:  

To reproduce:

Have a .screenrc with more than one layout defined. My rc is attached.

Launch a screen with -dm

Reattach using screen -r [-S if you named the prior screen]

Change layout using :layout [prev|next]

Screen will display a blank version of the windowlist and stop accepting input.

Sending pkill -9 screen will end all screen sessions including the hung one. A script is attached that will run this with a delay. Execute script in the background (with &) and it'll save you from a hung terminal, but will kill all screen sessions.
--------------------------------------------------------------
I'm an advanced beginner to Linux and screen has kicked my teeth in with learning it, so I hope I'm just doing something simple wrong. However, this report https://unix.stackexchange.com/a/344939/618218 indicates that it's been a bug for awhile.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56198:  safety-script.sh added by None (109B - text/x-sh - This script will kill ALL screen sessions currently active but will save you from the hung terminal.)
file #56197:  .screenrc added by None (3KiB - application/octet-stream)

 

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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-24 anaumov StatusNone Confirmed
    2024-06-24 None Attached File- Added safety-script.sh, #56198
    2024-06-24 None Attached File- Added .screenrc, #56197

    Back to the top

    Powered by Savane 3.14-573e.
    Corresponding source code