From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Emacs trunk crash
Date: Sun, 22 Mar 2015 19:59:41 +0000 (UTC) [thread overview]
Message-ID: <loom.20150322T201832-229@post.gmane.org> (raw)
In-Reply-To: 834mpevkao.fsf@gnu.org
Eli Zaretskii <eliz <at> gnu.org> writes:
> A fuller backtrace, including "xbacktrace" for the Lisp part, might
> show some useful information.
Luckily, the crash is constant and still happens by just restoring the
.emacs.desktop file. So I may be able to reproduce it.
I have put the full backtrace at the end of the message.
For the xbacktrace:
(gdb) xbacktrace
"read" (0x838fa8)
0xc2c77f0 PVEC_COMPILED
"funcall" (0x8394f0)
0xc2c5a30 PVEC_COMPILED
"funcall" (0x839d10)
"undo-tree-load-history" (0x83a480)
"undo-tree-load-history-hook" (0x83aad8)
"run-hooks" (0x83ac48)
"after-find-file" (0x83b1d8)
"find-file-noselect-1" (0x83b768)
"find-file-noselect" (0x83bce8)
"desktop-restore-file-buffer" (0x83c2e0)
"desktop-create-buffer" (0x83c760)
"eval-buffer" (0x83ccd0)
"load-with-code-conversion" (0x83d228)
"load" (0x83d9f8)
"desktop-read" (0x83de80)
"if" (0x83e1f8)
"progn" (0x83e3c8)
"if" (0x83e598)
"desktop-settings-setup" (0x83e948)
"run-hooks" (0x83ea90)
"command-line" (0x83f058)
---Type <return> to continue, or q <return> to quit---
"normal-top-level" (0x83f4f0)
So it happens while restoring the undo-tree history.
At frame #1 :
(gdb) p object
$8 = 167822037
(gdb) xtype
Lisp_Vectorlike
PVEC_SUB_CHAR_TABLE
(gdb) p object
$6 = 167822037
(gdb) xsubchartable
$7 = (struct Lisp_Sub_Char_Table *) 0xa00c2d0
Depth: 3, Min char: 0 (0x0)
> Also, can you show the Lisp object being read here?
I take any instruction to dig any further.
I am a bit stuck on how to print even the lisp form that is evaluated.
> What kind of file is the file that causes the crash? is it a Lisp
> file?
It seems to be one of the files to be restored, yes.
There is lots of bytecode which is executed during the backtrace.
I don't know much about exploring those frames.
Fabrice
#0 0x000000040024ba41 in substitute_object_recurse (object=167822037,
placeholder=8607363, subtree=3) at ../../emacs/src/lread.c:3306
#1 0x000000040024b9ae in substitute_object_recurse (object=167822037,
placeholder=8607363, subtree=167822037) at ../../emacs/src/lread.c:3299
#2 0x000000040024b777 in substitute_object_in_subtree (object=167822037,
placeholder=8607363) at ../../emacs/src/lread.c:3234
#3 0x000000040024a58e in read1 (readcharfun=196995557, pch=0x8358bc,
first_in_list=false) at ../../emacs/src/lread.c:2847
#4 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#5 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#6 0x000000040024954d in read1 (readcharfun=196995557, pch=0x835d0c,
first_in_list=false) at ../../emacs/src/lread.c:2566
#7 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#8 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#9 0x000000040024954d in read1 (readcharfun=196995557, pch=0x83615c,
first_in_list=false) at ../../emacs/src/lread.c:2566
#10 0x0000000400248609 in read0 (readcharfun=196995557)
at ../../emacs/src/lread.c:2135
#11 0x000000040024a56e in read1 (readcharfun=196995557, pch=0x83644c,
first_in_list=false) at ../../emacs/src/lread.c:2844
#12 0x000000040024c5b5 in read_list (flag=false, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#13 0x0000000400248f7c in read1 (readcharfun=196995557, pch=0x83685c,
first_in_list=false) at ../../emacs/src/lread.c:2473
#14 0x0000000400249e8b in read1 (readcharfun=196995557, pch=0x836abc,
first_in_list=true) at ../../emacs/src/lread.c:2684
#15 0x000000040024c5b5 in read_list (flag=false, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#16 0x0000000400248f7c in read1 (readcharfun=196995557, pch=0x836e7c,
first_in_list=false) at ../../emacs/src/lread.c:2473
#17 0x000000040024c5b5 in read_list (flag=false, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#18 0x0000000400248f7c in read1 (readcharfun=196995557, pch=0x83723c,
first_in_list=false) at ../../emacs/src/lread.c:2473
#19 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#20 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#21 0x0000000400248f93 in read1 (readcharfun=196995557, pch=0x83768c,
first_in_list=false) at ../../emacs/src/lread.c:2476
#22 0x0000000400248609 in read0 (readcharfun=196995557)
at ../../emacs/src/lread.c:2135
#23 0x000000040024a56e in read1 (readcharfun=196995557, pch=0x83797c,
first_in_list=true) at ../../emacs/src/lread.c:2844
#24 0x000000040024c5b5 in read_list (flag=false, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#25 0x0000000400248f7c in read1 (readcharfun=196995557, pch=0x837d3c,
first_in_list=false) at ../../emacs/src/lread.c:2473
#26 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#27 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#28 0x0000000400248f93 in read1 (readcharfun=196995557, pch=0x83818c,
first_in_list=true) at ../../emacs/src/lread.c:2476
#29 0x000000040024c5b5 in read_list (flag=false, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#30 0x0000000400248f7c in read1 (readcharfun=196995557, pch=0x83854c,
first_in_list=false) at ../../emacs/src/lread.c:2473
#31 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#32 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#33 0x0000000400248f93 in read1 (readcharfun=196995557, pch=0x83899c,
first_in_list=false) at ../../emacs/src/lread.c:2476
#34 0x000000040024c5b5 in read_list (flag=true, readcharfun=196995557)
at ../../emacs/src/lread.c:3585
#35 0x000000040024c149 in read_vector (readcharfun=196995557,
bytecodeflag=false) at ../../emacs/src/lread.c:3493
#36 0x0000000400248f93 in read1 (readcharfun=196995557, pch=0x838dec,
first_in_list=false) at ../../emacs/src/lread.c:2476
#37 0x0000000400248609 in read0 (readcharfun=196995557)
at ../../emacs/src/lread.c:2135
#38 0x0000000400248551 in read_internal_start (stream=196995557, start=0,
end=0) at ../../emacs/src/lread.c:2108
#39 0x000000040024831d in Fread (stream=196995557)
at ../../emacs/src/lread.c:2055
#40 0x00000004002106e2 in Ffuncall (nargs=2, args=0x838fa0)
at ../../emacs/src/eval.c:2718
#41 0x000000040026437a in exec_byte_code (bytestr=148225940, vector=204237565,
maxdepth=14, args_template=2, nargs=0, args=0x8394f8)
at ../../emacs/src/bytecode.c:919
#42 0x00000004002111be in funcall_lambda (fun=204240885, nargs=0,
arg_vector=0x8394f8) at ../../emacs/src/eval.c:2885
#43 0x0000000400210a5e in Ffuncall (nargs=1, args=0x8394f0)
at ../../emacs/src/eval.c:2767
#44 0x000000040020ebfa in eval_sub (form=205182435)
at ../../emacs/src/eval.c:2154
#45 0x000000040020c3a6 in internal_lisp_condition_case (var=-17058665872,
bodyform=205182435, handlers=205182531) at ../../emacs/src/eval.c:1317
#46 0x00000004002658c6 in exec_byte_code (bytestr=148224820, vector=204236645,
maxdepth=66, args_template=2, nargs=0, args=0x839d18)
at ../../emacs/src/bytecode.c:1162
#47 0x00000004002111be in funcall_lambda (fun=204233269, nargs=0,
arg_vector=0x839d18) at ../../emacs/src/eval.c:2885
#48 0x0000000400210a5e in Ffuncall (nargs=1, args=0x839d10)
at ../../emacs/src/eval.c:2767
#49 0x000000040020ebfa in eval_sub (form=205183939)
at ../../emacs/src/eval.c:2154
#50 0x000000040020b833 in internal_catch (tag=-17058665984,
func=0x40020e54c <eval_sub>, arg=205183939) at ../../emacs/src/eval.c:1108
#51 0x00000004002654e5 in exec_byte_code (bytestr=148224500, vector=148206389,
maxdepth=50, args_template=2050, nargs=2, args=0x83a490)
at ../../emacs/src/bytecode.c:1100
#52 0x00000004002111be in funcall_lambda (fun=148206525, nargs=2,
arg_vector=0x83a480) at ../../emacs/src/eval.c:2885
#53 0x0000000400210a5e in Ffuncall (nargs=3, args=0x83a478)
at ../../emacs/src/eval.c:2767
#54 0x000000040026437a in exec_byte_code (bytestr=148227796, vector=148206685,
maxdepth=14, args_template=2, nargs=0, args=0x83aad8)
at ../../emacs/src/bytecode.c:919
#55 0x00000004002111be in funcall_lambda (fun=148206749, nargs=0,
arg_vector=0x83aad8) at ../../emacs/src/eval.c:2885
#56 0x0000000400210a5e in Ffuncall (nargs=1, args=0x83aad0)
at ../../emacs/src/eval.c:2767
#57 0x000000040020f781 in funcall_nil (nargs=1, args=0x83aad0)
at ../../emacs/src/eval.c:2348
#58 0x000000040020fc78 in run_hook_with_args (nargs=1, args=0x83aad0,
funcall=0x40020f761 <funcall_nil>) at ../../emacs/src/eval.c:2522
#59 0x000000040020f811 in Frun_hook_with_args (nargs=1, args=0x83aad0)
at ../../emacs/src/eval.c:2390
#60 0x000000040020fe19 in run_hook (hook=-17058976600)
at ../../emacs/src/eval.c:2543
#61 0x000000040020f7c9 in Frun_hooks (nargs=1, args=0x83ac48)
at ../../emacs/src/eval.c:2372
#62 0x0000000400210547 in Ffuncall (nargs=2, args=0x83ac40)
at ../../emacs/src/eval.c:2698
#63 0x000000040026437a in exec_byte_code (bytestr=17183703564,
vector=17183703597, maxdepth=42, args_template=5122, nargs=2,
args=0x83b1e8) at ../../emacs/src/bytecode.c:919
#64 0x00000004002111be in funcall_lambda (fun=17183703517, nargs=2,
arg_vector=0x83b1d8) at ../../emacs/src/eval.c:2885
#65 0x0000000400210a5e in Ffuncall (nargs=3, args=0x83b1d0)
at ../../emacs/src/eval.c:2767
#66 0x000000040026437a in exec_byte_code (bytestr=17183701764,
vector=17183701797, maxdepth=46, args_template=6170, nargs=6,
args=0x83b798) at ../../emacs/src/bytecode.c:919
#67 0x00000004002111be in funcall_lambda (fun=17183701717, nargs=6,
arg_vector=0x83b768) at ../../emacs/src/eval.c:2885
#68 0x0000000400210a5e in Ffuncall (nargs=7, args=0x83b760)
at ../../emacs/src/eval.c:2767
#69 0x000000040026437a in exec_byte_code (bytestr=17183700412,
vector=17183700445, maxdepth=70, args_template=4102, nargs=1,
args=0x83bcf0) at ../../emacs/src/bytecode.c:919
#70 0x00000004002111be in funcall_lambda (fun=17183700365, nargs=1,
arg_vector=0x83bce8) at ../../emacs/src/eval.c:2885
#71 0x0000000400210a5e in Ffuncall (nargs=2, args=0x83bce0)
at ../../emacs/src/eval.c:2767
#72 0x000000040026437a in exec_byte_code (bytestr=102121668, vector=199249157,
maxdepth=30, args_template=3086, nargs=3, args=0x83c2f8)
at ../../emacs/src/bytecode.c:919
#73 0x00000004002111be in funcall_lambda (fun=199249325, nargs=3,
arg_vector=0x83c2e0) at ../../emacs/src/eval.c:2885
#74 0x0000000400210a5e in Ffuncall (nargs=4, args=0x83c2d8)
at ../../emacs/src/eval.c:2767
#75 0x000000040026437a in exec_byte_code (bytestr=102120516, vector=199249421,
maxdepth=126, args_template=11814, nargs=11, args=0x83c7b8)
at ../../emacs/src/bytecode.c:919
#76 0x00000004002111be in funcall_lambda (fun=199249765, nargs=11,
arg_vector=0x83c760) at ../../emacs/src/eval.c:2885
#77 0x0000000400210e33 in apply_lambda (fun=199249765, args=157861555,
count=43) at ../../emacs/src/eval.c:2826
#78 0x000000040020ef3a in eval_sub (form=157861539)
at ../../emacs/src/eval.c:2226
#79 0x000000040024754d in readevalloop_eager_expand_eval (val=157861539,
macroexpand=-18721912) at ../../emacs/src/lread.c:1756
#80 0x0000000400247d38 in readevalloop (readcharfun=156354037, stream=0x0,
sourcename=102731012, printflag=false, unibyte=0, readfun=0, start=0,
end=0) at ../../emacs/src/lread.c:1927
#81 0x00000004002480ef in Feval_buffer (buffer=156354037, printflag=0,
filename=102701476, unibyte=0, do_allow_print=56840)
at ../../emacs/src/lread.c:1990
#82 0x0000000400210838 in Ffuncall (nargs=6, args=0x83ccc8)
at ../../emacs/src/eval.c:2734
#83 0x000000040026437a in exec_byte_code (bytestr=17183484964,
vector=17183484997, maxdepth=26, args_template=0, nargs=0, args=0x0)
at ../../emacs/src/bytecode.c:919
#84 0x0000000400211676 in funcall_lambda (fun=17183484837, nargs=4,
arg_vector=0x400372c45 <pure+190725>) at ../../emacs/src/eval.c:2951
#85 0x0000000400210a5e in Ffuncall (nargs=5, args=0x83d220)
at ../../emacs/src/eval.c:2767
#86 0x0000000400210017 in call4 (fn=-18449752, arg1=102701476, arg2=102701476,
arg3=56840, arg4=56840) at ../../emacs/src/eval.c:2598
#87 0x0000000400245c74 in Fload (file=102701572, noerror=56840,
nomessage=56840, nosuffix=56840, must_suffix=0)
at ../../emacs/src/lread.c:1268
#88 0x0000000400210838 in Ffuncall (nargs=5, args=0x83d9f0)
at ../../emacs/src/eval.c:2734
#89 0x000000040026437a in exec_byte_code (bytestr=103369012, vector=199244789,
maxdepth=66, args_template=1026, nargs=1, args=0x83de88)
at ../../emacs/src/bytecode.c:919
#90 0x00000004002111be in funcall_lambda (fun=199245357, nargs=1,
arg_vector=0x83de80) at ../../emacs/src/eval.c:2885
#91 0x0000000400210e33 in apply_lambda (fun=199245357, args=129863635,
count=11) at ../../emacs/src/eval.c:2826
#92 0x000000040020ef3a in eval_sub (form=129863619)
at ../../emacs/src/eval.c:2226
#93 0x0000000400208f12 in Fif (args=129863603) at ../../emacs/src/eval.c:396
#94 0x000000040020e9dc in eval_sub (form=129863539)
at ../../emacs/src/eval.c:2131
#95 0x00000004002091eb in Fprogn (body=129862179) at ../../emacs/src/eval.c:445
#96 0x000000040020e9dc in eval_sub (form=129861187)
at ../../emacs/src/eval.c:2131
#97 0x0000000400208f12 in Fif (args=129861427) at ../../emacs/src/eval.c:396
#98 0x000000040020e9dc in eval_sub (form=129861411)
at ../../emacs/src/eval.c:2131
#99 0x00000004002091eb in Fprogn (body=129861523) at ../../emacs/src/eval.c:445
#100 0x00000004002115d9 in funcall_lambda (fun=129861459, nargs=0,
arg_vector=0x83e948) at ../../emacs/src/eval.c:2944
#101 0x0000000400210b95 in Ffuncall (nargs=1, args=0x83e940)
at ../../emacs/src/eval.c:2779
#102 0x000000040020f781 in funcall_nil (nargs=1, args=0x83e940)
at ../../emacs/src/eval.c:2348
#103 0x000000040020fd6e in run_hook_with_args (nargs=1, args=0x83e940,
funcall=0x40020f761 <funcall_nil>) at ../../emacs/src/eval.c:2529
#104 0x000000040020f811 in Frun_hook_with_args (nargs=1, args=0x83e940)
at ../../emacs/src/eval.c:2390
#105 0x000000040020fe19 in run_hook (hook=-17074429296)
at ../../emacs/src/eval.c:2543
#106 0x000000040020f7c9 in Frun_hooks (nargs=1, args=0x83ea90)
at ../../emacs/src/eval.c:2372
#107 0x0000000400210547 in Ffuncall (nargs=2, args=0x83ea88)
at ../../emacs/src/eval.c:2698
#108 0x000000040026437a in exec_byte_code (bytestr=17184453268,
vector=17184453301, maxdepth=74, args_template=2, nargs=0, args=0x83f058)
at ../../emacs/src/bytecode.c:919
#109 0x00000004002111be in funcall_lambda (fun=17184453221, nargs=0,
arg_vector=0x83f058) at ../../emacs/src/eval.c:2885
#110 0x0000000400210a5e in Ffuncall (nargs=1, args=0x83f050)
at ../../emacs/src/eval.c:2767
#111 0x000000040026437a in exec_byte_code (bytestr=17184450252,
vector=17184450285, maxdepth=50, args_template=2, nargs=0, args=0x83f4f0)
at ../../emacs/src/bytecode.c:919
#112 0x00000004002111be in funcall_lambda (fun=17184450205, nargs=0,
arg_vector=0x83f4f0) at ../../emacs/src/eval.c:2885
#113 0x0000000400210e33 in apply_lambda (fun=17184450205, args=0, count=3)
at ../../emacs/src/eval.c:2826
#114 0x000000040020ef3a in eval_sub (form=17189337475)
at ../../emacs/src/eval.c:2226
#115 0x000000040020e2e3 in Feval (form=17189337475, lexical=0)
at ../../emacs/src/eval.c:1996
#116 0x000000040015277d in top_level_2 () at ../../emacs/src/keyboard.c:1148
#117 0x000000040020c53f in internal_condition_case (
bfun=0x400152756 <top_level_2>, handlers=23184,
hfun=0x4001520c9 <cmd_error>) at ../../emacs/src/eval.c:1348
#118 0x00000004001527c9 in top_level_1 (ignore=0)
at ../../emacs/src/keyboard.c:1156
#119 0x000000040020b833 in internal_catch (tag=58968,
func=0x400152782 <top_level_1>, arg=0) at ../../emacs/src/eval.c:1108
#120 0x000000040015269f in command_loop () at ../../emacs/src/keyboard.c:1117
#121 0x0000000400151b10 in recursive_edit_1 ()
at ../../emacs/src/keyboard.c:728
#122 0x0000000400151d51 in Frecursive_edit () at ../../emacs/src/keyboard.c:799
#123 0x000000040014f392 in main (argc=1, argv=0xd16ac0)
at ../../emacs/src/emacs.c:1626
Lisp Backtrace:
"read" (0x838fa8)
0xc2c77f0 PVEC_COMPILED
"funcall" (0x8394f0)
0xc2c5a30 PVEC_COMPILED
"funcall" (0x839d10)
"undo-tree-load-history" (0x83a480)
"undo-tree-load-history-hook" (0x83aad8)
"run-hooks" (0x83ac48)
"after-find-file" (0x83b1d8)
"find-file-noselect-1" (0x83b768)
"find-file-noselect" (0x83bce8)
"desktop-restore-file-buffer" (0x83c2e0)
"desktop-create-buffer" (0x83c760)
"eval-buffer" (0x83ccd0)
"load-with-code-conversion" (0x83d228)
"load" (0x83d9f8)
"desktop-read" (0x83de80)
"if" (0x83e1f8)
"progn" (0x83e3c8)
"if" (0x83e598)
"desktop-settings-setup" (0x83e948)
"run-hooks" (0x83ea90)
"command-line" (0x83f058)
"normal-top-level" (0x83f4f0)
next prev parent reply other threads:[~2015-03-22 19:59 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 [this message]
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
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=loom.20150322T201832-229@post.gmane.org \
--to=fabrice.popineau@gmail.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 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).