unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 7044@debbugs.gnu.org
Subject: bug#7044: 24.0.50; Emacs crashes after calling ediff-regions-linewise
Date: Sun, 26 Sep 2010 01:41:39 +0200	[thread overview]
Message-ID: <AANLkTik2JeBp-_-y7tvV8vKJuGqiBUhKWz7ChVOUxrJE@mail.gmail.com> (raw)
In-Reply-To: <87lj71r415.fsf@escher.home>

> 1. emacs -Q
> 2. M-x ediff-regions-linewise, type RET twice to use *scratch* for both
>   Ediff buffers (it doesn't matter which buffers are used).
> 3. Any attempt to mark a region, indeed it seems any further input at
>   all, makes Emacs abort.  This is completely reproducible. Full
>   backtrace attached.

On keyboard.c:command_loop, line 1789,

  current_buffer->mark_active => t
  Vtransient_mark_mode => t
  Vdeactivate_mark => nil
  Vselect_active_regions => t

When line 1814 is reached, current_buffer->mark contains a marker that
points to no buffer

  (gdb) p current_buffer->mark
  $8 = 48498715
  (gdb) pr
  #<marker in no buffer>

so

  Fmarker_position (current_buffer->mark)

returns nil, and so beg is assigned XINT (nil), which is a bug.

Now, shouldn't current_buffer->mark_active be nil if the mark points nowhere?

    Juanma





  reply	other threads:[~2010-09-25 23:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-16 17:28 bug#7044: 24.0.50; Emacs crashes after calling ediff-regions-linewise Stephen Berman
2010-09-25 23:41 ` Juanma Barranquero [this message]
2010-10-03  1:00   ` Chong Yidong

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=AANLkTik2JeBp-_-y7tvV8vKJuGqiBUhKWz7ChVOUxrJE@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=7044@debbugs.gnu.org \
    --cc=stephen.berman@gmx.net \
    /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).