summaryrefslogtreecommitdiff
path: root/open_issues/screen_dead_session.mdwn
blob: fe51523bc5dcc17e95785ad44e09007640f63206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[[!meta copyright="Copyright © 2010, 2011 Free Software Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

[[!tag open_issue_porting]]

Comparing to GNU/Linux, on GNU/Hurd it happens much more often and easily for
*screen* sessions to become *dead*.  This is annoying, as it defeats one of
*screen*'s main purposes.

[[!toc]]


# One reproducible scenario goes like this

  * `ssh [somewhere]`,

  * start a *screen* session, and some long-running process *P* in there,

  * at some point the link is forcefully terminated (also known as disconnect
    after 24 hours with consumer DSL),

  * *P* will continue to execute,

  * at some point, *P* will terminate / hang (after having received some kind
    of signal?), and the *screen* session will be reported as *dead*.


# Another one, not as often reproduced

  * `ssh [somewhere]`,

  * start a *screen* session, and some long-running process *P* in there,

  * at some point the link is forcefully terminated (also known as disconnect
    after 24 hours with consumer DSL),

  * `ssh [somewhere]`,

  * `screen -x`, and notice that *P* will *immediatelly* terminate / hang
    (after having received some kind of signal?), and the *screen* session will
    *immediatelly* be reported as *dead*.  (Perhaps the other way round: upon
    re-attaching, the *screen* session goes bonkers and takes *P* with it?)


# IRC, freenode, #hurd, 2011-10-19

    <antrik> tschwinge: hm... haven't seen screen dying in a long time
    <tschwinge> antrik: It's easy, and goes like this: have a session on one
      system, log in from another, do screen -x and wait some time.
    <antrik> I do this regularily. haven't had a crash in ages.
    <antrik> (BTW, I'm not sure I ever had a crash on srceen -x... at that
      time, I wasn't using -x. I often had crashes with screen -r. my
      impression back then was that it works better when doing -rd -- in fact,
      I always do that now, so I can't say whether crashes still happen with
      only -r...)

2011-10-26:

    <antrik> so I was saying the other day that I haven't had a screen crash in
      a long time... well, here it was :-(
    <antrik> this time it didn't crash on reconnect though, but already
      before. probably when I killed the hanging ssh connection