Package: screen
Version: 4.3.1-2
Severity: normal

Apparently screen -r does some prefix-based matching. As a result, sometimes
even screen -r exact-name-of-session attaches to another session that is
more recent and whose name starts with the supplied string.

This might be caused by 80EXP_session_creation_time.patch.

To reproduce:

$ screen -d -m -S aaa sh -c 'echo aaa; sleep 3600'
$ screen -d -m -S aaabbb sh -c 'echo aaabbb; sleep 3600'
$ screen -ls
There are screens on:
        10534.aaabbb    (24/09/15 14:29:53)     (Detached)
        10496.aaa       (24/09/15 14:29:49)     (Detached)
$ screen -r aaa
[resumes aaabbb instead]

After some attaching/detaching, a “WriteMessage: Bad file descriptor”
error also happens intermittently after -r attempts. Repeating the -r
command reattaches successfully.


-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages screen depends on:
ii  libc6      2.19-18
ii  libpam0g   1.1.8-3.1
ii  libtinfo5  5.9+20140913-1+b1

screen recommends no packages.

Versions of packages screen suggests:
pn  iselect | screenie | byobu  <none>
ii  ncurses-term                5.9+20140913-1

-- no debconf information

Reply via email to