unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Emacs trunk crash
Date: Mon, 23 Mar 2015 21:55:31 +0100	[thread overview]
Message-ID: <CAFgFV9P2JMVqd=2qzNrreGNGnwKhLtQZbWZi1AKiTn5XGQg7tQ@mail.gmail.com> (raw)
In-Reply-To: <831tkfsp68.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 5516 bytes --]

I think I have found the real culprit behind this problem. The undo-tree
package
saves its history in a very direct form which looks like this:

"5c22c12309909a63b7377b79cf2526b92d756854"
[cl-struct-undo-tree [nil ([nil (#8=[nil nil ((19641 . 19642) (#(" " 0 1
(syntax-type string fontified nil)) . -19641) (undo-tree-id0 . -1) (19541 .
19547) (#(" " 0 1 (syntax-type string fontified nil)) . -19541)
(undo-tree-id1 . -1) (19469 . 19493) (#(" " 0 3 (syntax-type string)) .
-19469) (undo-tree-id2 . -3) (19330 . 19331) (#(" " 0 1 (syntax-type
string)) . -19330) (undo-tree-id3 . -1) (18803 . 18804) (#(" " 0 1
(syntax-type string fontified nil)) . -18803) (undo-tree-id4 . -1) (18365 .
18366) (#(" " 0 1 (syntax-type string)) . -18365) (undo-tree-id5 . -1)
(16435 . 16442) (#(" " 0 1 (syntax-type string)) . -16435) (undo-tree-id6 .
-1) (16250 . 16256) (#(" " 0 1 (syntax-type string)) . -16250)
(undo-tree-id7 . -1) (14242 . 14253) (#(" " 0 2 (syntax-type string)) .
-14242) (undo-tree-id8 . -2) (30156 . 30172) (#(" " 0 2 (syntax-type string
fontified nil)) . -30156) (undo-tree-id9 . -2) (26832 . 26864) (" " .
-26832) (undo-tree-id10 . -4) (25460 . 25468) (" " . -25460)
(undo-tree-id11 . -1) (25404 . 25412) (#(" " 0 1 (fontified nil)) . -25404)
(undo-tree-id12 . -1) (25265 . 25305) (" " . -25265) (undo-tree-id13 . -5)
(25195 . 25227) (" " . -25195) (undo-tree-id14 . -4) (25078 . 25118) (" " .
-25078) (undo-tree-id15 . -5) (25009 . 25049) (" " . -25009)
(undo-tree-id16 . -5) (24887 . 24895) (#(" " 0 1 (syntax-type string)) .
-24887) (undo-tree-id17 . -1) (24102 . 24110) (#(" " 0 1 (syntax-type
string)) . -24102) (undo-tree-id18 . -1) (24038 . 24046) (#(" " 0 1
(syntax-type string)) . -24038) (undo-tree-id19 . -1) (23986 . 23994) (#(" "
0 1 (syntax-type string)) . -23986) (undo-tree-id20 . -1) (23907 . 23914)
(#(" " 0 1 (syntax-type string)) . -23907) (undo-tree-id21 . -1) (23845 .
23853) (#(" " 0 1 (syntax-type string)) . -23845) (undo-tree-id22 . -1)
(23808 . 23815) (#(" " 0 1 (syntax-type string)) . -23808) (undo-tree-id23
. -1) (17359 . 17375) (#(" " 0 2 (syntax-type string)) . -17359)
(undo-tree-id24 . -2) (16588 . 16596) (#(" " 0 1 (syntax-type string)) .
-16588) (undo-tree-id25 . -1) (16532 . 16540) (#(" " 0 1 (syntax-type
string)) . -16532) (undo-tree-id26 . -1) (15993 . 16001) (#(" " 0 1
(syntax-type string)) . -15993) (undo-tree-id27 . -1) (15944 . 15952) (#(" "
0 1 (syntax-type string)) . -15944) (undo-tree-id28 . -1) (15918 . 15926)
(#(" " 0 1 (syntax-type string)) . -15918) (undo-tree-id29 . -1) (7553 .
7561) (#(" " 0 1 (syntax-type string)) . -7553) (undo-tree-id30 . -1) (7467
. 7475) (#(" " 0 1 (syntax-type string)) . -7467) (undo-tree-id31 . -1)
(2516 . 2524) (#(" " 0 1 (fontified t syntax-type string face
whitespace-space-after-tab)) . -2516) (undo-tree-id32 . -1) (2461 . 2469)
(#(" " 0 1 (fontified t syntax-type string face
whitespace-space-after-tab)) . -2461) (undo-tree-id33 . -1) (2317 . 2325)
(#(" " 0 1 (fontified t syntax-type string face
whitespace-space-after-tab)) . -2317) (undo-tree-id34 . 1) (undo-tree-id35
. 1) (undo-tree-id36 . -1) (1344 . 1352) (#(" " 0 1 (fontified t face
whitespace-space-after-tab)) . -1344) (undo-tree-id37 . 1) (undo-tree-id38
. 1) (undo-tree-id39 . -1) (1009 . 1017) (#(" " 0 1 (fontified t face
whitespace-space-after-tab)) . -1009) (undo-tree-id40 . 1) (undo-tree-id41
. 1) (undo-tree-id42 . -1) (#(" " 0 1 (syntax-table #7=#^[nil #^[#2=(0) nil
syntax-table #5=
#^^[3 0 #1=(1) #1# #1# #1# #1# #1# #1# #1# #1# #2# #2# #1# #2# #2# #1# #1#
#1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #1# #2# #1# (7)
#1# #3=(2) #3# #4=(3) #1# (4 . 41) (5 . 40) #4# #4# #1# #4# #1# #4# #3# #3#
#3# #3# #3# #3# #3# #3# #3# #3# #1# #1# #4# #4# #4# #1# #1# #3# #3# #3# #3#
#3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3#
#3# #3# #3# (4 . 93) (9) (5 . 91) #1# #4# #1# #3# #3# #3# #3# #3# #3# #3#
#3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3# #3#
(4 . 125) #4# (5 . 123) #1# #1#] #^^[1 0 #^^[2 0 #5#
...

I spare the rest, because the crash is happening while reading the form
starting at [cl-struct-undo-tree ...
Actually, the point is near the end of my lines on #^^[1

Emacs shouldn't crash while reading data it has been able to write (well,
at least I would expect it).
Could it be that the syntax-table structure has been changed recently in a
way that makes it impossible
to read one that has been printed with a previous version of emacs?

Fabrice


2015-03-23 16:34 GMT+01:00 Eli Zaretskii <eliz@gnu.org>:

> > From: Fabrice Popineau <fabrice.popineau@gmail.com>
> > Date: Mon, 23 Mar 2015 06:32:55 +0100
> > Cc: Emacs developers <emacs-devel@gnu.org>
> >
> >         Can you reproduce the problem by first starting "emacs -Q" and
> then
> >         manually invoking 'desktop-read' to restore session from the
> offending
> >         file?
> >
> >
> >
> >     I have not yet been able to do that.
> >
> >
> > The reason I couldn't do it yet is the following :
> > - I run "emacs -Q" (under gdb)
> > - I load a couple of libraries among which "desktop.el"
> > - I try to evaluate (desktop-create-buffer ...)
> > but it fails with "void variable desktop-buffer-ok-count"
> >
> > Even if I evaluate the form:
> > (defvar desktop-buffer-ok-count) from the desktop.el file,
> > the variable is still unknown.
> >
> > What could cause that ?
>
> I don't know, I never tried invoking desktop-create-buffer directly.
>
> Did you try to invoke desktop-read, as I suggested?
>

[-- Attachment #2: Type: text/html, Size: 8519 bytes --]

  reply	other threads:[~2015-03-23 20:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-20 23:21 Emacs trunk crash Fabrice Popineau
2015-03-21  8:14 ` Eli Zaretskii
2015-03-22 19:59   ` Fabrice Popineau
2015-03-22 20:13     ` Eli Zaretskii
2015-03-22 20:22     ` Eli Zaretskii
2015-03-22 20:28       ` Eli Zaretskii
2015-03-22 22:35         ` Stefan Monnier
2015-03-23 15:33           ` Eli Zaretskii
2015-03-22 22:37       ` Fabrice Popineau
2015-03-23  5:32         ` Fabrice Popineau
2015-03-23 15:34           ` Eli Zaretskii
2015-03-23 20:55             ` Fabrice Popineau [this message]
2015-03-23 21:27               ` Fabrice Popineau
2015-03-24  2:28                 ` Stefan Monnier
2015-03-24 17:23               ` Eli Zaretskii
2015-03-24 21:10                 ` Fabrice Popineau
2015-03-25 20:38                   ` Eli Zaretskii
     [not found]                     ` <CAFgFV9MVLXraWXyVGw5=y3QWRK_5DyGf=0G6DrMLsO6gwFHSGA@mail.gmail.com>
     [not found]                       ` <837fu2bwd3.fsf@gnu.org>
2015-03-27 10:41                         ` Fabrice Popineau
2015-03-27 13:18                           ` Eli Zaretskii
2015-03-21  9:59 ` martin rudalics

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='CAFgFV9P2JMVqd=2qzNrreGNGnwKhLtQZbWZi1AKiTn5XGQg7tQ@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=eliz@gnu.org \
    --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 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).