Subject: bug#15575: 24.3.50; New tty menus crash Emacs

From: Eli Zaretskii <[email-masked]>
Date: Thu, 10 Oct 2013 19:15:30 +0300

> From: Jan Djärv <[email-masked]>
> Date: Thu, 10 Oct 2013 10:06:51 +0200
> 
> 9 okt 2013 kl. 21:00 skrev Eli Zaretskii <[email-masked]>:
> > 
> > Can you try the patch below?
> 
> Makes no difference on OSX or Fedora 19, still crashes in the same place.

How do you mean "the same place"?  That place should no longer exist
after applying the patch.

If you mean the line marked below:

  /* Count how many glyphs to copy and copy the glyphs.  */
  for (area = LEFT_MARGIN_AREA; area < LAST_AREA; ++area)
    for (i = 0; i < from->used[area]; i++)
      to->glyphs[area][i] = from->glyphs[area][i];  <<<<<<<<<<<<<<

then please tell what is the value of 'area' and of 'i' at the point
of the crash.

Btw, did you compile with --enable-checking, i.e. were the 3 eassert
statements at the beginning of deep_copy_glyph_row compiled into the
program?