Description of problem: Steam client begun flood console with messages: "(steam:383065): nm-CRITICAL **: 19:27:07.444: file src/libnm-glib-aux/nm-shared-utils.c: line 4959 (<dropped>): should not be reached" after upgrade glib2 from 2.77.0-2.fc39 to 2.77.0-3.fc39. https://src.fedoraproject.org/rpms/glib2/c/39b488fb499b8a63ce3d8d2251cbc4eb90a54a55?branch=rawhide I cannot judge who is wrong glib2 or Steam client, but add missing return on error in g_main_context_release looks reasonable to me.
Created attachment 1976540 [details] terminal screenshot
The crux of the whole issue is this code: https://github.com/NetworkManager/NetworkManager/blob/ab69d430a7fa5fe16c9b4c4d2b57b85df8c3011b/src/libnm-glib-aux/nm-shared-utils.c#L4943-L4962 that's what caused the crash in anaconda, as well as what is causing this. (I'm actually surprised Steam client didn't also crash with 2.77.0-2.fc39). In 2.77.0, glib added a check for - as best as I can tell - *exactly the thing NM is specifically trying to do there*, releasing a context from a thread which doesn't own it. Again as best as I can tell, NM seems to be trying to clean up after NM-based app code - assuming that's what "the user" refers to in the comment - which is doing stuff it shouldn't be doing. But glib doesn't think that what NM is doing is right. I am not sure how to unpick this conundrum, but let's yank in the NM maintainer.
*** Bug 2224510 has been marked as a duplicate of this bug. ***
Let's re-assign to NM for now, as it doesn't seem like glib is really doing anything wrong here. In the end the fixes may have to be in the NM clients (Steam, and whatever thing in the installer environment is actually causing this - not sure if anaconda uses libnm itself or if something else is triggering this), but let's see what NM maintainers have to say. Forgot to mention, the new check in glib was added in https://gitlab.gnome.org/GNOME/glib/-/commit/3926af723a7469a2ea492307f421820361d617b3 , then a return statement was added to the check in https://gitlab.gnome.org/GNOME/glib/-/commit/c67dd9d3fe9186bef76ba682a7e277ccb7d95227 to fix anaconda crashing (which I reported as https://gitlab.gnome.org/GNOME/glib/-/issues/3054 ).
Created attachment 1980219 [details] QEMU screenshot Same for QEMU
As Thomas already replied in upstream issue, we believe that this a bug from GLib. Please, check: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1361 https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3513 https://gitlab.gnome.org/GNOME/glib/-/issues/3054#note_1799354 I will track this until we get an answer from GLib people and will reassign it in case they confirm it is a bug on GLib. Thanks!
I am closing this as UPSTREAM. Please check https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3513 for more details. The change was reverted in GLib. Thank you!
Rawhide would be a better resolution, I guess. It's fixed in 2.77.1 so should be in the next compose.
Works for me with "Fedora-Everything-netinst-x86_64-Rawhide-20230801.n.0.iso"