bugGNU Screen - Bugs: bug #18890, screen kills all windows if...


bug #18890: screen kills all windows if started with alternate rcfile and reattaching after :chdir

Submitted by:  None
Submitted on:  Fri 26 Jan 2007 03:19:15 PM UTC  
Votes:  20  
Category:  Crash/Freeze/Infloop Severity:  2 - Minor
Priority:  4 Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Fixed Release:  4.1.0 Planned Release:  4.1.0
Work Required:  0 - Hours

Add a New Comment (Rich Markup)

You are not logged in

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


( Jump to the original submission)

Tue 24 Jun 2008 05:22:27 PM UTC, comment #8: 

I can produce this problem with 4.00.03 (FAU) 23-Oct-06; but not in the current dev sources. Given this, I'll close this as fixed for the upcoming 4.1.0 release. (Please reopen this bug if you find you can reproduce it in the current development sources, available from the git repository here at Savannah.)

Micah Cowan <micahcowan>
Tue 24 Jun 2008 08:03:22 AM UTC, comment #7: 

This also happens with 4.00.03 (FAU) 23-Oct-06.
$ touch foo
$ screen -c foo -S bar
$ rm foo
In another terminal:
$ screen -xR bar
Then the whole session dies with:
Unable to open "foo".

Andri Möll <andrz>
Tue 24 Jun 2008 12:01:14 AM UTC, comment #6: 

I'm having trouble reproducing this, in 4.0.3 or current dev sources (I don't have quick access to 4.0.2). I'm starting screen in /dev with " -c null", and then chdir-ing elsewhere, and then detaching/reattaching.

Perhaps there's a particular setting in screenrc that causes screen to want to re-read it upon start? (Or, possibly, it was fixed in 4.0.3.)

Micah Cowan <micahcowan>
Sun 15 Jun 2008 07:50:35 AM UTC, comment #5: 

I think killing the session when it's unable to open the config file is a far more important issue than just relative paths.

Andri Möll <andrz>
Sun 15 Jun 2008 07:45:25 AM UTC, comment #4: 

Perhaps screen should warn about relative paths (or attempt to convert to absolute paths automatically).

Micah Cowan <micahcowan>
Mon 24 Mar 2008 11:32:21 PM UTC, comment #3: 

This is not exactly related to chdir, but rather to the fact that screen dies when it's unable to open the alternate config file. Which is a bit dangerous, I feel, if you ever happen to unlink that file before reattaching to your session.

Andri Möll <andrz>
Mon 07 Jan 2008 09:19:10 PM UTC, comment #2: 
Tue 10 Jul 2007 11:27:51 AM UTC, comment #1: 

I've just hit this obscure bug too.

The workaround is thus to only use absolute paths as args to -c

screen -c /home/foo/screenrc

Fri 26 Jan 2007 03:19:15 PM UTC, original submission:  

Screen version 4.00.02 (FAU) 5-Dec-03

I've been experiencing this for some time now.
steps to reproduce:

% screen -c relative/path/to/script
(inside screen) :chdir /some/other/path
(inside screen) :detach
(screen detaches)
% screen -r
(screen says) Unable to open "relative/path/to/script"
(screen exits, killing all windows)
% screen -ls
No Sockets found in /var/run/screen/S-buccia.



(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


Carbon-Copy List
  • -email is unavailable- added by andrz (Voted in favor of this item)
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by andrz (Posted a comment)

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

    Only logged-in users can vote.




    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-06-24 micahcowan StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.1.0
        Planned ReleaseLater => 4.1.0
    2008-06-24 micahcowan CategoryNone => Crash/Freeze/Infloop
        StatusNeed Discussion => Need Info
        Planned ReleaseNone => Later
        Work RequiredNone => 0 - Hours
    2008-06-15 andrz Carbon-Copy- => Added andrz
    2008-06-15 micahcowan Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 4
        StatusNone => Need Discussion

    Back to the top

    Powered by Savane 3.6