Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1961775 - Crashes because of missing "context-info" GSettings key
Summary: Crashes because of missing "context-info" GSettings key
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-terminal
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Debarshi Ray
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6733c5beaf3a44063c499db708d...
: 1962898 1963961 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-18 16:42 UTC by Fedora User
Modified: 2021-06-20 01:07 UTC (History)
14 users (show)

Fixed In Version: gnome-terminal-3.40.2-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-20 01:07:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (46.06 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: core_backtrace (16.93 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: cpuinfo (2.61 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: dso_list (1.54 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: environ (1.38 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: limits (1.29 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: maps (3.91 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: mountinfo (3.96 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: open_fds (1.17 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
File: proc_pid_status (1.39 KB, text/plain)
2021-05-18 16:42 UTC, Fedora User
no flags Details
dnf list gnome-terminal (27.25 KB, image/png)
2021-05-24 16:01 UTC, Johannes Kalliauer
no flags Details

Description Fedora User 2021-05-18 16:42:27 UTC
Version-Release number of selected component:
gnome-terminal-3.38.3-1.fc34

Additional info:
reporter:       libreport-2.14.0
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/gnome-terminal-server.service
cmdline:        /usr/libexec/gnome-terminal-server
crash_function: g_settings_schema_get_value
executable:     /usr/libexec/gnome-terminal-server
journald_cursor: s=de5fd998405c4311a007b60125978858;i=2485c2;b=8801a37b6f7c4ecb927eaf2ba99c7b9d;m=176813c3c;t=5c29d37f335fe;x=d09a9e6f31373925
kernel:         5.11.20-300.fc34.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (5 frames)
 #4 g_settings_schema_get_value at ../gio/gsettingsschema.c:986
 #6 g_settings_schema_key_init at ../gio/gsettingsschema.c:1266
 #7 g_settings_get_value at ../gio/gsettings.c:1224
 #8 g_settings_get_strv at ../gio/gsettings.c:2204
 #9 screen_show_popup_menu_cb at /usr/src/debug/gnome-terminal-3.40.1-1.fc34.x86_64/src/terminal-window.c:1835

Potential duplicate: bug 1238515

Comment 1 Fedora User 2021-05-18 16:42:31 UTC
Created attachment 1784489 [details]
File: backtrace

Comment 2 Fedora User 2021-05-18 16:42:33 UTC
Created attachment 1784490 [details]
File: core_backtrace

Comment 3 Fedora User 2021-05-18 16:42:34 UTC
Created attachment 1784491 [details]
File: cpuinfo

Comment 4 Fedora User 2021-05-18 16:42:35 UTC
Created attachment 1784492 [details]
File: dso_list

Comment 5 Fedora User 2021-05-18 16:42:36 UTC
Created attachment 1784493 [details]
File: environ

Comment 6 Fedora User 2021-05-18 16:42:37 UTC
Created attachment 1784494 [details]
File: limits

Comment 7 Fedora User 2021-05-18 16:42:38 UTC
Created attachment 1784495 [details]
File: maps

Comment 8 Fedora User 2021-05-18 16:42:39 UTC
Created attachment 1784496 [details]
File: mountinfo

Comment 9 Fedora User 2021-05-18 16:42:40 UTC
Created attachment 1784497 [details]
File: open_fds

Comment 10 Fedora User 2021-05-18 16:42:41 UTC
Created attachment 1784498 [details]
File: proc_pid_status

Comment 11 Christian Persch 2021-05-18 19:09:08 UTC
It seems the gsettings schema weren't recompiled after the package was installed. That should happen automatically, but under unknown circumstances, it seems not to work. Then gnome-terminal crashes when accessing the setting. g-t upstream would like to make sure this never happens by embedding the compiled schema, but is lacking API in glib [https://gitlab.gnome.org/GNOME/glib/-/issues/499] to do so.

Comment 12 Debarshi Ray 2021-05-19 01:26:44 UTC
The backtrace mentions a "context-info" GSettings key, but I don't see anything like that in the code. Is that just garbage because the schema wasn't compiled? Or something else?

Comment 13 sidewinder 2021-05-19 07:30:18 UTC
Similar problem has been detected:

I right clicked in terminal window. This causes all open terminal windows to crash.

reporter:       libreport-2.14.0
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/gnome-terminal-server.service
cmdline:        /usr/libexec/gnome-terminal-server
crash_function: g_settings_schema_get_value
executable:     /usr/libexec/gnome-terminal-server
journald_cursor: s=b823acbfa4e943268a55a6e6acfe54ee;i=2334;b=d97e68f90105401c9d79313d93a4848a;m=7d600e512;t=5c2a928b4fd9c;x=b045ad69c6ad8f8a
kernel:         5.11.19-300.fc34.x86_64
package:        gnome-terminal-3.38.3-1.fc34
reason:         gnome-terminal-server killed by SIGTRAP
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 14 Charlie Merritt 2021-05-19 17:52:19 UTC
Similar problem has been detected:


dnf upgrade -y

reporter:       libreport-2.14.0
backtrace_rating: 4
cgroup:         0::/user.slice/user-0.slice/user/app.slice/app-org.gnome.Terminal.slice/gnome-terminal-server.service
cmdline:        /usr/libexec/gnome-terminal-server
crash_function: g_settings_schema_get_value
executable:     /usr/libexec/gnome-terminal-server
journald_cursor: s=44dabe8563eb4addb8a9acc6dc81165b;i=7301;b=5bba45a66c714bc5bc1756066b696ca6;m=8c3df8ffc;t=5c2b1c4fe19dc;x=8e121f6d8779b63b
kernel:         5.11.20-300.fc34.x86_64
package:        gnome-terminal-3.38.3-1.fc34
reason:         gnome-terminal-server killed by SIGTRAP
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Comment 15 Debarshi Ray 2021-05-20 18:56:36 UTC
*** Bug 1962898 has been marked as a duplicate of this bug. ***

Comment 16 Dan T. 2021-05-20 20:25:09 UTC
Apologies for the duplicate report. I should note that I only noticed the issue after upgrading to 3.40.1-1. I have been unable to reproduce it since downgrading to 3.38.3-1 and then upgrading back to 3.40.1-1 (unsure if it's transient or fixed itself permanently).

Comment 17 Fedora User 2021-05-21 04:13:22 UTC
I've just removed 3.38 and everything goes well.

https://ibb.co/HT3jq8P

Now context menu doesn't kill the window.

Comment 18 Christian Persch 2021-05-21 09:45:51 UTC
(In reply to Debarshi Ray from comment #12)
> The backtrace mentions a "context-info" GSettings key, but I don't see
> anything like that in the code. Is that just garbage because the schema
> wasn't compiled? Or something else?

That's an existing key:

org.gnome.Terminal.gschema.xml:    <key name="context-info" type="as">
terminal-schemas.h:#define TERMINAL_SETTING_CONTEXT_INFO_KEY               "context-info"

And yes, the problem is that somehow the upgrade failed to recompile the gsettings schemas.

Comment 19 Debarshi Ray 2021-05-21 21:00:49 UTC
(In reply to Christian Persch from comment #18)
> (In reply to Debarshi Ray from comment #12)
> > The backtrace mentions a "context-info" GSettings key, but I don't see
> > anything like that in the code. Is that just garbage because the schema
> > wasn't compiled? Or something else?
> 
> That's an existing key:
> 
> org.gnome.Terminal.gschema.xml:    <key name="context-info" type="as">
> terminal-schemas.h:#define TERMINAL_SETTING_CONTEXT_INFO_KEY              
> "context-info"

Ok, I see it now.

The thing is that the "context-info" GSettings key was only introduced in GNOME Terminal 3.40.x, while I see it in backtraces generated by GNOME Terminal 3.38.x (eg., this bug itself). Which is why I was looking at the gnome-3-38 branch.

> And yes, the problem is that somehow the upgrade failed to recompile the
> gsettings schemas.

I wonder if the version mismatch is a hint as to what might be going on? Could it be a case of online updates gone wrong? Maybe GNOME Terminal was started in the middle of a DNF operation and the right-click happened before the new schema got compiled?

Comment 20 Debarshi Ray 2021-05-21 21:12:10 UTC
Does the crash keep happening repeatedly? Or does it crash once, and then if you restart GNOME Terminal and use right-click to bring up the context menu, it doesn't crash anymore?

Comment 21 Serial.com 2021-05-22 13:21:02 UTC
*** Bug 1963337 has been marked as a duplicate of this bug. ***

Comment 22 Dan T. 2021-05-23 16:00:34 UTC
(In reply to Debarshi Ray from comment #20)
> Does the crash keep happening repeatedly? Or does it crash once, and then if
> you restart GNOME Terminal and use right-click to bring up the context menu,
> it doesn't crash anymore?

I'm afraid that I can't reproduce the bug since down/upgrading gnome-terminal, but I'm pretty sure that it crashed every time I re-opened and right-clicked on it before I did that, not just once.

Comment 23 Debarshi Ray 2021-05-24 14:10:28 UTC
*** Bug 1963961 has been marked as a duplicate of this bug. ***

Comment 24 Johannes Kalliauer 2021-05-24 15:30:23 UTC
*** Bug 1964046 has been marked as a duplicate of this bug. ***

Comment 25 Johannes Kalliauer 2021-05-24 15:42:07 UTC
(In reply to Debarshi Ray from comment #20)
> Does the crash keep happening repeatedly? Or does it crash once, and then if
> you restart GNOME Terminal and use right-click to bring up the context menu,
> it doesn't crash anymore?

I crashes repeatedly, every time on right-click. Restarting terminal, same issue again. (You do not need to type or call anything before rightclick.) And if right-clicking all terminals (at least from the same user) crash not only the current one.

Comment 26 Johannes Kalliauer 2021-05-24 15:48:36 UTC
This issue is also on https://retrace.fedoraproject.org/faf/reports/156482/ .

The issue occured
434 times with 0:3.40.1-1.fc34
328 times with 0:3.38.3-1.fc34
 15 times with 0:3.38.1-3.fc34

I do not understand what "related packages" mean, and why librsvg2.50 is showing up .

Comment 27 Johannes Kalliauer 2021-05-24 16:01:03 UTC
Created attachment 1786560 [details]
dnf list gnome-terminal

output of "dnf list gnome-terminal" it shows 3.38.3 AND 3.40.1 (sorry I can't right-click for copying, see this bug-description) ;-)

Comment 28 Johannes Kalliauer 2021-05-24 16:04:34 UTC
I solved the issue using

sudo dnf remove gnome-terminal-3.38* 

(3.40 was already installed)

Comment 29 Debarshi Ray 2021-05-26 15:21:16 UTC
*** Bug 1964056 has been marked as a duplicate of this bug. ***

Comment 30 Debarshi Ray 2021-05-26 15:24:19 UTC
(In reply to Johannes Kalliauer from comment #25)
> (In reply to Debarshi Ray from comment #20)
> > Does the crash keep happening repeatedly? Or does it crash once, and then if
> > you restart GNOME Terminal and use right-click to bring up the context menu,
> > it doesn't crash anymore?
> 
> I crashes repeatedly, every time on right-click. Restarting terminal, same
> issue again. (You do not need to type or call anything before rightclick.)
> And if right-clicking all terminals (at least from the same user) crash not
> only the current one.

Interesting.

(In reply to Johannes Kalliauer from comment #28)
> I solved the issue using
> 
> sudo dnf remove gnome-terminal-3.38* 
> 
> (3.40 was already installed)

You mean, you had both gnome-terminal-3.38.x and gnome-terminal-3.40.x RPMs installed at the same time? That's not supposed to happen under normal circumstances.

Do you remember doing something with DNF (say, an installation or an update) that failed midway?

Comment 31 Johannes Kalliauer 2021-05-26 20:33:10 UTC
> You mean, you had both gnome-terminal-3.38.x and gnome-terminal-3.40.x RPMs installed at the same time?
Yes see the screenshot: https://bugzilla.redhat.com/attachment.cgi?id=1786560 (copy&paste did not work because of this issue)

dnf list gnome-terminal returned
Installierte Packete [german for installe packages]
gnome-terminal.x86_64   3.38.3-1.fc34   @updates
gnome-terminal.x86_64   3.40.1-1.fc34   @updates

> Do you remember doing something with DNF (say, an installation or an update) that failed midway?

I can't remember. (I think I had a chrash somewhen in the last days, I do not know when nor why, might not be related to this issue.)

The bug occurred the first time on the 19.May I think in the Morning (~9:00CEST=07:00UTC) one day after the first big peak in https://retrace.fedoraproject.org/faf/reports/156482/

Commands which were typed in the terminal which crashed seems not to be saved in .bash_history (because some commands between 19.May and 24.May are missing)

The last dnf-commands in .bash_history are: (the 19.May should be around line 830: of .bash_history)
```
2:sudo dnf install python3-pillow-tk
14:sudo dnf install libvpx
15:sudo dnf install libvpx opus
33:sudo dnf install libvpx opus
34:sudo dnf list libvpx opus
49:sudo dnf install libvpx opus
104:sudo dnf upgrade
121:dnf list inkscape
217:sudo dnf list batik*
218:sudo dnf list librsvg*
219:sudo dnf list imag*
220:sudo dnf list google-noto-\*
221:sudo dnf install google-noto-\*
306:sudo dnf upgrade
310:sudo dnf upgrade
311:sudo dnf list wesnot*
312:sudo dnf remove wesnoth-data
313:sudo dnf upgrade
314:sudo dnf upgrade --refresh
316:sudo dnf install dnf-plugin-system-upgrade
317:sudo dnf install dnf-plugin-system-upgrade --best
318:dnf system-upgrade download --refresh --releasever=34
319:sudo dnf system-upgrade download --refresh --releasever=34
320:sudo dnf --refresh upgrade
321:sudo dnf system-upgrade download --refresh --releasever=34
322:sudo dnf --refresh upgrade
323:sudo dnf system-upgrade download --refresh --releasever=34 --best
324:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing
325:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing &> upgrade34.txt
327:sudo dnf upgrade --refresh
328:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing
329:dnf system-upgrade reboot
330:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing --best
331:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing --best --skip-broken
332:sudo dnf remove gwe
333:sudo dnf remove iptables
334:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing
335:sudo dnf list gwe iptables openjfx
336:sudo dnf list gwe iptables openjfx widelands
337:sudo dnf remove gwe iptables openjfx
338:sudo dnf remove iptables
339:sudo dnf remove openjfx
340:sudo dnf remove gwe openjfx
341:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing
342:sudo dnf list gwe iptables openjfx widelands
343:sudo dnf remove gwe widelands
344:sudo dnf system-upgrade download --refresh --releasever=34 --allowerasing
345:dnf system-upgrade reboot
346:sudo dnf system-upgrade reboot
347:sudo dnf list gwe iptables openjfx widelands
348:sudo dnf upgrade --refresh
349:sudo dnf upgrade --refresh --best --allowerasing
350:sudo dnf upgrade --refresh
396:sudo dnf upgrade
402:sudo dnf upgrade
403:sudo dnf upgrade
417:sudo dnf upgrade
428:sudo dnf upgrade
429:sudo dnf list widelands
430:sudo dnf remove widelands
431:sudo dnf list widelands
432:sudo dnf upgrade
433:sudo dnf install widelands
434:sudo dnf upgrade
435:dnf list gwe iptables openjfx widelands
436:sudo dnf install iptables
437:sudo dnf upgrade
438:sudo dnf uprade
439:sudo dnf upgrade
490:sudo dnf upgrade
491:sudo dnf upgrade#
492:sudo dnf upgrade
496:sudo dnf upgrade
577:dnf install libcroco
578:sudo dnf install libcroco
579:sudo dnf install mingw32-libcroco-static
580:sudo dnf list mingw64-libcroco-static-0.6.12-10.fc34.noarch
581:sudo dnf install mingw64-libcroco-static-0.6.12-10.fc34.noarch
583:dnf list librsvg
584:dnf list rsvg-convert
585:dnf list librsvg2
604:sudo dnf list libcroco*
605:sudo dnf list *libcroco*
606:sudo dnf list mingw64-libcroco
607:sudo dnf list mingw64-libcroco-static-0.6.12-10.fc34.noarch
608:sudo dnf list mingw64-libcroco-static
609:sudo dnf list *libcroco*
644:dnf list libcroco
650:sudo dnf upgrade --refresh
673:dnf list libcroco
679:dnf list libcroco
683:dnf list libcroco
801:sudo dnf install libresv*
802:sudo dnf install resv*
803:sudo dnf list *resvg*
804:sudo dnf list *res*
805:sudo dnf list *resv*
830:sudo dnf upgrade
837:sudo dnf upgrade
838:sudo dnf upgrade --refresh
861:sudo dnf upgrade
862:sudo dnf upgrade --refresh
865:sudo dnf install jitsi
866:sudo dnf install jitsi --skip-broken
867:sudo dnf install libjawt
868:sudo dnf install java-11-openjdk-*
874:sudo dnf install jitsi
875:sudo dnf install jitsi-meet
876:sudo dnf install jitsi-*
877:sudo dnf list jitsi-*
878:sudo dnf list jicofo
879:sudo dnf list jicgasi
880:sudo dnf list jigasi
881:sudo dnf list jibri
888:sudo dnf upgrade
889:sudo dnf upgrade --refresh
890:sudo dnf list libselinux-debuginfo
891:sudo dnf list *-debuginfo
892:sudo dnf list docker-ce*
893:sudo dnf list docker*
894:sudo dnf upgrade --refresh
895:sudo dnf upgrade
896:sudo dnf --help
897:sudo dnf upgrade --refresh --skip-broken
898:sudo dnf --help
899:sudo dnf upgrade --refresh --skip-broken --allowerasing
900:sudo dnf --help 
901:sudo dnf upgrade --refresh --skip-broken --allowerasing --best
902:sudo dnf upgrade --refresh --skip-broken --allowerasing --nobest
903:sudo dnf remove libxml2-devel
904:sudo dnf remove libxml2-devel.i686
905:sudo dnf upgrade --refresh --skip-broken --allowerasing
906:sudo dnf list freedesktop*
907:sudo dnf list *freedesktop*
908:sudo dnf list
909:sudo dnf list installed
910:sudo dnf list installed >> dnf.txt
911:sudo dnf upgrade --refresh --skip-broken --allowerasing
912:sudo dnf upgrade --refresh
914:sudo dnf list docker*
915:sudo dnf install docker-ce
916:sudo dnf install docker-ce --allowerasing
917:sudo dnf list docker-ce*
918:sudo dnf upgrade --refresh
919:sudo dnf list docker-ce*
920:sudo dnf upgrade --refresh --skip-broken --allowerasing
921:sudo dnf -y install dnf-plugins-core
922:sudo dnf config-manager     --add-repo     https://download.docker.com/linux/fedora/docker-ce.repo
923:sudo dnf upgrade --refresh --skip-broken --allowerasing
924:sudo dnf install docker-ce docker-ce-cli containerd.io
925:dnf list docker-ce  --showduplicates | sort -r
930:sudo dnf install lz4-libs-debuginfo
932:dnf debuginfo-install docker-ce
933:sudo dnf debuginfo-install docker-ce
934:sudo dnf debuginfo-install lz4-libs
935:sudo dnf list *-debuginfo*
936:sudo dnf list *-debuginfo
937:sudo dnf debuginfo-install *
938:sudo dnf debuginfo-install 
939:sudo dnf debuginfo-install l*
940:sudo dnf debuginfo-install *-*
941:dnf debuginfo-install *
942:sudo dnf debuginfo-install *
943:sudo dnf debuginfo-install * --allowerasing --skip-broken
944:sudo dnf debuginfo-install libX* --allowerasing --skip-broken
945:sudo dnf debuginfo-install libXext --allowerasing --skip-broken
946:sudo dnf debuginfo-install docker-ce --allowerasing --skip-broken
947:sudo dnf install libXext
948:sudo dnf install libXext*
949:sudo dnf list *-debuginfo
954:sudo dnf list gnome-terminal
955:dnf list gnome-terminal
958:sudo dnf install gnome-terminal
959:sudo dnf remove gnome-terminal-3.38
960:sudo dnf remove gnome-terminal-3.38*
961:dnf list gnome-terminal
963:sudo dnf install gnome-terminal*
984:dnf check-upgrade --refresh
992:dnf list automake autoconf libtool gettext make
993:sudo dnf upgrade
```

Comment 32 Christian Persch 2021-06-06 14:52:33 UTC
gnome-terminal 3.40.2 contains a mitigation for this.

Comment 33 Eli Pasetes 2021-06-13 07:27:24 UTC
*** Bug 1971242 has been marked as a duplicate of this bug. ***

Comment 34 Fedora Update System 2021-06-17 10:07:37 UTC
FEDORA-2021-6d3f3aac2d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-6d3f3aac2d

Comment 35 Fedora Update System 2021-06-18 01:21:40 UTC
FEDORA-2021-6d3f3aac2d has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6d3f3aac2d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6d3f3aac2d

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

Comment 36 Fedora Update System 2021-06-20 01:07:31 UTC
FEDORA-2021-6d3f3aac2d has been pushed to the Fedora 34 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.