[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35259: 27.0.50; Segmentation fault (xstrdup gdk_monitor_get_model)
From: |
Basil L. Contovounesios |
Subject: |
bug#35259: 27.0.50; Segmentation fault (xstrdup gdk_monitor_get_model) |
Date: |
Sat, 13 Apr 2019 23:26:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Jhair Tocancipa Triana <jhair.tocancipa@gmail.com> writes:
> Emacs crashes randomly, sometimes when clicking links in eww. The crash
> is not easily reproducible, nevertheless the core dump points to a
> segfault at xfns.c:
>
> a35e06bbe27 (Alexander Gramiak 2019-04-06 5033) mi->name = xstrdup
> (gdk_monitor_get_model (monitor));
>
> gkd_monitor_get_model is returning NULL in my case causing the segfault
> at xstrdup.
>
> The gkd_monitor_get_model documentation says the function may return
> NULL.
>
> https://developer.gnome.org/gdk3/stable/GdkMonitor.html#gdk-monitor-get-model
>
> Maybe we need to guard against a NULL return value.
This sounds related to and explains at least part of bug#35204.
https://debbugs.gnu.org/35204
--
Basil