On Wed, Jul 14, 2010 at 11:32 AM, Eli Zaretskii wrote: > My Emacs is not compiled with -DENABLE_CHECKING, so the assert > triggered here is a no-op for me, and Emacs works for me just fine > with this recipe. I have a slight suspicion that this relates to OTF/XFT font handling. You build on Windows right? > > I will build with -DENABLE_CHECKING and try again, but until I > do, could you please show the output of the`pit' command in frame #1? > > Also, in the same frame #1, what do these commands show: > >  (gdb) pgrowx it->glyph_row >  (gdb) prowlims it->glyph_row >  (gdb) pmtxrows it->w->desired_matrix > > Finally, does the problem persist if you turn off > auto-composition-mode before pasting the text? As expected, turning off auto-composition-mode prevents the crash. See my lisp/language/hebrew.el attached. > (gdb) up #1 0x0809cd6b in set_iterator_to_next (it=0xbfffdee4, reseat_p=1) at xdisp.c:6254 6254 xassert (IT_BYTEPOS (*it) == CHAR_TO_BYTE (IT_CHARPOS (*it))); (gdb) pit cur=151[277] pos=150[276] start=128[235] end=151 stop=151 face=16 MB ch='@' vpos=6 hpos=17 y=102 lvy=510 x=114 vx=0-640 w=8 a+d=13+4=17 max=13+4=17 (gdb) pgrowx it->glyph_row TEXT: 17 glyphs 0 0: COMP[47 (0..1)] pos=128 w=9 a+d=13+4 face=16 MB 1 9: CHAR[0x5e7] pos=130 blev=0,btyp=UNDEF w=9 a+d=13+4 face=16 MB 2 18: CHAR[ ] pos=131 blev=0,btyp=UNDEF w=8 a+d=13+4 MB 3 26: COMP[49 (0..1)] pos=132 w=9 a+d=13+4 face=16 MB 4 35: CHAR[0x5e5] pos=134 blev=0,btyp=UNDEF w=7 a+d=13+4 face=16 MB 5 42: CHAR[ ] pos=135 blev=0,btyp=UNDEF w=8 a+d=13+4 MB 6 50: COMP[51 (0..1)] pos=136 w=3 a+d=13+4 face=16 MB 7 53: COMP[53 (0..1)] pos=138 w=8 a+d=13+4 face=16 MB 8 61: CHAR[0x5d9] pos=140 blev=0,btyp=UNDEF w=3 a+d=13+4 face=16 MB 9 64: CHAR[ ] pos=141 blev=0,btyp=UNDEF w=8 a+d=13+4 MB 10 72: COMP[55 (0..1)] pos=142 w=6 a+d=13+4 face=16 MB 11 78: COMP[57 (0..1)] pos=144 w=9 a+d=13+4 face=16 MB 12 87: CHAR[0x5e2] pos=146 blev=0,btyp=UNDEF w=8 a+d=13+4 face=16 MB 13 95: COMP[35 (0..0)] pos=147 w=3 a+d=13+4 face=16 MB 14 98: COMP[35 (1..1)] pos=149 w=0 a+d=13+4 face=16 MB 15 98: CHAR[^] pos=150 blev=0,btyp=UNDEF w=8 a+d=13+4 face=17 MB 16 106: CHAR[@] pos=150 blev=0,btyp=UNDEF w=8 a+d=13+4 face=17 MB (gdb) prowlims it->glyph_row edges=(0,0),r2l=0,cont=0,trunc=(0,0),at_zv=0 (gdb) pmtxrows it->w->desired_matrix 0: edges=(1,9),r2l=0,cont=0,trunc=(0,0),at_zv=0 1: edges=(9,31),r2l=0,cont=0,trunc=(0,0),at_zv=0 2: edges=(31,59),r2l=0,cont=0,trunc=(0,0),at_zv=0 3: edges=(59,85),r2l=0,cont=0,trunc=(0,0),at_zv=0 4: edges=(85,108),r2l=0,cont=0,trunc=(0,0),at_zv=0 5: edges=(108,128),r2l=0,cont=0,trunc=(0,0),at_zv=0 6: edges=(0,0),r2l=0,cont=0,trunc=(0,0),at_zv=0 7: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 8: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 9: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 10: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 11: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 12: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 13: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 14: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 15: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 16: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 17: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 18: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 19: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 20: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 21: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 22: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 23: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 24: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 25: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 26: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 27: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 28: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 29: edges=(149,149),r2l=0,cont=0,trunc=(0,0),at_zv=1 30: edges=(192,192),r2l=0,cont=0,trunc=(0,0),at_zv=1 31: edges=(192,192),r2l=0,cont=0,trunc=(0,0),at_zv=1 32: edges=(192,192),r2l=0,cont=0,trunc=(0,0),at_zv=1