Bug 2365089 - repoquery of c9s gives: GLib-CRITICAL **: g_variant_store: assertion 'data != NULL' failed
Summary: repoquery of c9s gives: GLib-CRITICAL **: g_variant_store: assertion 'data !=...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libmodulemd
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-08 12:29 UTC by Jens Petersen
Modified: 2025-06-10 02:58 UTC (History)
7 users (show)

Fixed In Version: libmodulemd-2.15.1-1.fc43 libmodulemd-2.15.1-1.fc42 libmodulemd-2.15.1-1.fc41
Clone Of:
Environment:
Last Closed: 2025-05-16 02:35:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-modularity libmodulemd pull 625 0 None Merged Don't call `g_variant_store()` with `NULL` 2025-05-09 08:31:54 UTC

Description Jens Petersen 2025-05-08 12:29:30 UTC
This seems like a kind of weak regression.

In current F42 and Rawhide querying C9S repos gives lots of GLib-CRITICAL warnings:


Reproducible: Always

Steps to Reproduce:
$ dnf5 "repoquery" "--quiet" "--repofrompath=c9s-BaseOS,https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/" "--repo=c9s-BaseOS" "--setopt=c9s-BaseOS.metadata_expire=6h" "--repofrompath=c9s-AppStream,https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/" "--repo=c9s-AppStream" "kernel"

Actual Results:
```

(process:228768): GLib-CRITICAL **: 20:18:10.172: g_variant_store: assertion 'data != NULL' failed

(process:228768): GLib-CRITICAL **: 20:18:10.173: g_variant_store: assertion 'data != NULL' failed

(process:228768): GLib-CRITICAL **: 20:18:10.173: g_variant_store: assertion 'data != NULL' failed

:
:
:

(process:228768): GLib-CRITICAL **: 20:18:10.191: g_variant_store: assertion 'data != NULL' failed

(process:228768): GLib-CRITICAL **: 20:18:10.191: g_variant_store: assertion 'data != NULL' failed

(process:228768): GLib-CRITICAL **: 20:18:10.191: g_variant_store: assertion 'data != NULL' failed
kernel-0:5.14.0-573.el9.x86_64
kernel-0:5.14.0-575.el9.x86_64
kernel-0:5.14.0-578.el9.x86_64
kernel-0:5.14.0-580.el9.x86_64
kernel-0:5.14.0-582.el9.x86_64
```

There are actually 92 warnings in this case!

Expected Results:
No glib warnings to appear, like earlier.

Additional Information:
Adding CRB creates a few more warnings, but BaseOS does not seem to generate any.

Comment 1 Jens Petersen 2025-05-08 12:36:06 UTC
Also perhaps worth stating this doesn't happen with eln or c10s repos,
but I do see it for c8s.

Comment 2 Jens Petersen 2025-05-08 12:36:54 UTC
(Also obviously doesn't happen with dnf4)

Comment 3 Petr Pisar 2025-05-09 08:31:04 UTC
This is triggered by a change in glib-2.84.1 and fixed in libmodulemd upstream <https://github.com/fedora-modularity/libmodulemd/pull/625>. It happens when processing module YAML files with /data/xmd field with {} value. The warning is harmless.

I will rebase libmodulemd in Fedora.

Comment 4 Fedora Update System 2025-05-12 07:19:15 UTC
FEDORA-2025-797ed42a6d (libmodulemd-2.15.1-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-797ed42a6d

Comment 5 Fedora Update System 2025-05-12 07:22:00 UTC
FEDORA-2025-cd0a2da7ff (libmodulemd-2.15.1-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cd0a2da7ff

Comment 6 Fedora Update System 2025-05-13 01:56:38 UTC
FEDORA-2025-797ed42a6d has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-797ed42a6d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-797ed42a6d

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

Comment 7 Fedora Update System 2025-05-13 02:54:46 UTC
FEDORA-2025-cd0a2da7ff has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cd0a2da7ff`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cd0a2da7ff

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

Comment 8 Jens Petersen 2025-05-13 09:06:24 UTC
Looks fixed to me in Rawhide now, thank you!

$ fedora-repoquery c9s bash |& grep GLib-CRITICAL | wc -l
0

Comment 9 Fedora Update System 2025-05-16 02:35:52 UTC
FEDORA-2025-797ed42a6d (libmodulemd-2.15.1-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-06-10 02:58:51 UTC
FEDORA-2025-cd0a2da7ff (libmodulemd-2.15.1-1.fc41) has been pushed to the Fedora 41 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.