Bug 2252514 - [abrt] gdb-headless: handle_fatal_signal(): gdb killed by SIGABRT
Summary: [abrt] gdb-headless: handle_fatal_signal(): gdb killed by SIGABRT
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Buettner
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:fe1e268899b5dae3fc7b2693a25...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-02 03:46 UTC by Matt Fagnani
Modified: 2024-01-05 21:13 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: core_backtrace (24.07 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: backtrace (25.08 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: maps (3.92 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: open_fds (12.20 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: os_info (699 bytes, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: cpuinfo (2.89 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: proc_pid_status (1.48 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: dso_list (2.17 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: limits (1.29 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details
File: var_log_messages (4.57 KB, text/plain)
2023-12-02 03:46 UTC, Matt Fagnani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Sourceware 31122 0 P2 UNCONFIRMED gdb crashed when drkonqi ran it on plasmashell crashes 2023-12-08 12:21:14 UTC

Internal Links: 2253725

Description Matt Fagnani 2023-12-02 03:46:30 UTC
Description of problem:
I was using Firefox 122.0a1 (2023-12-01) on Wayland in Plasma 5.27.9 in a Fedora 39 KDE Plasma installation. I logged into my Instagram account in Firefox. I played various Instagram stories. As one Instagram story video ended and another began, plasmashell crashed. drkonqi appeared for reporting the plasmashell crash. I pressed Developer Information in drkonqi. drkonqi crashed while it was creating a trace. Another drkonqi window appeared for the drkonqi trace. I pressed Developer Information again in drkonqi. drkonqi crashed again. An abrt notification was shown. A gdb crash was shown in abrt and coredumpctl.

This gdb crash was during the plasmashell crash trace in drkonqi. I reported a gdb crash which happened in a similar way at https://bugzilla.redhat.com/show_bug.cgi?id=2252382 That trace looked different from this one so I'm reporting it separately. Since the plasmashell crashes when watching videos in Firefox were infrequent as I reported at https://bugzilla.redhat.com/show_bug.cgi?id=2216067 and https://bugzilla.redhat.com/show_bug.cgi?id=2250389 I found a way to reproduce the plasmashell crash and gdb crash in drkonqi such that plasmashell will crash every time at least. I reported those steps at https://bugzilla.redhat.com/show_bug.cgi?id=2252382#c11 

Version-Release number of selected component:
gdb-headless-13.2-11.fc39

Additional info:
reporter:       libreport-2.17.11
cmdline:        /usr/bin/gdb -nw -n -batch -x /tmp/drkonqi.cwGjyw -x /tmp/drkonqi.uZPVDQ -p 58309 /usr/bin/plasmashell
rootdir:        /
executable:     /usr/libexec/gdb
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/plasma-plasmashell.service
type:           CCpp
kernel:         6.6.3-200.fc39.x86_64
runlevel:       N 5
journald_cursor: s=835a8447cd6d443b95149316ea1b512b;i=11efe3b;b=6104c25cf4454599b8d5b06175cb508f;m=586073d29;t=60b7d1d8bf4ff;x=b6c688b51e46d440
package:        gdb-headless-13.2-11.fc39
backtrace_rating: 4
uid:            1000
crash_function: handle_fatal_signal
reason:         gdb killed by SIGABRT

Truncated backtrace:
Thread no. 0 (12 frames)
 #3 handle_fatal_signal at ../../gdb/event-top.c:985
 #5 __futex_abstimed_wait_common64 at futex-internal.c:57
 #6 __futex_abstimed_wait_common at futex-internal.c:87
 #7 __futex_abstimed_wait_cancelable64 at futex-internal.c:139
 #8 __pthread_cond_wait_common at pthread_cond_wait.c:503
 #9 ___pthread_cond_wait at pthread_cond_wait.c:618
 #10 __gthread_cond_wait at /usr/src/debug/gcc-13.2.1-4.fc39.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/x86_64-redhat-linux/bits/gthr-default.h:865
 #11 std::__condvar::wait at /usr/src/debug/gcc-13.2.1-4.fc39.x86_64/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/std_mutex.h:171
 #12 std::condition_variable::wait at ../../../../../libstdc++-v3/src/c++11/condition_variable.cc:41
 #13 gdb::thread_pool::thread_function at ../../gdbsupport/thread-pool.cc:235
 #14 std::execute_native_thread_routine at ../../../../../libstdc++-v3/src/c++11/thread.cc:104
 #16 clone3 at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78


Potential duplicate: bug 2242572

Comment 1 Matt Fagnani 2023-12-02 03:46:34 UTC
Created attachment 2002475 [details]
File: core_backtrace

Comment 2 Matt Fagnani 2023-12-02 03:46:36 UTC
Created attachment 2002476 [details]
File: backtrace

Comment 3 Matt Fagnani 2023-12-02 03:46:37 UTC
Created attachment 2002477 [details]
File: maps

Comment 4 Matt Fagnani 2023-12-02 03:46:39 UTC
Created attachment 2002478 [details]
File: open_fds

Comment 5 Matt Fagnani 2023-12-02 03:46:40 UTC
Created attachment 2002479 [details]
File: os_info

Comment 6 Matt Fagnani 2023-12-02 03:46:42 UTC
Created attachment 2002480 [details]
File: cpuinfo

Comment 7 Matt Fagnani 2023-12-02 03:46:43 UTC
Created attachment 2002481 [details]
File: proc_pid_status

Comment 8 Matt Fagnani 2023-12-02 03:46:44 UTC
Created attachment 2002482 [details]
File: dso_list

Comment 9 Matt Fagnani 2023-12-02 03:46:46 UTC
Created attachment 2002483 [details]
File: limits

Comment 10 Matt Fagnani 2023-12-02 03:46:47 UTC
Created attachment 2002484 [details]
File: var_log_messages

Comment 11 Matt Fagnani 2023-12-08 12:21:14 UTC
I reported this problem at https://sourceware.org/bugzilla/show_bug.cgi?id=31122

Comment 12 Matt Fagnani 2023-12-11 05:57:08 UTC
There are systemd service watchdog timeouts which default to 45 s like DefaultTimeoutStopSec=45s described in man systemd-user.conf. /usr/lib/systemd/user/plasma-plasmashell.service had TimeoutSec=40sec. So when drkonqi was still creating the trace of plasmashell 40 s after plasmashell crashed, systemd aborted plasma-plasmashell.service's processes plasmashell, drkonqi, kioslave5, gdb. Fedora services use the drop-in configuration file /usr/lib/systemd/user/service.d/10-timeout-abort.conf which has TimeoutStopFailureMode=abort which makes processes abort when timing out to generate core dumps https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer I changed the timeout to TimeoutSec=120sec, logged out and logged in. I reproduced the plasmashell crash, and the trace completed after about 40 s. drkonqi, plasmashell, and kioslave5 were aborted after 120 s. The default timeout of 40 s for plasma-plasmashell.service wasn't long enough to trace plasmashell and report the crash.


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