GNU bug report logs - #35259
27.0.50; Segmentation fault (xstrdup gdk_monitor_get_model)

Previous Next

Package: emacs;

Reported by: Jhair Tocancipa Triana <jhair.tocancipa <at> gmail.com>

Date: Sat, 13 Apr 2019 20:25:02 UTC

Severity: normal

Merged with 35204

Found in version 27.0.50

Done: Alex Gramiak <agrambot <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 35259 <at> debbugs.gnu.org (full text, mbox):

From: Alex Gramiak <agrambot <at> gmail.com>
To: Jhair Tocancipa Triana <jhair.tocancipa <at> gmail.com>
Cc: 35259 <at> debbugs.gnu.org
Subject: Re: bug#35259: 27.0.50;
 Segmentation fault (xstrdup gdk_monitor_get_model)
Date: Sat, 13 Apr 2019 16:16:51 -0600
Jhair Tocancipa Triana <jhair.tocancipa <at> 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.
>
> Please find attached the bt full gdb output.

I just pushed commit 7308c2edf which should fix this. Can you confirm?
If you can't easily reproduce it, could you see if it crashed before
when just calling M-: (x-display-monitor-attributes-list)?

Sorry for the trouble.




This bug report was last modified 6 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.