Your message dated Fri, 19 Jun 2026 07:39:50 +0000
with message-id <[email protected]>
and subject line Bug#1117241: fixed in screen 5.0.1-3
has caused the Debian Bug report #1117241,
regarding screen: crash of the master process due to memory corruption after 
resizing the terminal window
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.)


-- 
1117241: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1117241
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: screen
Version: 4.9.1-3
Severity: important

After resizing the terminal window where GNU Screen is running
(with the Mutt MUA), I got:

Error: Cannot find master process to attach to!
Press [Enter] to quit.

Indeed, the master process is no longer there, and there is
a core dump mentioning "corrupted size vs. prev_size" with
realloc:

Core was generated by `SCREEN -c /home/vinc17/.screenrc-mutt -T 
screen-256color-bce-s -dRR mutt -t mut'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, 
    signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44

warning: 44     ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, 
    signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007f15de7499ff in __pthread_kill_internal (threadid=<optimized out>, 
    signo=6) at ./nptl/pthread_kill.c:89
#2  0x00007f15de6f4cc2 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/posix/raise.c:26
#3  0x00007f15de6dd4ac in __GI_abort () at ./stdlib/abort.c:73
#4  0x00007f15de6de291 in __libc_message_impl (
    fmt=fmt@entry=0x7f15de86032d "%s\n") at ../sysdeps/posix/libc_fatal.c:134
#5  0x00007f15de753465 in malloc_printerr (
    str=str@entry=0x7f15de85e03b "corrupted size vs. prev_size")
    at ./malloc/malloc.c:5829
#6  0x00007f15de753e7e in unlink_chunk (p=p@entry=0x555d30659b90, 
    av=0x7f15de89cac0 <main_arena>) at ./malloc/malloc.c:1613
#7  0x00007f15de757668 in _int_realloc (
    av=av@entry=0x7f15de89cac0 <main_arena>, oldp=oldp@entry=0x555d30659b20, 
    oldsize=oldsize@entry=112, nb=nb@entry=128) at ./malloc/malloc.c:5026
#8  0x00007f15de7587e6 in __GI___libc_realloc (
    oldmem=oldmem@entry=0x555d30659b30, bytes=bytes@entry=109)
    at ./malloc/malloc.c:3586
#9  0x0000555d0dd2fa24 in xrealloc (mem=<optimized out>, len=1001)
    at ../resize.c:624
#10 CheckMaxSize (wi=wi@entry=108) at ../resize.c:543
#11 0x0000555d0dd307ad in ChangeScreenSize (wi=108, he=60, 
    change_fore=change_fore@entry=1) at ../resize.c:182
#12 0x0000555d0dd30977 in CheckScreenSize (change_flag=change_flag@entry=1)
    at ../resize.c:143
#13 0x0000555d0dd35828 in ReceiveMsg () at ../socket.c:1223
#14 0x0000555d0dd6a0e8 in sched () at ../sched.c:222
#15 0x0000555d0dd1cca2 in main (ac=2, av=<optimized out>) at ../screen.c:1504

Note: screen 4.x seems no longer maintained upstream.
Perhaps it is time to switch to 5.x.

I cannot reproduce the crash under similar conditions, after
displaying the same e-mail message.

In the journalctl output, there is something strange, but this might
be unrelated:

Oct 03 14:09:32 qaa sshd-session[372402]: Accepted publickey for vinc17 from 
140.77.13.17 port 37498 ssh2: RSA SHA256:xxx
Oct 03 14:09:32 qaa sshd-session[372402]: pam_unix(sshd:session): session 
opened for user vinc17(uid=1000) by vinc17(uid=0)
Oct 03 14:09:32 qaa systemd-logind[1230]: New session '678' of user 'vinc17' 
with class 'user' and type 'tty'.
Oct 03 14:09:32 qaa systemd[1]: Started session-678.scope - Session 678 of User 
vinc17.
[...]
Oct 03 16:39:03 qaa sshd-session[372402]: syslogin_perform_logout: logout() 
returned an error
Oct 03 16:39:03 qaa sshd-session[372411]: Received disconnect from 140.77.13.17 
port 37498:11: disconnected by user
Oct 03 16:39:03 qaa sshd-session[372411]: Disconnected from user vinc17 
140.77.13.17 port 37498
Oct 03 16:39:03 qaa sshd-session[372402]: pam_unix(sshd:session): session 
closed for user vinc17
Oct 03 16:39:03 qaa systemd-logind[1230]: Session 678 logged out. Waiting for 
processes to exit.
[...]
Oct 05 12:25:58 qaa systemd[1]: session-678.scope: Deactivated successfully.
Oct 05 12:25:58 qaa systemd[1]: session-678.scope: Consumed 2min 44.223s CPU 
time, 1.6G memory peak.
Oct 05 12:25:58 qaa systemd-logind[1230]: Removed session 678.

and "Oct 05 12:25:58" corresponds to the timestamp of the core dump.

I think that this is because I had started GNU Screen remotely (via ssh).

-- Package-specific info:
File Existence and Permissions
------------------------------

drwxr-xr-x 43 root root   1180 2025-10-05 03:43:33 /run
lrwxrwxrwx  1 root root      4 2023-10-07 13:42:09 /var/run -> /run
-rwxr-xr-x  1 root root 494584 2025-05-19 00:42:42 /usr/bin/screen
-rw-r--r--  1 root root    119 2023-10-07 18:37:37 
/etc/tmpfiles.d/screen-cleanup.conf
lrwxrwxrwx  1 root root      9 2023-10-07 18:37:37 
/lib/systemd/system/screen-cleanup.service -> /dev/null
-rwxr-xr-x  1 root root   1222 2022-11-04 03:35:12 /etc/init.d/screen-cleanup
lrwxrwxrwx  1 root root     24 2023-10-07 18:37:37 /etc/rcS.d/S01screen-cleanup 
-> ../init.d/screen-cleanup

File contents
-------------

### /etc/tmpfiles.d/screen-cleanup.conf
______________________________________________________________________
# This file is generated by /var/lib/dpkg/info/screen.postinst upon package 
configuration
d /run/screen 1777 root utmp
______________________________________________________________________

-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), 
(500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.16.9+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages screen depends on:
ii  debianutils  5.23.2
ii  libc6        2.41-12
ii  libcrypt1    1:4.4.38-1
ii  libpam0g     1.7.0-5
ii  libtinfo6    6.5+20250216-2

screen recommends no packages.

Versions of packages screen suggests:
pn  byobu | screenie | iselect  <none>
ii  ncurses-term                6.5+20250216-2

-- no debconf information

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

--- End Message ---
--- Begin Message ---
Source: screen
Source-Version: 5.0.1-3
Done: Peter Dey <[email protected]>

We believe that the bug you reported is fixed in the latest version of
screen, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Dey <[email protected]> (supplier of updated screen package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 17 Jun 2026 14:09:15 +0200
Source: screen
Architecture: source
Version: 5.0.1-3
Distribution: unstable
Urgency: medium
Maintainer: Axel Beckert <[email protected]>
Changed-By: Peter Dey <[email protected]>
Closes: 484655 545182 600649 611228 694178 1061448 1100699 1117241 1134721 
1136895
Changes:
 screen (5.0.1-3) unstable; urgency=medium
 .
   * Set Debian default terminal type to screen5 in /etc/screenrc
     (Closes: #1134721)
   * Move default bufferfile in screenrc to $HOME/.screen-exchange
     (Closes: #1100699)
   * Added patch 98: Fix uninitialised buffer for caption/hardstatus expansions
     (Closes: #1136895)
   * Added patch 99: Fix off-by-one in resize CheckMaxSize guard
     (Closes: #1117241)
   * Fix GNU/Hurd builds (missing MAXPATHLEN define)
   * Drop 13split_info_files.patch (obsolete)
   * Stop deleting named pipes in /run/screen at startup (Closes: #545182)
   * Removing orphaned package screenie from Suggests
   * Modernise session creation timestamp handling in patches 81 & 82
     (Closes: #484655, #1061448)
   * Fix resize prompt wording for vertical splits (Closes: #600649)
   * Added patch 101: Remove duplicated permission sentence from manpage
     (Closes: #611228)
   * Added patch 102: Fix documentation for $TERM default (Closes: #694178)
Checksums-Sha1:
 2d11676b29fbef35337e58a5315afecb2859d3a2 2316 screen_5.0.1-3.dsc
 63eb25a7e99d6e1a2c00f2790817d82b7efcdf31 58936 screen_5.0.1-3.debian.tar.xz
 5e7a82072f9edab531d427a57ab98543c896eb2a 5956 screen_5.0.1-3_source.buildinfo
Checksums-Sha256:
 4e1b1e43685e5065ed3fc19cad3ad0192299bad61fe516a0edf2040b48f8c68d 2316 
screen_5.0.1-3.dsc
 53a5e74a791c69dcac796c2ccbe6702dae35ee24fd42ef5e8fce8cfc25fe01a8 58936 
screen_5.0.1-3.debian.tar.xz
 cdffadab4a98068d5fc727c5b4ce2b341ad8a97ef0497776ab58b1335ae5a590 5956 
screen_5.0.1-3_source.buildinfo
Files:
 4e07d5b0ec0b4c968cedbe22ab74f685 2316 misc optional screen_5.0.1-3.dsc
 ed3cf18d3b0055eb74f34b4c5b883ada 58936 misc optional 
screen_5.0.1-3.debian.tar.xz
 fd6343aee245d55463d0646cadd9ba74 5956 misc optional 
screen_5.0.1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmo07nIACgkQvthEn87o
2og4Hw//cusHGECxxzdo3W8FOeEzsLIBc35w8sEGIC2vaAzUi8moJOqPlASaksS3
dWcy7WoLG/xcwbRXjrA9vpKQriRy+QQhf0W9FZ/+0KydGRVZGMRQVWOTpfpi6Lwh
9W+ODwhASHCjSGbeztIoMg4fHyYNxGJnl8XMVEZ+74rTuBPCMBfZ7QPjN+xosvhg
So7/NDoFBtJkiscRHSWh7ZaNmPEk2gvy0ELE6yCXiY2+iNrlrcGUg/2kPg2eEna0
ius53rZb5H3H2OR6PigMdPbX1qe5PrfXuhKhXqRWQ9Ni0tfmR1cTI50itz1W7aDL
2hUbSCkvSw0KEYTOgUOMeku3lQ3wJ58KjkMsR825s4bwMRhTslpGXWjXkq17H9C5
d8SNoMUi7E8xk+mBKKrXqpu5p9aOyspyycBxDH1JGtPjvLITlJ6awyX2USjQu7Zk
bkrPpqxSa05J8TtrKoelMi2QGC+Jbv9ZQ7VL0QTJ5DJX+EgtTMwbszONHDkgQkB6
MubWJBXzWFAnx7QU96p5jYCchZlynFVrAKTmVXlA4nC21IJXwrcyZC8GuJEUQhqI
dfraK0hoJK/4TKwaeHBnAFAz9D2l/N480vxEf56lwOeiuYeLF9Nk+KPURMG0ctbn
N2/6mLNVvP1k2nN6NAxKN06JKq+JlRnEs68l3cbYIqFuh7Gr+AA=
=+gJR
-----END PGP SIGNATURE-----

Attachment: pgpGaFHrJpoqn.pgp
Description: PGP signature


--- End Message ---

Reply via email to