all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Kazu Yamamoto" <kazu@iij.ad.jp> (山本和彦)
Cc: emacs-devel@gnu.org
Subject: Re: EXC_BAD_ACCESS on Mac
Date: Tue, 18 Jun 2013 05:48:51 +0300	[thread overview]
Message-ID: <83li68rv58.fsf@gnu.org> (raw)
In-Reply-To: <20130618.044405.1130378281292486125.kazu@iij.ad.jp>

> Date: Tue, 18 Jun 2013 04:44:05 +0900 (JST)
> Cc: emacs-devel@gnu.org
> From: Kazu Yamamoto (山本和彦)
>  <kazu@iij.ad.jp>
> 
> >   #1  0x000000010001b44d in fill_glyph_string (s=0x10c408758, face_id=1606399872, start=1606399888, end=1606399828, overlaps=677) at xdisp.c:22766
> >   #2  0x000000010001bded in draw_glyphs (w=0x10c408758, x=8, row=0x7fff5fbfb790, area=1606399828, start=677, end=677, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:23384
> > 
> > So please look around and see what is going on in this glyph string.
> 
> expose_area has:
> 
>       if (last > first)
>         draw_glyphs (w, first_x - start_x, row, area,
>                      first - row->glyphs[area], last - row->glyphs[area],
>                      DRAW_NORMAL_TEXT, 0);
>     }
> 
> last is greater than first.

But in your backtrace, draw_glyphs was not called from here, it was
called from here:

  if (area == TEXT_AREA && row->fill_line_p)
    /* If row extends face to end of line write the whole line.  */
    draw_glyphs (w, 0, row, area,        <<<<<<<<<<<<< line 28166
		 0, row->used[area],
		 DRAW_NORMAL_TEXT, 0);

Here's the backtrace again:

  (gdb) info stack
  #0  0x000000010001b317 in get_glyph_face_and_encoding (f=0x10c408758, glyph=0x5bfe, char2b=0x7fff5fbfb790, two_byte_p=0x7fff5fbfb754) at xdisp.c:22544
  #1  0x000000010001b44d in fill_glyph_string (s=0x10c408758, face_id=1606399872, start=1606399888, end=1606399828, overlaps=677) at xdisp.c:22766
  #2  0x000000010001bded in draw_glyphs (w=0x10c408758, x=8, row=0x7fff5fbfb790, area=1606399828, start=677, end=677, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:23384
  #3  0x00000001000205fd in expose_area (w=0x10c408c68, row=0x2a5, r=0x7fff5fbfbbc8, area=1606399828) at xdisp.c:28166
  #4  0x0000000100020775 in expose_line (w=0x10c408c68, row=0x1180f9f00, r=0x7fff5fbfbbc8) at xdisp.c:28224

So either the backtrace lies to us, or draw_glyphs is NOT called with
START and END equal.



      parent reply	other threads:[~2013-06-18  2:48 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-17  3:36 EXC_BAD_ACCESS on Mac Kazu Yamamoto
2013-06-17 15:03 ` Eli Zaretskii
2013-06-17 18:16   ` Kazu Yamamoto
2013-06-17 18:43     ` Eli Zaretskii
2013-06-17 19:37       ` Kazu Yamamoto
2013-06-17 19:48         ` Eli Zaretskii
2013-06-17 22:17           ` Kazu Yamamoto
2013-06-17 19:44       ` Kazu Yamamoto
2013-06-17 22:42         ` Paul Eggert
2013-06-18  0:29           ` Kazu Yamamoto
2013-06-18  2:27             ` Kazu Yamamoto
2013-06-18  2:45               ` Eli Zaretskii
2013-06-18  2:50                 ` Kazu Yamamoto
2013-06-24 21:16                   ` Jan Djärv
2013-06-25  1:30                     ` Kazu Yamamoto
2013-06-18 17:20               ` Eli Zaretskii
2013-06-18 21:40                 ` Kazu Yamamoto
2013-06-19  0:46                   ` Show all lines in marked buffers matching a regexp (with patch) Matthias Meulien
2013-06-19 21:37                     ` Juri Linkov
2013-06-20  7:30                     ` bug#14673: Fwd: " Matthias Meulien
2013-06-20 23:10                       ` Juri Linkov
2013-07-03 23:05                       ` Juri Linkov
2013-06-20  1:29                   ` EXC_BAD_ACCESS on Mac Kazu Yamamoto
2013-06-25  2:12                     ` Kazu Yamamoto
2013-06-25  4:25                       ` Kazu Yamamoto
2013-06-25 14:48                         ` Eli Zaretskii
2013-07-03  4:36                           ` Kazu Yamamoto
2013-07-03 13:27                             ` Eli Zaretskii
2013-07-03 14:19                               ` Kazu Yamamoto
2013-07-03 16:36                                 ` Eli Zaretskii
2013-07-04  1:04                                   ` Kazu Yamamoto
2013-07-04 16:06                                     ` Eli Zaretskii
2013-06-18  2:45           ` Eli Zaretskii
2013-06-18  2:48         ` Eli Zaretskii [this message]

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=83li68rv58.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=kazu@iij.ad.jp \
    /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.