all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: transpose-regions
Date: Thu, 22 Mar 2007 20:19:21 +0100	[thread overview]
Message-ID: <4602D6B9.1000503@gmx.at> (raw)
In-Reply-To: <87y7lp886g.fsf@stupidchicken.com>

 >>#4  0x0107e521 in Flength (sequence=35193781) at fns.c:185
 >>(gdb) p sequence
 >>$1 = 35193768
 >>(gdb) xtype
 >>Lisp_Int
 >>(gdb) xsymbol
 >>$2 = (struct Lisp_Symbol *) 0x21903a8
 >>0
 >
 >
 > Could you double check this?
 >
 > Flength was called with sequence=35193781; how did it mutate into
 > 35193768?  The code in Flength doesn't change the value of sequence
 > (unless it is a cons cell, in which case it wouldn't end up in the
 > "else" code path.)  The only way this could happen is if something
 > clobbers the stack.... maybe a compiler bug?

OK, here's another one.  At least they always differ by the same value.

I'm also puzzled by the

#3  0x01004620 in pure_write_error () at data.c:121

which should be wrong_type_argument (predicate, value).  I could send
you the Elisp code I use to trigger this.  You'd have to play around
with it a bit, though.

(gdb) break eval.c:1620
Breakpoint 3 at 0x100cb04: file eval.c, line 1620.
(gdb) run
Starting program: c:/Programme/Emacs/bin/emacs.exe -geometry 80x40+0+0
(gdb) cont
Continuing.

Breakpoint 3, Fsignal (error_symbol=23881689, data=34333301) at eval.c:1620
(gdb)
Continuing.

Breakpoint 3, Fsignal (error_symbol=23881689, data=34957365) at eval.c:1620
(gdb)
Continuing.

Breakpoint 3, Fsignal (error_symbol=23761593, data=33773717) at eval.c:1620
(gdb) backtrace
#0  Fsignal (error_symbol=23761593, data=33773717) at eval.c:1620
#1  0x0100cd68 in xsignal (error_symbol=23761593, data=33773717) at eval.c:1722
#2  0x0100cfb7 in xsignal2 () at eval.c:1746
#3  0x01004620 in pure_write_error () at data.c:121
#4  0x0107e521 in Flength (sequence=35190653) at fns.c:185
#5  0x0107f1e0 in concat (nargs=1, args=0xd2ef10, target_type=Lisp_Cons, last_special=0) at fns.c:608
#6  0x0107f873 in Fcopy_sequence (arg=35190653) at fns.c:537
#7  0x0111ac12 in copy_properties (source=0x2190348, target=0x20932d8) at intervals.c:106
#8  0x0111be5f in graft_intervals_into_buffer (source=0x219096c, position=4420, length=1214, buffer=0x20a1a00, inherit=0) at intervals.c:1842
#9  0x0108f6fb in Ftranspose_regions (startr1=35256, endr1=44968, startr2=44968, endr2=45072, leave_markers=23697409) at editfns.c:4214
#10 0x0100c87b in Ffuncall (nargs=5, args=0xd2f590) at eval.c:3011
#11 0x0110f83f in Fbyte_code (bytestr=33420691, vector=33684868, maxdepth=40) at bytecode.c:679
#12 0x0100bdcd in Feval (form=33258701) at eval.c:2334
#13 0x0100e1da in internal_lisp_condition_case (var=23697409, bodyform=33258701, handlers=33258189) at eval.c:1426
#14 0x0110ffe0 in Fbyte_code (bytestr=33420707, vector=33684740, maxdepth=24) at bytecode.c:869
#15 0x0100c274 in funcall_lambda (fun=32895460, nargs=0, arg_vector=0xd2f924) at eval.c:3184
#16 0x0100c6c6 in Ffuncall (nargs=1, args=0xd2f920) at eval.c:3054
#17 0x0100df03 in apply1 (fn=33610257, arg=23697409) at eval.c:2738
#18 0x0110e61c in Fcall_interactively (function=33610257, record_flag=23697409, keys=23756804) at callint.c:406
#19 0x01057506 in Fcommand_execute (cmd=33610257, record_flag=23697409, keys=23697409, special=23697409) at keyboard.c:10013
#20 0x0105e2bd in command_loop_1 () at keyboard.c:1873
#21 0x0100aa24 in internal_condition_case (bfun=0x105df60 <command_loop_1>, handlers=23761545, hfun=0x1057f40 <cmd_error>) at eval.c:1481
#22 0x01051f6e in command_loop_2 () at keyboard.c:1329
#23 0x0100a949 in internal_catch (tag=23755777, func=0x1051f40 <command_loop_2>, arg=23697409) at eval.c:1222
#24 0x01051d7e in command_loop () at keyboard.c:1308
#25 0x01051e1f in recursive_edit_1 () at keyboard.c:1006
#26 0x01051f1c in Frecursive_edit () at keyboard.c:1067
#27 0x01002a75 in main (argc=3, argv=0x19a06e0) at emacs.c:1761
#28 0x010011e7 in _end__ ()
#29 0x01001238 in mainCRTStartup ()
#30 0xbff7b9e4 in _libwinspool_a_iname ()
#31 0xbff7b896 in _libwinspool_a_iname ()
#32 0xbff7a24f in _libwinspool_a_iname ()
(gdb) up 4
#4  0x0107e521 in Flength (sequence=35190653) at fns.c:185
(gdb) p sequence
$1 = 35190640
(gdb) xtype
Lisp_Int
(gdb) up 1
#5  0x0107f1e0 in concat (nargs=1, args=0xd2ef10, target_type=Lisp_Cons, last_special=0) at fns.c:608
(gdb) p argnum
$2 = 0
(gdb) p args[0]
$3 = 35190653
(gdb) xtype args[0]
Lisp_Cons
(gdb)

  reply	other threads:[~2007-03-22 19:19 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           ` martin rudalics [this message]
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 ` transpose-regions Chong Yidong
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=4602D6B9.1000503@gmx.at \
    --to=rudalics@gmx.at \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /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.