all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jhair Tocancipa Triana <jhair.tocancipa@gmail.com>
To: Alex Gramiak <agrambot@gmail.com>
Cc: 35259@debbugs.gnu.org,
	Jhair Tocancipa Triana <jhair.tocancipa@gmail.com>
Subject: bug#35259: 27.0.50; Segmentation fault (xstrdup gdk_monitor_get_model)
Date: Sun, 14 Apr 2019 11:07:21 +0200	[thread overview]
Message-ID: <874l712bw6.fsf@gmail.com> (raw)
In-Reply-To: <87h8b1tuss.fsf@gmail.com> (Alex Gramiak's message of "Sat, 13 Apr 2019 16:16:51 -0600")

As suggested, before commit 7308c2edf evaluating
x-display-monitor-attributes-list triggers the segfault:

,----
| $ ./emacs -Q --eval "(x-display-monitor-attributes-list)"
| ...
| /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f880cf3509b]
| ./emacs(+0x3f13a)[0x561dbeb0813a]
| Segmentation fault (core dumped)
`----

With commit 7308c2edf the issue was resolved.

Thanks!

Alex Gramiak <agrambot@gmail.com> writes:

> 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.
>>
>> 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.
>
>
>
>

-- 
Key fingerprint = 5917 806E 3A2F 659B BE6A  8DEE 04B5 52D9 BC07 29A4





  reply	other threads:[~2019-04-14  9:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-13 20:24 bug#35259: 27.0.50; Segmentation fault (xstrdup gdk_monitor_get_model) Jhair Tocancipa Triana
2019-04-13 22:16 ` Alex Gramiak
2019-04-14  9:07   ` Jhair Tocancipa Triana [this message]
2019-04-14 23:35     ` Alex Gramiak
2019-04-13 22:26 ` Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874l712bw6.fsf@gmail.com \
    --to=jhair.tocancipa@gmail.com \
    --cc=35259@debbugs.gnu.org \
    --cc=agrambot@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.