unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Crash in bidi.c in Haiku port
       [not found] <87wnn9z3zt.fsf.ref@yahoo.com>
@ 2021-09-22  3:24 ` Po Lu
  2021-09-22  6:21   ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Po Lu @ 2021-09-22  3:24 UTC (permalink / raw)
  To: emacs-devel


Recently I experienced this abort twice in my Haiku port when
redisplaying a compilation buffer.

The abort happens at line 3363 of bidi.c, in this snippet of
bidi_find_other_level_edge:

      /* If we are at end of level, its edges must be cached.  */
      if (end_flag)
	emacs_abort ();

I can't seem to reproduce it reliably at all, and I haven't managed to
reproduce it in upstream Emacs, but if someone knows what might be wrong
here it would be appreciated.

Unfortunately, I haven't been able to save a core dump, as GDB
generate-core-file doesn't work on Haiku.

If you need any more information to debug this, let me know.  TIA.



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

* Re: Crash in bidi.c in Haiku port
  2021-09-22  3:24 ` Crash in bidi.c in Haiku port Po Lu
@ 2021-09-22  6:21   ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2021-09-22  6:21 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Date: Wed, 22 Sep 2021 11:24:54 +0800
> 
> Recently I experienced this abort twice in my Haiku port when
> redisplaying a compilation buffer.
> 
> The abort happens at line 3363 of bidi.c, in this snippet of
> bidi_find_other_level_edge:
> 
>       /* If we are at end of level, its edges must be cached.  */
>       if (end_flag)
> 	emacs_abort ();

Very hard to say without more details.  Like whether this was the
first character of a buffer/string for which the function
bidi_move_to_visually_next was called, what kind of object (buffer,
string, composition, something else) we were iterating, what is the
contents of the bidi_cache, etc.

A reproducer is best, of course.



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

end of thread, other threads:[~2021-09-22  6:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87wnn9z3zt.fsf.ref@yahoo.com>
2021-09-22  3:24 ` Crash in bidi.c in Haiku port Po Lu
2021-09-22  6:21   ` Eli Zaretskii

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).