Your message dated Wed, 06 May 2026 23:19:33 +0200
with message-id <[email protected]>
and subject line Fixed in 5.0.1-1
has caused the Debian Bug report #799929,
regarding screen -r attaches to wrong session
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
799929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799929
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 5.0.1-1

This issue is fixed in screen v5.

Upstream commit 5e4c7c5:
  "Use fuzzy-matching for session names only if required"
changes session selection so an exact session-name match is preferred over
prefix/fuzzy matches.

--- End Message ---

Reply via email to