Bug 2264404 - [abrt] systemd: __strncpy_sse2_unaligned(): systemd killed by SIGSEGV
Summary: [abrt] systemd: __strncpy_sse2_unaligned(): systemd killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:837e6917088cba0dbf9e11d2be0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-15 10:51 UTC by Jeremy Visser
Modified: 2024-03-08 01:19 UTC (History)
10 users (show)

Fixed In Version: systemd-254.10-1.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-08 01:19:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.43 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: maps (3.96 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: limits (1.29 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: environ (62 bytes, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: open_fds (377 bytes, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: mountinfo (2.93 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: os_info (734 bytes, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: cpuinfo (2.80 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: core_backtrace (5.51 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: exploitable (81 bytes, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: dso_list (819 bytes, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: var_log_messages (1.65 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details
File: backtrace (77.08 KB, text/plain)
2024-02-15 10:51 UTC, Jeremy Visser
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 31384 0 None open core/exec: do not crash with UtmpMode=user without User= setting 2024-02-19 08:18:11 UTC

Description Jeremy Visser 2024-02-15 10:51:11 UTC
Description of problem:
Issue can be reproduced with the following foo@.service unit file:

    [Unit]
    
    [Service]
    Type=oneshot
    
    UtmpIdentifier=%I
    UtmpMode=user
    
    ExecStart=/usr/bin/sleep 30

My motivation was writing a unit for the Cage compositor based on the docs:
  https://github.com/cage-kiosk/cage/wiki/Starting-Cage-on-boot-with-systemd

I realised (after causing the crash) that my error was that I'd omitted
the User= config option.  Regardless, that shouldn't cause a crash.


Version-Release number of selected component:
systemd-254.9-1.fc39

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         systemd killed by SIGSEGV
journald_cursor: s=6c97792b866141b8a1e857811ba3e54b;i=e31e;b=583195a7f1b64415b2590e3238f77a22;m=f90c632a;t=61168fb4c614e;x=47952259703ac99f
executable:     /usr/lib/systemd/systemd
cmdline:        $'(cage)'
cgroup:         0::/system.slice/system-cage\x2dvm.slice/cage-vm
rootdir:        /
uid:            0
kernel:         6.7.4-200.fc39.x86_64
package:        systemd-254.9-1.fc39
runlevel:       N 5
backtrace_rating: 3
crash_function: __strncpy_sse2_unaligned

Truncated backtrace:
Thread no. 1 (17 frames)
 #0 __strncpy_sse2_unaligned
 #1 strncpy at /usr/include/bits/string_fortified.h:95
 #2 utmp_put_init_process at ../src/shared/utmp-wtmp.c:209
 #3 exec_child at ../src/core/execute.c:5236
 #4 exec_spawn at ../src/core/execute.c:6075
 #5 service_spawn_internal at ../src/core/service.c:1816
 #6 service_enter_start at ../src/core/service.c:2393
 #7 service_enter_condition at ../src/core/service.c:2497
 #8 service_start at ../src/core/service.c:2754
 #9 job_perform_on_unit at ../src/core/job.c:854
 #10 job_run_and_invalidate at ../src/core/job.c:927
 #11 manager_dispatch_run_queue at ../src/core/manager.c:2386
 #13 source_dispatch at ../src/libsystemd/sd-event/sd-event.c:4227
 #14 sd_event_dispatch at ../src/libsystemd/sd-event/sd-event.c:4808
 #15 sd_event_run at ../src/libsystemd/sd-event/sd-event.c:4869
 #16 manager_loop at ../src/core/manager.c:3224
 #17 invoke_main_loop at ../src/core/main.c:2012

Comment 1 Jeremy Visser 2024-02-15 10:51:15 UTC
Created attachment 2016875 [details]
File: proc_pid_status

Comment 2 Jeremy Visser 2024-02-15 10:51:16 UTC
Created attachment 2016876 [details]
File: maps

Comment 3 Jeremy Visser 2024-02-15 10:51:18 UTC
Created attachment 2016878 [details]
File: limits

Comment 4 Jeremy Visser 2024-02-15 10:51:23 UTC
Created attachment 2016880 [details]
File: environ

Comment 5 Jeremy Visser 2024-02-15 10:51:24 UTC
Created attachment 2016881 [details]
File: open_fds

Comment 6 Jeremy Visser 2024-02-15 10:51:26 UTC
Created attachment 2016882 [details]
File: mountinfo

Comment 7 Jeremy Visser 2024-02-15 10:51:28 UTC
Created attachment 2016883 [details]
File: os_info

Comment 8 Jeremy Visser 2024-02-15 10:51:29 UTC
Created attachment 2016884 [details]
File: cpuinfo

Comment 9 Jeremy Visser 2024-02-15 10:51:31 UTC
Created attachment 2016885 [details]
File: core_backtrace

Comment 10 Jeremy Visser 2024-02-15 10:51:33 UTC
Created attachment 2016886 [details]
File: exploitable

Comment 11 Jeremy Visser 2024-02-15 10:51:34 UTC
Created attachment 2016887 [details]
File: dso_list

Comment 12 Jeremy Visser 2024-02-15 10:51:36 UTC
Created attachment 2016888 [details]
File: var_log_messages

Comment 13 Jeremy Visser 2024-02-15 10:51:38 UTC
Created attachment 2016889 [details]
File: backtrace

Comment 14 Fedora Update System 2024-03-06 13:35:38 UTC
FEDORA-2024-b459613721 (systemd-254.10-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b459613721

Comment 15 Fedora Update System 2024-03-07 02:27:39 UTC
FEDORA-2024-b459613721 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b459613721`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b459613721

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

Comment 16 Fedora Update System 2024-03-08 01:19:10 UTC
FEDORA-2024-b459613721 (systemd-254.10-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.