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/InfloopSeverity: 2 - Minor
Priority: 4Status: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Fixed Release: 4.1.0Planned 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 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:

Here is my work around... http://www.jukie.net/~bart/blog/screen-relative-path-bug

Anonymous
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

Anonymous
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.

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

 

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

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

    Only logged-in users can vote.

     

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

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 Jun 2008 05:22:27 PM UTCmicahcowanStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.1.0
      Planned ReleaseLater=>4.1.0
    Tue 24 Jun 2008 12:01:14 AM UTCmicahcowanCategoryNone=>Crash/Freeze/Infloop
      StatusNeed Discussion=>Need Info
      Planned ReleaseNone=>Later
      Work RequiredNone=>0 - Hours
    Sun 15 Jun 2008 07:50:35 AM UTCandrzCarbon-Copy-=>Added andrz
    Sun 15 Jun 2008 07:45:25 AM UTCmicahcowanSeverity3 - Normal=>2 - Minor
      Priority5 - Normal=>4
      StatusNone=>Need Discussion

    Back to the top


    Powered by Savane 3.1-cleanup1