[Bug 280868] sysutils/screen - stack overflow detected; terminated

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Aug 2024 20:00:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280868

            Bug ID: 280868
           Summary: sysutils/screen - stack overflow detected; terminated
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: bugs.freebsd.asc@schwarzes.net
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

After upgrading sysutils/screen package from 4.9.1_2 to 4.9.1_3, screen will
crash when starting a new session.

root@testelot:~ # pkg info screen
screen-4.9.1_3
Name           : screen
Version        : 4.9.1_3
Installed on   : Fri Aug 16 21:05:21 2024 CEST
Origin         : sysutils/screen
Architecture   : FreeBSD:13:aarch64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : GPLv3
Maintainer     : cy@FreeBSD.org
WWW            : https://www.gnu.org/software/screen/
Comment        : Multi-screen window manager
[...]

root@testelot:~ # uname -a
FreeBSD testelot.schwarzes.net 13.3-RELEASE-p5 FreeBSD 13.3-RELEASE-p5
f5a50714b GENERIC arm64

root@testelot:~ # freebsd-version -kru
13.3-RELEASE-p5
13.3-RELEASE-p5
13.3-RELEASE-p5

Will happen also with 13.3-RELEASE-p4, previous screen version 4.9.1_2 (or just
the screen-4.9.1 binary) 
work without any problems.

root@testelot:~ # screen -S test
[hangs]

ps axl
[...]
  0 1303 1140 3  20  0 13968  3640 pause    S+    0    0:00.03 screen -S test
(screen-4.9.1)
  0 1304 1303 0  22  0     0     0 -        Z+    0    0:00.03 <defunct>

root@testelot:~ # tail -2 /var/log/messages
Aug 16 21:54:50 testelot SCREEN[1304]: stack overflow detected; terminated
Aug 16 21:54:50 testelot kernel: pid 1304 (screen-4.9.1), jid 0, uid 0: exited
on signal 6 (core dumped)

root@testelot:~ # ll screen-4.9.1.core
-rw-------  1 root  wheel  11280384 Aug 16 21:54 screen-4.9.1.core

-- 
You are receiving this mail because:
You are the assignee for the bug.