Skip to content

[Bug Report] Segmentation fault #234

@enriquezaf

Description

@enriquezaf

OS: Fedora 42 Cosmic Spin
Packages:

cosmic-app-library-0:1.0.0~alpha.7-1.fc42.x86_64
glibc-0:2.41-5.fc42.x86_64

Output of dmesg -xT:

kern  :warn  : [lun may  5 18:11:41 2025] show_signal_msg: 32 callbacks suppressed
kern  :info  : [lun may  5 18:11:41 2025] tokio-runtime-w[3552]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f6234c3b6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 4 (core 4, socket 0)
kern  :info  : [lun may  5 18:11:41 2025] Code: b1 55 f8 5d c3 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 <8b> 87 d0 02 00 00 85 c0 0f 88 3e 01 00 00 48 89 fb 48 39 bf 20 06
kern  :info  : [lun may  5 18:13:49 2025] tokio-runtime-w[3799]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f62348396d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 1 (core 1, socket 0)
kern  :info  : [lun may  5 18:13:49 2025] Code: b1 55 f8 5d c3 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 <8b> 87 d0 02 00 00 85 c0 0f 88 3e 01 00 00 48 89 fb 48 39 bf 20 06
kern  :info  : [lun may  5 18:15:08 2025] tokio-runtime-w[3929]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f6234c3b6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 3 (core 3, socket 0)
kern  :info  : [lun may  5 18:15:08 2025] Code: b1 55 f8 5d c3 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 <8b> 87 d0 02 00 00 85 c0 0f 88 3e 01 00 00 48 89 fb 48 39 bf 20 06
kern  :info  : [lun may  5 21:18:02 2025] tokio-runtime-w[6672]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f623523e6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 5 (core 5, socket 0)
kern  :info  : [lun may  5 21:18:02 2025] Code: b1 55 f8 5d c3 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 48 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 <8b> 87 d0 02 00 00 85 c0 0f 88 3e 01 00 00 48 89 fb 48 39 bf 20 06

Output of journalctl -b | grep -e tokio

may 05 18:11:40 main kernel: tokio-runtime-w[3552]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f6234c3b6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 4 (core 4, socket 0)
may 05 18:11:40 main audit[3552]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3552 comm="tokio-runtime-w" exe="/usr/bin/cosmic-app-library" sig=11 res=1
may 05 18:11:40 main systemd-coredump[3554]: Process 3552 (tokio-runtime-w) of user 1000 terminated abnormally with signal 11/SEGV, processing...
may 05 18:11:40 main systemd-coredump[3555]: Process 3552 (tokio-runtime-w) of user 1000 dumped core.
                                             #10 0x000055da313ff927 _ZN5tokio7runtime4task3raw4poll17h8dbb0533908352fdE (/usr/bin/cosmic-app-library + 0x537927)
                                             #11 0x000055da31adc7cb _ZN5tokio7runtime9scheduler12multi_thread6worker7Context8run_task17haa71bd17e0e3300bE (/usr/bin/cosmic-app-library + 0xc147cb)
                                             #12 0x000055da31adae53 _ZN5tokio7runtime9scheduler12multi_thread6worker3run17heba4c9778e332062E (/usr/bin/cosmic-app-library + 0xc12e53)
                                             #13 0x000055da31ae2763 _ZN5tokio7runtime4task3raw4poll17hdf6bcf46d10d6b65E (/usr/bin/cosmic-app-library + 0xc1a763)
may 05 18:13:49 main audit[3799]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3799 comm="tokio-runtime-w" exe="/usr/bin/cosmic-app-library" sig=11 res=1
may 05 18:13:49 main kernel: tokio-runtime-w[3799]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f62348396d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 1 (core 1, socket 0)
may 05 18:13:49 main systemd-coredump[3801]: Process 3799 (tokio-runtime-w) of user 1000 terminated abnormally with signal 11/SEGV, processing...
may 05 18:13:49 main systemd-coredump[3802]: Process 3799 (tokio-runtime-w) of user 1000 dumped core.
                                             #10 0x000055da313ff927 _ZN5tokio7runtime4task3raw4poll17h8dbb0533908352fdE (/usr/bin/cosmic-app-library + 0x537927)
                                             #11 0x000055da31adc7cb _ZN5tokio7runtime9scheduler12multi_thread6worker7Context8run_task17haa71bd17e0e3300bE (/usr/bin/cosmic-app-library + 0xc147cb)
                                             #12 0x000055da31adae53 _ZN5tokio7runtime9scheduler12multi_thread6worker3run17heba4c9778e332062E (/usr/bin/cosmic-app-library + 0xc12e53)
                                             #13 0x000055da31ae2763 _ZN5tokio7runtime4task3raw4poll17hdf6bcf46d10d6b65E (/usr/bin/cosmic-app-library + 0xc1a763)
may 05 18:15:08 main audit[3929]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3929 comm="tokio-runtime-w" exe="/usr/bin/cosmic-app-library" sig=11 res=1
may 05 18:15:08 main kernel: tokio-runtime-w[3929]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f6234c3b6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 3 (core 3, socket 0)
may 05 18:15:08 main systemd-coredump[3931]: Process 3929 (tokio-runtime-w) of user 1000 terminated abnormally with signal 11/SEGV, processing...
may 05 18:15:08 main systemd-coredump[3932]: Process 3929 (tokio-runtime-w) of user 1000 dumped core.
                                             #10 0x000055da313ff927 _ZN5tokio7runtime4task3raw4poll17h8dbb0533908352fdE (/usr/bin/cosmic-app-library + 0x537927)
                                             #11 0x000055da31adc7cb _ZN5tokio7runtime9scheduler12multi_thread6worker7Context8run_task17haa71bd17e0e3300bE (/usr/bin/cosmic-app-library + 0xc147cb)
                                             #12 0x000055da31adae53 _ZN5tokio7runtime9scheduler12multi_thread6worker3run17heba4c9778e332062E (/usr/bin/cosmic-app-library + 0xc12e53)
                                             #13 0x000055da31ae2763 _ZN5tokio7runtime4task3raw4poll17hdf6bcf46d10d6b65E (/usr/bin/cosmic-app-library + 0xc1a763)
may 05 21:18:02 main audit[6672]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=6672 comm="tokio-runtime-w" exe="/usr/bin/cosmic-app-library" sig=11 res=1
may 05 21:18:02 main kernel: tokio-runtime-w[6672]: segfault at 7f61f67fb990 ip 00007f623575ade4 sp 00007f623523e6d0 error 4 in libc.so.6[72de4,7f62356e8000+16f000] likely on CPU 5 (core 5, socket 0)
may 05 21:18:02 main systemd-coredump[6674]: Process 6672 (tokio-runtime-w) of user 1000 terminated abnormally with signal 11/SEGV, processing...
may 05 21:18:02 main systemd-coredump[6675]: Process 6672 (tokio-runtime-w) of user 1000 dumped core.
                                             #10 0x000055da313ff927 _ZN5tokio7runtime4task3raw4poll17h8dbb0533908352fdE (/usr/bin/cosmic-app-library + 0x537927)
                                             #11 0x000055da31adc7cb _ZN5tokio7runtime9scheduler12multi_thread6worker7Context8run_task17haa71bd17e0e3300bE (/usr/bin/cosmic-app-library + 0xc147cb)
                                             #12 0x000055da31adae53 _ZN5tokio7runtime9scheduler12multi_thread6worker3run17heba4c9778e332062E (/usr/bin/cosmic-app-library + 0xc12e53)
                                             #13 0x000055da31ae2763 _ZN5tokio7runtime4task3raw4poll17hdf6bcf46d10d6b65E (/usr/bin/cosmic-app-library + 0xc1a763)

Output of coredumpctl gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `cosmic-app-library'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __pthread_clockjoin_ex (threadid=140058724120256, thread_return=thread_return@entry=0x7f623523e750, clockid=clockid@entry=0, abstime=abstime@entry=0x0,
    block=block@entry=true) at pthread_join_common.c:43
43	  if (INVALID_NOT_TERMINATED_TD_P (pd))
warning: Missing auto-load script at offset 0 in section .debug_gdb_scripts
of file /usr/bin/cosmic-app-library.
Use `info auto-load python-scripts [REGEXP]' to list them.
Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.
Function(s) ^std::(shared|unique)_ptr<.*>::(get|operator) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|(forward_)?list|(unordered_|flat_)?(multi)?(map|set)|span)<.*>::(c?r?(begin|end)|front|back|data|size|empty) will be skipped when stepping.
Function(s) ^std::(basic_string|vector|array|deque|span)<.*>::operator.] will be skipped when stepping.
(gdb) print *0x7f623523e750
$1 = 0

The code that handles it: https://elixir.bootlin.com/glibc/glibc-2.41/source/nptl/pthread_detach.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions