unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9496: 24.0.50; Segfault on TAB-only composition
@ 2011-09-13 20:22 Johan Bockgård
  2011-09-14  5:33 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Johan Bockgård @ 2011-09-13 20:22 UTC (permalink / raw)
  To: 9496


(insert (compose-string "\t"))

Program received signal SIGSEGV, Segmentation fault.
0x00000000004d45d4 in x_set_glyph_string_gc (s=0x7fffffffae80) at xterm.c:1061
1061      PREPARE_FACE_FOR_DISPLAY (s->f, s->face);
(gdb) bt
#0  0x00000000004d45d4 in x_set_glyph_string_gc (s=0x7fffffffae80)
    at xterm.c:1061
#1  x_draw_glyph_string (s=0x7fffffffae80) at xterm.c:2683

This problem is not new, but due to other changes it now makes
`describe-char' (C-u C-x =) crash when executed on a tab character.


2011-09-13  Johan Bockgård  <bojohan@gnu.org>

	* xdisp.c (fill_composite_glyph_string): Always set s->face, to
	avoid a crash.


=== modified file 'src/xdisp.c'
--- src/xdisp.c	2011-09-09 01:06:52 +0000
+++ src/xdisp.c	2011-09-11 15:03:56 +0000
@@ -21745,6 +21749,12 @@ fill_composite_glyph_string (struct glyp
     }
   s->cmp_to = i;
 
+  if (s->face == NULL)
+    {
+      s->face = base_face->ascii_face;
+      s->font = s->face->font;
+    }
+
   /* All glyph strings for the same composition has the same width,
      i.e. the width set for the first component of the composition.  */
   s->width = s->first_glyph->pixel_width;






^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-02-05 16:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 20:22 bug#9496: 24.0.50; Segfault on TAB-only composition Johan Bockgård
2011-09-14  5:33 ` Eli Zaretskii
2011-09-14 12:57   ` Kenichi Handa
2011-09-14 13:07     ` Eli Zaretskii
2011-09-15  0:28       ` Kenichi Handa
2011-09-15  0:47         ` Stefan Monnier
2011-09-15  4:10           ` Kenichi Handa
2011-11-11  7:15 ` Kenichi Handa
2012-02-03 19:28 ` Paul Eggert
2012-02-03 21:22   ` Eli Zaretskii
2012-02-03 22:07     ` Paul Eggert
2012-02-04  6:58       ` Eli Zaretskii
2012-02-04  7:18         ` Paul Eggert
2012-02-04  8:14           ` Eli Zaretskii
2012-02-04 23:43             ` Paul Eggert
2012-02-05 16:36               ` Eli Zaretskii
2012-02-05 16:39                 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).