[Bug]: GNOME Clocks triggers GLib critical: g_ascii_strtod assertion 'nptr != NULL' failed
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
The bug is in geocode-glib library, called by GNOME Clocks. Start by reproducing the issue with G_DEBUG=fatal-criticals to get a backtrace. Examine geocode-glib source to find where g_ascii_strtod is called with a NULL pointer. Look at the GNOME Clocks code that uses geocode-glib to understand the data flow. The fix likely involves validating input before passing to g_ascii_strtod.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Kernel
7.2.6-1-cachyos
Desktop Environment / Window Manager
GNOME
CPU
AMD Ryzen 5 5600H
GPU / Driver
AMD Radeon Graphics (integrated) / amdgpu NVIDIA GeForce RTX 2050 / NVIDIA proprietary driver
Description
GNOME Clocks consistently produces a GLib critical warning during startup:
g_ascii_strtod: assertion 'nptr != NULL' failed
The warning occurs every time GNOME Clocks is started and is reproducible regardless of the locale used.
Testing with both LANG=C LC_ALL=C and LANG=en_IN.UTF-8 LC_ALL=en_IN.UTF-8 produces the same warning.
Using GDB with G_DEBUG=fatal-criticals causes the process to trap at the GLib critical. The backtrace indicates that the call to g_ascii_strtod() originates from libgeocode-glib-2.so.0.
The installed packages involved are:
- gnome-clocks 50.0-2.1
- glib2 2.88.3-1.1
- geocode-glib 3.26.4-6
Steps to Reproduce
- Start a GNOME/Wayland session.
- Open a terminal.
- Run:
gnome-clocks
- Observe the terminal output.
The following warning is consistently produced:
(org.gnome.clocks:XXXXX): GLib-CRITICAL **:
g_ascii_strtod: assertion 'nptr != NULL' failed
The issue can also be reproduced with:
LANG=C LC_ALL=C gnome-clocks
and:
LANG=en_IN.UTF-8 LC_ALL=en_IN.UTF-8 gnome-clocks
Both produce the same GLib critical.
Expected Behavior
GNOME Clocks should start without producing GLib critical warnings or triggering an assertion in g_ascii_strtod().
Actual Behavior
GNOME Clocks starts but consistently produces the following GLib critical warning:
GLib-CRITICAL: g_ascii_strtod: assertion 'nptr != NULL' failed
When executed with:
G_DEBUG=fatal-criticals gnome-clocks
the GLib critical causes the application to abort with SIGABRT.
A GDB backtrace shows:
#0 ... in GLib
#1 ... in g_logv()
#2 ... in g_log()
#3 ... in g_ascii_strtod()
#4 ... in libgeocode-glib-2.so.0
#5 ... in libgeocode-glib-2.so.0
The warning therefore appears to originate from code in the geocode-glib path used by GNOME Clocks.
Logs / Error Messages
https://paste.cachyos.org/p/3ecc67c.log
Additional Context
Installed package versions:
gnome-clocks 50.0-2.1
glib2 2.88.3-1.1
geocode-glib 3.26.4-6
libgeocode-glib-2.so.0 is provided by the installed geocode-glib package:
/usr/lib/libgeocode-glib-2.so.0 is owned by geocode-glib 3.26.4-6
ldd /usr/bin/gnome-clocks confirms that GNOME Clocks loads:
libglib-2.0.so.0
libgeocode-glib-2.so.0
libjson-glib-1.0.so.0
The warning is reproducible with both C and en_IN.UTF-8 locales, so it does not appear to be specific to the user's locale.
Running:
G_DEBUG=fatal-criticals gnome-clocks
causes the application to abort after the GLib critical.
The GDB backtrace points through:
gnome-clocks
→ geocode-glib
→ g_ascii_strtod
→ GLib
No missing files were reported by the earlier package integrity check:
sudo pacman -Qk 2>&1 | grep -v '0 missing files'
This issue is being reported against the CachyOS packaged environment because the installed GNOME Clocks/geocode-glib/GLib package combination produces the reproducible warning.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 30
- Fork
- 3
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CachyOS/distribution
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
CachyOS/distribution#645 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
CachyOS/distribution#620 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
CachyOS/distribution#603 · 2 commenti · 1 reazione ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
CachyOS/distribution#602 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CachyOS/distribution#590 ·
Tutte le issue di CachyOS/distribution
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
要トリアージ
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26709 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
kashsuks/Pinel#172 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug verified
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
omacom/omarchy#20083 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno