unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: monnier@IRO.UMontreal.CA
Cc: 33345@debbugs.gnu.org
Subject: bug#33345: 27.0.50; Abort in bidi_cache_iterator_state
Date: Tue, 13 Nov 2018 20:05:34 +0200	[thread overview]
Message-ID: <83in1097kh.fsf@gnu.org> (raw)
In-Reply-To: <83tvkm89sw.fsf@gnu.org> (message from Eli Zaretskii on Mon, 12 Nov 2018 19:50:23 +0200)

> Date: Mon, 12 Nov 2018 19:50:23 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 33345@debbugs.gnu.org
> 
> And one more question: does the system/configuration where you see the
> crash differ from the others in the font used to display the offending
> text?  The shaping of Arabic could depend on the font being used, due
> to differences in OTF features supported by the fonts.

I've thought about this some more, and I really don't understand how
this could happen.  The offending call to bidi_cache_iterator_state is
from here:

  /* Prepare the sentinel iterator state, and cache it.  When we bump
     into it, scanning backwards, we'll know that the last non-base
     level is exhausted.  */
  if (bidi_cache_idx == bidi_cache_start)
    {
      bidi_copy_it (&sentinel, bidi_it);
      if (bidi_it->first_elt)
	{
	  sentinel.charpos--;	/* cached charpos needs to be monotonic */
	  sentinel.bytepos--;
	  sentinel.ch = '\n';	/* doesn't matter, but why not? */
	  sentinel.ch_len = 1;
	  sentinel.nchars = 1;
	}
      bidi_cache_iterator_state (&sentinel, 1, 0);  <<<<<<<<<<<<<<<<
    }

But this means that the cache is empty, and we can never scan back
(scan_dir = -1) when the cache is empty.  So something very strange
happened there.

Instead of me asking you gobs of questions, perhaps you could give me
an ssh login on that system, and arrange for a GDB session which
already hit the call to emacs_abort to be in a state where I can
switch to it after logging in (with 'screen' or 'tmux', I think).
Then I could look around and see if I find out some clues.

Thanks.





  reply	other threads:[~2018-11-13 18:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 15:03 bug#33345: 27.0.50; Abort in bidi_cache_iterator_state Stefan Monnier
2018-11-11 16:03 ` Eli Zaretskii
2018-11-12 13:43   ` Stefan Monnier
2018-11-12 16:08     ` Eli Zaretskii
2018-11-12 17:50       ` Eli Zaretskii
2018-11-13 18:05         ` Eli Zaretskii [this message]
2018-11-13 18:28           ` Stefan Monnier
2020-11-25  9:53             ` Stefan Kangas
2020-11-25 14:26               ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83in1097kh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=33345@debbugs.gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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 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).