Bug 2362065

Summary: [abrt] screen: strncpy(): screen killed by SIGABRT
Product: [Fedora] Fedora Reporter: Gary Duzan <Gary.Duzan>
Component: screenAssignee: Josef Ridky <jridky>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: dick, Gary.Duzan, jridky, lantw44, lnykryn, phracek, rh-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/93739abf9172d66cb49e6a16e0f66462cb847ff
Whiteboard: abrt_hash:69cd1a12a73c7d8c51dc6fe0e7bf5a33f394dfca;VARIANT_ID=;
Fixed In Version: screen-5.0.1-4.el10_1 screen-5.0.1-4.fc42 screen-5.0.1-4.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-12 00:24:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: proc_pid_status
none
File: maps
none
File: mountinfo
none
File: limits
none
File: open_fds
none
File: os_info
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: core_backtrace
none
File: backtrace none

Description Gary Duzan 2025-04-24 14:51:18 UTC
Description of problem:
Within a screen session:

% screen -X title "string"

It has done the same thing each time I have tried it since upgrading to F42. It was working in F41.

Version-Release number of selected component:
screen-5.0.0-2.fc42

Additional info:
reporter:       libreport-2.17.15
uid:            463
cgroup:         0::/user.slice/user-463.slice/session-2.scope
reason:         screen killed by SIGABRT
backtrace_rating: 4
cmdline:        screen -X title git
runlevel:       N 5
type:           CCpp
journald_cursor: s=9bd1e3d5e5df448996bbf5d7c8af8337;i=147d1a;b=30fd9852c5d14b4799e0e5459f1ab41f;m=5a3d39bf;t=633871536aa56;x=f0722a595c0d40dd
package:        screen-5.0.0-2.fc42
crash_function: strncpy
executable:     /usr/bin/screen
rootdir:        /
kernel:         6.14.3-300.fc42.x86_64

Truncated backtrace:
Thread no. 1 (2 frames)
 #8 strncpy at /usr/include/bits/string_fortified.h:100
 #9 SendCmdMessage at /usr/src/debug/screen-5.0.0-2.fc42.x86_64/attacher.c:465

Comment 1 Gary Duzan 2025-04-24 14:51:34 UTC
Created attachment 2087016 [details]
File: proc_pid_status

Comment 2 Gary Duzan 2025-04-24 14:51:35 UTC
Created attachment 2087017 [details]
File: maps

Comment 3 Gary Duzan 2025-04-24 14:51:36 UTC
Created attachment 2087018 [details]
File: mountinfo

Comment 4 Gary Duzan 2025-04-24 14:51:37 UTC
Created attachment 2087019 [details]
File: limits

Comment 5 Gary Duzan 2025-04-24 14:51:40 UTC
Created attachment 2087020 [details]
File: open_fds

Comment 6 Gary Duzan 2025-04-24 14:51:42 UTC
Created attachment 2087021 [details]
File: os_info

Comment 7 Gary Duzan 2025-04-24 14:51:43 UTC
Created attachment 2087022 [details]
File: cpuinfo

Comment 8 Gary Duzan 2025-04-24 14:51:45 UTC
Created attachment 2087023 [details]
File: dso_list

Comment 9 Gary Duzan 2025-04-24 14:51:46 UTC
Created attachment 2087024 [details]
File: environ

Comment 10 Gary Duzan 2025-04-24 14:51:47 UTC
Created attachment 2087025 [details]
File: core_backtrace

Comment 11 Gary Duzan 2025-04-24 14:51:49 UTC
Created attachment 2087026 [details]
File: backtrace

Comment 12 Enrico Scholz 2025-04-28 11:44:47 UTC
upstream report: https://savannah.gnu.org/bugs/index.php?66147

Comment 13 Steinar Knutsen 2025-05-09 11:02:37 UTC
1: start a single instance of screen

2: Inside screen, try to use the -X flag to run screen commands from the shell, e.g. "screen -X register . clean-cut-paste"

screen terminates when trying to run commands from the command line. From inside screen, when running a single instance of screen, running "screen -X register . clean-cut-paste" causes a core dump. The same happens for other commands, e.g.:

> screen -X echo a                    
*** buffer overflow detected ***: terminated
zsh: IOT instruction (core dumped)  screen -X echo a

Also, the problem occurs the same whether running "screen -X" from inside or outside a screen session, I just reported what made me aware of the problem first.


reporter:       libreport-2.17.15
journald_cursor: s=1567937fe20a40729a764f7bdcfc940a;i=3e84f8;b=1a9dd759ce794fe2b9a455d6897a61f0;m=ec84dbb;t=634b185f6e57f;x=97277cf17de8a23c
backtrace_rating: 4
executable:     /usr/bin/screen
runlevel:       N 5
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-foot
kernel:         6.14.5-300.fc42.x86_64
type:           CCpp
crash_function: strncpy
uid:            1000
reason:         screen killed by SIGABRT
package:        screen-5.0.0-2.fc42
rootdir:        /
cmdline:        screen -X register . clean-cut-paste

Comment 14 Ting-Wei Lan 2025-05-14 12:03:10 UTC
Screen 5.0.1 should fix the screen -X buffer overflow bug:
https://git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=2bdebfc9837cfd3cea0645030e626b08bb6bc2d0

Comment 15 Fedora Update System 2025-06-26 07:13:45 UTC
FEDORA-2025-824e33e598 (screen-5.0.1-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-824e33e598

Comment 16 Fedora Update System 2025-06-26 07:13:45 UTC
FEDORA-EPEL-2025-70302aabff (screen-5.0.1-2.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-70302aabff

Comment 17 Fedora Update System 2025-06-26 07:13:46 UTC
FEDORA-2025-7e02027bad (screen-5.0.1-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7e02027bad

Comment 18 Fedora Update System 2025-06-27 02:15:03 UTC
FEDORA-EPEL-2025-70302aabff has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-70302aabff

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2025-06-27 02:34:17 UTC
FEDORA-2025-824e33e598 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-824e33e598`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-824e33e598

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2025-06-27 02:40:29 UTC
FEDORA-2025-7e02027bad has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7e02027bad`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7e02027bad

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2025-07-04 01:13:22 UTC
FEDORA-EPEL-2025-beeb62ad3c has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-beeb62ad3c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2025-07-04 01:33:32 UTC
FEDORA-2025-f055a0d751 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f055a0d751`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f055a0d751

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2025-07-04 01:52:59 UTC
FEDORA-2025-653690f2f7 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-653690f2f7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-653690f2f7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 24 Fedora Update System 2025-07-12 00:24:28 UTC
FEDORA-EPEL-2025-beeb62ad3c (screen-5.0.1-4.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2025-07-19 21:31:45 UTC
FEDORA-2025-f055a0d751 (screen-5.0.1-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2025-07-19 21:46:59 UTC
FEDORA-2025-653690f2f7 (screen-5.0.1-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.