all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: transpose-regions
Date: Thu, 22 Mar 2007 21:28:07 -0400	[thread overview]
Message-ID: <87zm64kau0.fsf@stupidchicken.com> (raw)
In-Reply-To: <46026277.7060305@gmx.at> (martin rudalics's message of "Thu\, 22 Mar 2007 12\:03\:19 +0100")

I managed to reproduce the problem.  My backtrace is a little
different, but it makes sense; probably Martin's debugger is confused,
maybe due to being out of sync with his sources.

Upon setting a breakpoint at wrong_type_argument, I obtained the
following backtrace:

(gdb) bt
#0  wrong_type_argument (predicate=138004297, value=142379640) at data.c:118
#1  0x081bb353 in Flength (sequence=142379640) at fns.c:180
#2  0x081bc272 in concat (nargs=1, args=0xbfec7350, target_type=Lisp_Cons, 
    last_special=0) at fns.c:610
#3  0x081bc0ab in Fcopy_sequence (arg=142379653) at fns.c:539
#4  0x08208837 in copy_properties (source=0x87cc888, target=0x87cc7e0)
    at intervals.c:110
#5  0x0820b9cf in graft_intervals_into_buffer (source=0x87cc888, 
    position=13049, length=45, buffer=0x8398540, inherit=0) at intervals.c:1846
....
(gdb) f 2
#2  0x081bc272 in concat (nargs=1, args=0xbfec7350, target_type=Lisp_Cons, 
    last_special=0) at fns.c:610
610           len = XFASTINT (Flength (this));
(gdb) p this
$1 = 142379653
(gdb) xtype
Lisp_Cons
(gdb) xcons
$2 = (struct Lisp_Cons *) 0x87c8a80
{
  car = 0x8234763, 
  u = {
    cdr = 0x87c8a78, 
    chain = 0x87c8a78
  }
}
(gdb) p 0x8234763
$3 = 136529763
(gdb) xtype
Lisp_String
(gdb) xstring
$4 = (struct Lisp_String *) 0x8234760
"DEAD"
(gdb) p Vdead
$5 = 136529763

The problem seems to be that a cons cell that has already been
garbage-collected is being passed to Fcopy_sequence during
copy_properties(), in intervals.c:106.  Where did this cons cell come
from?

  target->plist = Fcopy_sequence (source->plist);

Is the garbage collector somehow failing to account for cons cells
assigned to interval plists?

  parent reply	other threads:[~2007-03-23  1:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22 11:03 transpose-regions martin rudalics
2007-03-22 14:49 ` transpose-regions Kim F. Storm
2007-03-22 20:13   ` transpose-regions Nick Roberts
2007-03-22 21:30     ` transpose-regions martin rudalics
2007-03-22 21:36       ` transpose-regions David Kastrup
2007-03-22 21:59         ` transpose-regions martin rudalics
2007-03-23 13:52         ` transpose-regions Eli Zaretskii
2007-03-22 15:04 ` transpose-regions Chong Yidong
2007-03-22 15:26   ` transpose-regions martin rudalics
2007-03-22 15:59     ` transpose-regions Chong Yidong
2007-03-22 17:07       ` transpose-regions martin rudalics
2007-03-22 18:06         ` transpose-regions Chong Yidong
2007-03-22 19:19           ` transpose-regions martin rudalics
2007-03-22 20:24             ` transpose-regions Chong Yidong
2007-03-22 21:32               ` transpose-regions martin rudalics
2007-03-22 22:13               ` transpose-regions martin rudalics
2007-03-22 21:51           ` transpose-regions Andreas Schwab
2007-03-23 13:46           ` transpose-regions Eli Zaretskii
2007-03-23  1:28 ` Chong Yidong [this message]
2007-03-23  9:05   ` transpose-regions martin rudalics
2007-03-23 10:55   ` transpose-regions Andreas Schwab
2007-03-23 11:50     ` transpose-regions Kim F. Storm
2007-03-23 12:08       ` transpose-regions martin rudalics
2007-03-23 14:09       ` transpose-regions Chong Yidong
2007-03-23 15:36         ` transpose-regions Kim F. Storm
2007-03-23 16:42           ` transpose-regions Stefan Monnier
2007-03-23 17:34             ` transpose-regions Chong Yidong
2007-03-23 18:17               ` transpose-regions martin rudalics
2007-03-23 22:32             ` transpose-regions Richard Stallman
2007-03-23 22:50               ` transpose-regions Stefan Monnier
2007-03-28  4:56                 ` transpose-regions Richard Stallman
2007-03-24 20:24             ` transpose-regions Karl Fogel
2007-03-23 18:00     ` transpose-regions Richard Stallman
2007-03-23 22:39       ` transpose-regions Stefan Monnier
2007-03-24 15:51       ` transpose-regions Chong Yidong
2007-03-25 17:28         ` transpose-regions Richard Stallman
2007-03-23 15:39   ` transpose-regions 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

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

  git send-email \
    --in-reply-to=87zm64kau0.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.