GNU bug report logs -
#48711
Crashes in lisp_string_width
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Fri, 28 May 2021 06:40:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 48711 <at> debbugs.gnu.org (full text, mbox):
> From: Juri Linkov <juri <at> linkov.net>
> Date: Fri, 28 May 2021 09:37:49 +0300
>
> Yesterday's changes in lisp_string_width cause crashes:
>
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> composition_gstring_width (gstring=<optimized out>, from=1, from <at> entry=0, to=12, metrics=metrics <at> entry=0x0) at composite.c:777
> 777 if (NILP (LGLYPH_ADJUSTMENT (*glyph)))
> (gdb) bt
> #0 composition_gstring_width (gstring=<optimized out>, from=1, from <at> entry=0, to=12, metrics=metrics <at> entry=0x0) at composite.c:777
> #1 0x0000555555642ff7 in lisp_string_width (string=string <at> entry=XIL(0x555557825e54), from=from <at> entry=0, to=to <at> entry=1, precision=precision <at> entry=-1, nchars=nchars <at> entry=0x7fffffff4850, nbytes=nbytes <at> entry=0x7fffffff4858) at lisp.h:1644
> #2 0x000055555570c46e in styled_format (nargs=<optimized out>, args=<optimized out>, message=<optimized out>) at editfns.c:3392
> #3 0x0000555555716690 in Ffuncall (nargs=4, args=args <at> entry=0x7fffffffa060) at lisp.h:2093
Thanks, but I need a recipe to reproduce this, and/or at least some
idea about which variables cause the problem. The backtrace you show
is from an optimized build where the values of the relevant variables
are all "optimized out". That doesn't give me much to work with, and
there are no other experts on composite.c on board to help. So I need
all the help you can provide to fix this.
TIA
This bug report was last modified 3 years and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.