unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 5973@debbugs.gnu.org
Subject: bug#5973: Crash in get_next_display_element
Date: Tue, 20 Apr 2010 13:21:21 +0300	[thread overview]
Message-ID: <83bpde5sri.fsf@gnu.org> (raw)
In-Reply-To: <t2zf7ccd24b1004191546x2281232bw1026551415ec8767@mail.gmail.com>

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Tue, 20 Apr 2010 00:46:32 +0200
> Cc: David Reitter <david.reitter@gmail.com>, 5973@debbugs.gnu.org
> 
> #1  0x012be7c9 in temp_set_point_both (buffer=0x34b6e00, charpos=32,
> bytepos=33) at intervals.c:1944

This frame calls `abort' here:

  /* In a single-byte buffer, the two positions must be equal.  */
  if (BUF_ZV (buffer) == BUF_ZV_BYTE (buffer)
      && charpos != bytepos)
    abort ();

It does that on the assumption that if the character and byte
positions of the last character in the buffer's accessible area
coincide, all the character and byte positions before that must also
coincide.

So please show what the following GDB commands print in frame #1:

  (gdb) p buffer->size
  (gdb) p *buffer->text->beg@34
  (gdb) p buffer->text->zv
  (gdb) p buffer->text->zv_byte
  (gdb) p buffer->text->z
  (gdb) p buffer->text->z_byte
  (gdb) p buffer->text->pt
  (gdb) p buffer->text->pt_byte
  (gdb) p buffer->name
  (gdb) xstring

TIA






  parent reply	other threads:[~2010-04-20 10:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 16:08 bug#5973: Crash in get_next_display_element David Reitter
     [not found] ` <handler.5973.B.12716933351499.ack@debbugs.gnu.org>
2010-04-19 16:46   ` bug#5973: Acknowledgement (Crash in get_next_display_element) David Reitter
2010-04-19 17:31     ` Eli Zaretskii
2010-04-19 17:23 ` bug#5973: Crash in get_next_display_element Eli Zaretskii
2010-04-19 17:40   ` David Reitter
2010-04-19 18:26     ` Eli Zaretskii
2010-04-19 18:39       ` David Reitter
2010-04-19 18:43         ` Eli Zaretskii
2010-04-19 22:46       ` Juanma Barranquero
2010-04-20  8:23         ` Eli Zaretskii
2010-04-20  9:19           ` Juanma Barranquero
2010-04-20  9:56             ` Eli Zaretskii
2010-04-20 10:27               ` Juanma Barranquero
2010-04-20 12:31                 ` Eli Zaretskii
2010-04-20 13:36                   ` Juanma Barranquero
2010-04-20 13:56                   ` Juanma Barranquero
2010-04-20 10:21         ` Eli Zaretskii [this message]
2010-04-20 10:33           ` Juanma Barranquero
2010-04-20 12:23             ` Eli Zaretskii

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=83bpde5sri.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=5973@debbugs.gnu.org \
    --cc=lekktu@gmail.com \
    /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).