[Bug]: GNOME Clocks triggers GLib critical: g_ascii_strtod assertion 'nptr != NULL' failed

Aperta
#586 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c
Ambito
desktop

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

bug
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
  1. Start a GNOME/Wayland session.
  2. Open a terminal.
  3. Run:
gnome-clocks
  1. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/distribution

Tutte le issue di CachyOS/distribution

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.