From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: 49066@debbugs.gnu.org, larsi@gnus.org, mvsfrasson@gmail.com
Subject: bug#49066: 26.3; Segmentation fault on specific utf8 string
Date: Thu, 17 Jun 2021 11:13:17 +0300 [thread overview]
Message-ID: <831r9029k2.fsf@gnu.org> (raw)
In-Reply-To: <87czsl543c.fsf@gmail.com> (message from Robert Pluim on Thu, 17 Jun 2021 09:43:03 +0200)
> From: Robert Pluim <rpluim@gmail.com>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, 49066@debbugs.gnu.org,
> mvsfrasson@gmail.com
> Date: Thu, 17 Jun 2021 09:43:03 +0200
>
> This is from an optimized build of emacs-26.1. I can redo it with a
> '-g3 -O0' if you want.
That'd help.
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> ftfont_shape_by_flt (matrix=<optimized out>, otf=<optimized out>, ft_face=<optimized out>, font=<optimized out>, lgstring=...)
> at ftfont.c:2573
> 2573 g->g.to = LGLYPH_TO (LGSTRING_GLYPH (lgstring, g->g.to));
So, is 'g' a NULL pointer or something? Or is 'lgstring' faulty in
some way? IOW, what is the immediate reason for the segfault?
> (gdb) bt
> #0 ftfont_shape_by_fltPython Exception <class 'gdb.error'> value has been optimized out:
What's the story with these Python exceptions? Looks like some
problem in our .gdbinit?
> (matrix=<optimized out>, otf=<optimized out>, ft_face=<optimized out>, font=<optimized out>, lgstring=)
> at ftfont.c:2573
> #1 ftfont_shapePython Exception <class 'gdb.error'> value has been optimized out:
> (lgstring=, lgstring@entry=XIL(0xaa2755)) at ftfont.c:2615
> #2 0x00000000005d97f5 in xftfont_shape (lgstring=XIL(0xaa2755)) at xftfont.c:670
> #3 0x000000000057fc2a in Ffont_shape_gstringPython Exception <class 'gdb.error'> value has been optimized out:
> (gstring=) at font.c:4427
> #4 0x000000000056fede in funcall_subr (subr=0x97fac0 <Sfont_shape_gstring>, numargs=numargs@entry=1, args=args@entry=0x7fffffff59a0)
> at eval.c:2844
> #5 0x000000000056ecff in Ffuncall (nargs=<optimized out>, args=args@entry=0x7fffffff5998) at lisp.h:600
The backtrace stops too soon. Can you show more? I'd like at the
very least to see which sequence of characters causes the trouble.
From the above, I can only glean that we were performing a character
composition.
It could be some problem with the shaping engine: I guess versions
after Emacs 26 are built with HarfBuzz, not m17n-flt? If you forcibly
use m17n-flt in a later Emacs, does it still not crash?
Thanks.
next prev parent reply other threads:[~2021-06-17 8:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-16 21:07 bug#49066: 26.3; Segmentation fault on specific utf8 string Miguel V. S. Frasson
2021-06-16 21:12 ` Lars Ingebrigtsen
2021-06-17 6:43 ` Eli Zaretskii
2021-06-17 7:43 ` Robert Pluim
2021-06-17 8:13 ` Eli Zaretskii [this message]
2021-06-17 13:07 ` Robert Pluim
2021-06-17 13:59 ` Eli Zaretskii
2021-06-17 15:04 ` Eli Zaretskii
2021-06-27 2:29 ` handa
2021-06-27 6:20 ` Eli Zaretskii
2021-06-27 18:02 ` Paul Eggert
2021-06-27 19:15 ` Eli Zaretskii
2021-06-28 10:56 ` Robert Pluim
2021-06-28 12:05 ` Eli Zaretskii
2021-07-03 2:05 ` handa
2021-07-05 9:28 ` Robert Pluim
2021-07-20 12:23 ` Lars Ingebrigtsen
2021-06-16 21:22 ` bug#49066: file foo Miguel V. S. Frasson
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=831r9029k2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=49066@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=mvsfrasson@gmail.com \
--cc=rpluim@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.