Subject: bug#42677: 27.1; 'Fatal Error 11: Segmentation fault'

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 02 Aug 2020 19:26:12 +0200

dfireBird _ <[email-masked]> writes:

> Thanks for helping.
> I used a paste since it's quite long text: https://paste.rs/uZR.

This looks very much like bug#42673:

Thread 1 (Thread 0x7ffff2dbe440 (LWP 65741)):
#0  0x0000555555665c20 in best_xim_style (xim=0x0) at xfns.c:2665
#1  create_frame_xic (f=f@entry=0x55555600cbc0) at xfns.c:2665

> The call in question is at
> https://git.savannah.gnu.org/cgit/emacs.git/tree/src/xterm.c?id=9fe2bdb88a4ebd4b2286c1c2a2a2ba7411af01b6#n10316
> Since the return value isn't checked, a failure to initialize here can
> cause `dpyinfo->xim_styles` to be `NULL` which intern cause readers
> like
> https://git.savannah.gnu.org/cgit/emacs.git/tree/src/xfns.c?id=9fe2bdb88a4ebd4b2286c1c2a2a2ba7411af01b6#n2659
> to pass a `NULL` pointer to `best_xim_style` and crash.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no