Bug 2180119

Summary: [abrt] gdb-headless: quit_force(): gdb killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Dima Ryazanov <dima>
Component: gdbAssignee: Kevin Buettner <kevinb>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: ahajkova, blarsen, codeworks, fweimer, jan, keiths, kevinb, mcermak, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/91965045cf2d8ea0f695a43635b6bc7de608df0
Whiteboard: abrt_hash:5ee14f607cdc4abaaef9168926f5f4b08d9590db;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-23 22:05:37 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: core_backtrace
none
File: cgroup
none
File: open_fds
none
File: backtrace
none
File: dso_list
none
File: maps
none
File: environ
none
File: cpuinfo
none
File: os_info
none
File: proc_pid_status
none
File: limits
none
File: mountinfo none

Description Dima Ryazanov 2023-03-20 18:27:04 UTC
Description of problem:
GDB crashes while trying to generate a stack trace for a problem report for xdg-desktop-portal-gnome

Version-Release number of selected component:
gdb-headless-13.1-1.fc38

Additional info:
reporter:       libreport-2.17.8
reason:         gdb killed by SIGSEGV
cmdline:        /usr/libexec/gdb -batch -ex $'set debuginfod enabled on' "" -ex $'file /usr/libexec/gdb' -ex $'core-file ./coredump' -ex $'thread apply all -ascending backtrace full 1024' -ex $'info sharedlib' -ex $'print (char*)__abort_msg' -ex $'print (char*)__glib_assert_msg' -ex $'info all-registers' -ex disassemble
rootdir:        /
uid:            1000
type:           CCpp
package:        gdb-headless-13.1-1.fc38
runlevel:       N 5
journald_cursor: s=9b3e7e5162454feabff781758b4468ec;i=145278;b=e412b57d60c04409aa77889def5cbba0;m=10d0ba2b;t=5f759075f99e8;x=1ff2c68e782715bb
comment:        GDB crashes while trying to generate a stack trace for a problem report for xdg-desktop-portal-gnome
backtrace_rating: 4
crash_function: quit_force
executable:     /usr/libexec/gdb
kernel:         6.2.7-300.fc38.x86_64

Truncated backtrace:
Thread no. 1 (4 frames)
 #40 quit_force at ../../gdb/top.c:1894
 #41 captured_main_1 at ../../gdb/main.c:1311
 #42 captured_main at ../../gdb/main.c:1320
 #43 gdb_main at ../../gdb/main.c:1345

Comment 1 Dima Ryazanov 2023-03-20 18:27:07 UTC
Created attachment 1952139 [details]
File: core_backtrace

Comment 2 Dima Ryazanov 2023-03-20 18:27:08 UTC
Created attachment 1952140 [details]
File: cgroup

Comment 3 Dima Ryazanov 2023-03-20 18:27:10 UTC
Created attachment 1952141 [details]
File: open_fds

Comment 4 Dima Ryazanov 2023-03-20 18:27:11 UTC
Created attachment 1952142 [details]
File: backtrace

Comment 5 Dima Ryazanov 2023-03-20 18:27:13 UTC
Created attachment 1952143 [details]
File: dso_list

Comment 6 Dima Ryazanov 2023-03-20 18:27:15 UTC
Created attachment 1952144 [details]
File: maps

Comment 7 Dima Ryazanov 2023-03-20 18:27:16 UTC
Created attachment 1952145 [details]
File: environ

Comment 8 Dima Ryazanov 2023-03-20 18:27:18 UTC
Created attachment 1952146 [details]
File: cpuinfo

Comment 9 Dima Ryazanov 2023-03-20 18:27:19 UTC
Created attachment 1952147 [details]
File: os_info

Comment 10 Dima Ryazanov 2023-03-20 18:27:21 UTC
Created attachment 1952148 [details]
File: proc_pid_status

Comment 11 Dima Ryazanov 2023-03-20 18:27:22 UTC
Created attachment 1952149 [details]
File: limits

Comment 12 Dima Ryazanov 2023-03-20 18:27:23 UTC
Created attachment 1952150 [details]
File: mountinfo

Comment 13 Kevin Buettner 2023-03-22 23:22:48 UTC
Any chance of getting the core file for the xdg-desktop-portal-gnome crash?

Comment 14 Dima Ryazanov 2023-03-22 23:42:31 UTC
It looks like the problem reporter deleted the core file a second after gdb crashed... So helpful. This is what I see in the systemd log:

Mar 20 11:23:51 dima-dell systemd-coredump[10049]: [🡕] Process 10033 (gdb) of user 1000 dumped core.
...
Mar 20 11:23:52 dima-dell abrtd[1369]: Size of '/var/spool/abrt' >= 5000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2023-03-20-10:52:34.505094-155525'
Mar 20 11:23:53 dima-dell gnome-abrt[10013]: '/var/spool/abrt/ccpp-2023-03-20-10:52:34.505094-155525' does not exist
Mar 20 11:23:55 dima-dell gnome-abrt[10013]: '/var/spool/abrt/ccpp-2023-03-20-10:52:34.505094-155525' does not exist
Mar 20 11:23:56 dima-dell abrt-notification[10127]: [🡕] Process 10033 (gdb) crashed in ??()

Comment 15 Kevin Buettner 2023-03-23 22:05:37 UTC
Unfortunately, I don't think we'll be able to fix this without a way to reproduce it.

Comment 16 codeworks 2023-04-26 15:34:17 UTC
This does happen all the time when opening the bug report after gnome-shell crashed to send it.
Shortly after this gdb crash happens to me.
I sent my report, but somehow it doesn't show here?!?

Comment 17 Walber 2023-07-26 18:37:22 UTC
The problem happen when create a report for gnome-shell


reporter:       libreport-2.17.11
package:        gdb-headless-13.2-2.fc38
executable:     /usr/libexec/gdb
crash_function: quit_force
kernel:         6.3.12-200.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.freedesktop.GnomeAbrt-91795.scope
type:           CCpp
cmdline:        /usr/libexec/gdb -batch -ex $'set debuginfod enabled on' "" -ex $'file /usr/bin/gnome-shell' -ex $'core-file ./coredump' -ex $'thread apply all -ascending backtrace full 1024' -ex $'info sharedlib' -ex $'print (char*)__abort_msg' -ex $'print (char*)__glib_assert_msg' -ex $'info all-registers' -ex disassemble
reason:         gdb killed by SIGSEGV
uid:            1000
comment:        The problem happen when create a report for gnome-shell
journald_cursor: s=aa1aeb162c5a4917a27ad2358b45360a;i=e482f;b=d5c8adcc626342ea9974aa4bb85f1447;m=58abd811d;t=601681428fb80;x=d4de6f17854c87e1
backtrace_rating: 4
rootdir:        /
runlevel:       N 5