GNU bug report logs - #42694
26.3; Emacs crashes when linked against newer libx11

Previous Next

Package: emacs;

Reported by: Leo Prikler <leo.prikler <at> student.tugraz.at>

Date: Mon, 3 Aug 2020 09:33:01 UTC

Severity: normal

Found in version 26.3

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo Prikler <leo.prikler <at> student.tugraz.at>
To: 42694 <at> debbugs.gnu.org
Subject: bug#42694: 26.3; Emacs crashes when linked against newer libx11
Date: Mon, 03 Aug 2020 11:31:49 +0200
[Message part 1 (text/plain, inline)]
Two days ago, a patch was sent to Guix updating libx11 to a newer
version in order to fix CVE-2020-14344.  This causes a segmentation
fault in Emacs when trying to start an X window.  After invoking GDB, I
found the offending line to be:

  /* Determine XIC style */
  xic_style = best_xim_style (FRAME_X_XIM_STYLES (f));

For some reason, FRAME_X_XIM_STYLES (f) returns NULL here and
best_xim_style fails when ARRAYELTS is called on it.  I've attached a
patch, that checks for this case.

Regards, 
Leo
[emacs-ignore-empty-xim-styles.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 294 days ago.

Previous Next


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