[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs from head segfaults when run with -nw
From: |
Alfred M. Szmidt |
Subject: |
Re: emacs from head segfaults when run with -nw |
Date: |
Mon, 05 Apr 2010 11:03:20 -0400 |
Thanks. It's different from what I see, but given that this seems to
be a Heisenbug (it disappears in a non-optimized build), perhaps it is
not surprising.
Can you see if this is the first GC since startup? It is for me: if
I set a breakpoint in Fgarbage_collect, it breaks only once, and if I
let Emacs continue from there, it crashes in a subroutine of GC.
Also, do you get the crash in a non-optimized (-O0) build? It's hard
to do anything with all those "value optimized out" variables.
Yeah I do, I'll see if I can get some time to make a patch. Here is
the backtrace of -Q -nw compiled with -ggdb3 -O0:
Program received signal SIGSEGV, Segmentation fault.
0x081a9af5 in mem_insert (start=0x8632398, end=0x86323b0,
type=MEM_TYPE_VECTORLIKE) at alloc.c:3557
3557 c = start < c->start ? c->left : c->right;
(gdb) bt full
#0 0x081a9af5 in mem_insert (start=0x8632398, end=0x86323b0,
type=MEM_TYPE_VECTORLIKE) at alloc.c:3557
c = 0x3
parent = 0x3
x = 0x4
#1 0x081a7942 in lisp_malloc (nbytes=24, type=MEM_TYPE_VECTORLIKE) at
alloc.c:872
val = 0x8632398
#2 0x081a905f in allocate_vectorlike (len=4) at alloc.c:2927
p = 0x854fe40
nbytes = 24
#3 0x081a90c7 in allocate_vector (nslots=4) at alloc.c:2953
v = 0x854fe40
#4 0x081a925d in Fmake_vector (length=3, init=139319498) at alloc.c:3037
vector = 139787845
sizei = 4
index = 4
p = 0x4
#5 0x081ca166 in concat (nargs=2, args=0xbfffd9b8,
target_type=Lisp_Vectorlike, last_special=0) at fns.c:616
val = 139787845
tail = 139319498
this = 140750630
toindex = 4
toindex_byte = 0
result_len = 4
result_len_byte = 4
argnum = 2
last_tail = 139319498
prev = 139319498
some_multibyte = 0
textprops = 0x0
num_textprops = 0
sa_count = 16
sa_must_free = 0
#6 0x081c9bb6 in Fvconcat (nargs=2, args=0xbfffd9b8) at fns.c:455
No locals.
#7 0x08158532 in append_key (key_sequence=140356685, key=139719522) at
keymap.c:1444
args = {140356685, 140750630}
#8 0x081598f2 in accessible_keymaps_1 (key=139719522, cmd=140383118,
args=139319498, data=0xbfffdb00) at keymap.c:2192
d = 0xbfffdb00
maps = 141379494
tail = 140750190
thisseq = 140356685
is_metized = 0
tem = 139319498
#9 0x08156c1c in map_keymap_item (fun=0x8159702 <accessible_keymaps_1>,
args=139319498, key=139719522, val=140425550, data=0xbfffdb00) at keymap.c:649
No locals.
#10 0x08156d35 in map_keymap_internal (map=140428622, fun=0x8159702
<accessible_keymaps_1>, args=139319498, data=0xbfffdb00) at keymap.c:687
binding = 140425182
gcpro1 = {next = 0x2, var = 0x84e4e22, nvars = -1073751368}
gcpro2 = {next = 0x855ca3e, var = 0x84e4e22, nvars = 139319498}
gcpro3 = {next = 0xbfffda98, var = 0x81a90c7, nvars = 0}
tail = 140425174
#11 0x08156ed4 in map_keymap (map=140428622, fun=0x8159702
<accessible_keymaps_1>, args=139319498, data=0xbfffdb00, autoload=0) at
keymap.c:734
gcpro1 = {next = 0x1, var = 0x1, nvars = 3}
#12 0x08159ca6 in Faccessible_keymaps (keymap=139312462, prefix=139319498) at
keymap.c:2283
data = {maps = 141384662, tail = 140750190, thisseq = 140356685,
is_metized = 0}
thismap = 140428622
last = 8
maps = 141384662
tail = 140750190
prefixlen = 0
#13 0x0815a8e0 in where_is_internal (definition=139689282, keymaps=140495598,
noindirect=0, nomenus=0) at keymap.c:2738
maps = 140495614
found = 140495590
data = {definition = 1, this = 4, last = 135619172, last_is_meta =
139319498, noindirect = -1073750880, sequences = -1073751080}
#14 0x0815ad24 in Fwhere_is_internal (definition=139689282, keymap=139852222,
firstonly=139319498, noindirect=139319498, no_remap=139319498) at keymap.c:2881
keymaps = 140495598
sequences = 139319498
found = 139319498
nomenus = 0
gcpro1 = {next = 0xbfffdc88, var = 0x81583b6, nvars = 139312462}
gcpro2 = {next = 0x1, var = 0x8158247, nvars = 1}
gcpro3 = {next = 0x1, var = 0x84e4d92, nvars = 139852222}
gcpro4 = {next = 0x855f9ae, var = 0x84dd8ca, nvars = 139852214}
gcpro5 = {next = 0x8676010, var = 0x855f9be, nvars = 2}
remapped_sequences = 139319498
remapped = 0
tem = 135619172
#15 0x081c5753 in Ffuncall (nargs=3, args=0xbfffdd60) at eval.c:3038
fun = 136678997
original_fun = 139350282
funcar = 0
numargs = 2
lisp_numargs = 140563389
val = 139852222
backtrace = {next = 0xbfffdfd0, function = 0xbfffdd60, args =
0xbfffdd64, nargs = 2, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0xbfffdca0
i = 139319498
#16 0x08205e1a in Fbyte_code (bytestr=137646377, vector=137646397, maxdepth=40)
at bytecode.c:680
count = 15
op = 2
vectorp = 0x8345140
bytestr_length = 345
stack = {pc = 0x8371bc8
"\034\311\312\313\"\035\311\312\314\"\036*\r\315=?\205%", top = 0xbfffdd68,
bottom = 0xbfffdd60, byte_string = 137646377,
byte_string_start = 0x8371bb9 "\b\204\006", constants = 137646397,
next = 0xbfffe1a0}
top = 0xbfffdd60
result = 139319498
#17 0x081c5df1 in funcall_lambda (fun=137646293, nargs=6,
arg_vector=0xbfffe034) at eval.c:3211
val = 139319498
syms_left = 139319498
next = 139689594
count = 10
i = 6
optional = 1
rest = 1
#18 0x081c58b5 in Ffuncall (nargs=7, args=0xbfffe030) at eval.c:3070
fun = 137646293
original_fun = 140125042
funcar = 135954334
numargs = 6
lisp_numargs = 16
val = 139319498
backtrace = {next = 0xbfffe100, function = 0xbfffe030, args =
0xbfffe034, nargs = 6, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x84dd8ca
i = 6
#19 0x081c4e45 in Fapply (nargs=6, args=0xbfffe164) at eval.c:2503
ret_ungc_val = 135984404
i = 7
numargs = 6
spread_arg = 139319498
funcall_args = 0xbfffe030
fun = 137646293
gcpro1 = {next = 0x81ca18a, var = 0x3, nvars = 7}
#20 0x081c55c4 in Ffuncall (nargs=7, args=0xbfffe160) at eval.c:3005
fun = 138315245
original_fun = 139428634
funcar = 139587714
numargs = 6
lisp_numargs = 0
val = 141834630
backtrace = {next = 0xbfffe3c0, function = 0xbfffe160, args =
0xbfffe164, nargs = 6, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x2
i = -1073748956
#21 0x08205e1a in Fbyte_code (bytestr=137646153, vector=137646173, maxdepth=28)
at bytecode.c:680
count = 10
op = 6
vectorp = 0x8345060
bytestr_length = 12
stack = {pc = 0x8371d31 "\207", top = 0xbfffe178, bottom = 0xbfffe160,
byte_string = 137646153, byte_string_start =
0x8371d26 "\304\305\b\t\306\307!\n\v&\006\207", constants = 137646173, next
= 0xbfffe460}
top = 0xbfffe160
result = 139319498
#22 0x081c5df1 in funcall_lambda (fun=137646077, nargs=5,
arg_vector=0xbfffe424) at eval.c:3211
val = 139319498
syms_left = 139319498
next = 139689594
count = 6
i = 5
optional = 1
rest = 1
#23 0x081c58b5 in Ffuncall (nargs=6, args=0xbfffe420) at eval.c:3070
fun = 137646077
original_fun = 140125018
funcar = 135982840
numargs = 5
lisp_numargs = 0
val = 139319498
backtrace = {next = 0xbfffe680, function = 0xbfffe420, args =
0xbfffe424, nargs = 5, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x0
i = -1073748252
#24 0x08205e1a in Fbyte_code (bytestr=137646873, vector=137646893, maxdepth=24)
at bytecode.c:680
count = 6
op = 5
vectorp = 0x8345330
bytestr_length = 105
stack = {pc =
0x8371b7a
"\210\302\326\b\327\"\330\315\316\331%\210\302\326\b\332\"\333\"\210\302\326\b\334\"\335\315\316\336%\210\302\337\340\"\210\302\341\342\"\210\343\301!\031\344\345\346\211\347\350%\210\344\351\352\353\347\354%)\207",
top = 0xbfffe434, bottom = 0xbfffe420, byte_string = 137646873,
byte_string_start =
0x8371b4f
"\302\303\304\"\210\302\305\306\"\210\302\307\310\"\210\302\311\312\"\210\302\313\314\315\316\317%\210\302\320\321\315\316\322%\210\302\323\324\315\316\325%\210\302\326\b\327\"\330\315\316\331%\210\302\326\b\332\"\333\"\210\302\326\b\334\"\335\315\316\336%\210\302\337\340\"\210\302\341\342\"\210\343\301!\031\344\345\346\211\347\350%\210\344\351\352\353\347\354%)\207",
constants = 137646893, next = 0xbfffe710}
top = 0xbfffe420
result = 141895462
#25 0x081c5df1 in funcall_lambda (fun=137646853, nargs=0,
arg_vector=0xbfffe6e4) at eval.c:3211
val = 141895462
syms_left = 139319498
next = -1073748440
count = 6
i = 0
optional = 0
rest = 0
#26 0x081c58b5 in Ffuncall (nargs=1, args=0xbfffe6e0) at eval.c:3070
fun = 137646853
original_fun = 140091290
funcar = 0
numargs = 0
lisp_numargs = 139319498
val = 141834630
backtrace = {next = 0xbfffe930, function = 0xbfffe6e0, args =
0xbfffe6e4, nargs = 0, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x0
i = -1073747564
#27 0x08205e1a in Fbyte_code (bytestr=137644633, vector=137644653, maxdepth=16)
at bytecode.c:680
count = 5
op = 0
vectorp = 0x8344a70
bytestr_length = 128
stack = {pc = 0x8371f48 "\210\202J", top = 0xbfffe6e0, bottom =
0xbfffe6e0, byte_string = 137644633, byte_string_start =
0x8371f09 "\303 \030\t\304=\203\016", constants = 137644653, next =
0xbfffe9d0}
top = 0xbfffe6e0
result = 141589224
#28 0x081c5df1 in funcall_lambda (fun=137644589, nargs=1,
arg_vector=0xbfffe994) at eval.c:3211
val = 139319498
syms_left = 139319498
next = 139735962
count = 4
i = 1
optional = 1
rest = 0
#29 0x081c58b5 in Ffuncall (nargs=2, args=0xbfffe990) at eval.c:3070
fun = 137644589
original_fun = 140091266
funcar = 135982840
numargs = 1
lisp_numargs = 2
val = 139319498
backtrace = {next = 0xbfffebf0, function = 0xbfffe990, args =
0xbfffe994, nargs = 1, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x0
i = 112
#30 0x08205e1a in Fbyte_code (bytestr=136981529, vector=136981549, maxdepth=28)
at bytecode.c:680
count = 4
op = 1
vectorp = 0x82a2c30
bytestr_length = 1665
stack = {pc = 0x83c26a5 "\210\201\230", top = 0xbfffe994, bottom =
0xbfffe990, byte_string = 136981529, byte_string_start =
0x83c23fb "\306 \020\307\021\n\023\307\024\310\311!\211\035\307=\204\064",
constants = 136981549, next = 0xbfffec90}
top = 0xbfffe990
result = 139576473
#31 0x081c5df1 in funcall_lambda (fun=136981509, nargs=0,
arg_vector=0xbfffec54) at eval.c:3211
val = 139576473
syms_left = 139319498
next = 139571722
count = 4
i = 0
optional = 0
rest = 0
#32 0x081c58b5 in Ffuncall (nargs=1, args=0xbfffec50) at eval.c:3070
fun = 136981509
original_fun = 140134050
funcar = 135982840
numargs = 0
lisp_numargs = 0
val = 220
backtrace = {next = 0xbfffef58, function = 0xbfffec50, args =
0xbfffec54, nargs = 0, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
internal_args = 0x0
i = 48
#33 0x08205e1a in Fbyte_code (bytestr=136978457, vector=136978477, maxdepth=24)
at bytecode.c:680
count = 2
op = 0
vectorp = 0x82a2030
bytestr_length = 220
stack = {pc = 0x83c31a7
"\210*\340\341\342\"\210\343\321\344\"\211\036$;\203\251", top = 0xbfffec50,
bottom = 0xbfffec50, byte_string = 136978457,
byte_string_start = 0x83c3119 "\b\203\b", constants = 136978477, next
= 0x0}
top = 0xbfffec50
result = 29
#34 0x081c5df1 in funcall_lambda (fun=136978437, nargs=0,
arg_vector=0xbfffee70) at eval.c:3211
val = 4096
syms_left = 139319498
next = 30
count = 2
i = 0
optional = 0
rest = 0
#35 0x081c5aae in apply_lambda (fun=136978437, args=139319498, eval_flag=1) at
eval.c:3135
args_left = 139319498
numargs = 0
arg_vector = 0xbfffee70
gcpro1 = {next = 0x0, var = 0x8719128, nvars = 0}
gcpro2 = {next = 0xb8273c, var = 0xbfffef20, nvars = 10390076}
gcpro3 = {next = 0xbfffef3c, var = 0x9d2d28, nvars = -1073746132}
i = 0
tem = -1073744432
#36 0x081c4a98 in Feval (form=139560030) at eval.c:2388
fun = 136978437
val = 0
original_fun = 140244746
original_args = 139319498
funcar = 0
backtrace = {next = 0x0, function = 0xbfffef70, args = 0xbfffee70,
nargs = 0, evalargs = 0 '\000', debug_on_exit = 0 '\000'}
gcpro1 = {next = 0x0, var = 0x0, nvars = 0}
gcpro2 = {next = 0x9e34d8, var = 0x0, nvars = 0}
gcpro3 = {next = 0x85dd628, var = 0x814c620, nvars = 0}
#37 0x0814387d in top_level_2 () at keyboard.c:1365
No locals.
#38 0x081c3388 in internal_condition_case (bfun=0x814386a <top_level_2>,
handlers=139357474, hfun=0x81434d8 <cmd_error>) at eval.c:1490
val = 0
c = {tag = 139319498, val = 139319498, next = 0xbffff108, gcpro = 0x0,
jmp = {{__jmpbuf = {-1073744432, -1073744572, -1073745164, -1073745720,
-304938895,
711649054}, __mask_was_saved = 0, __saved_mask = {__val = {134538479,
3086895784, 2, 10322301, 134536708, 3086912756, 10387396, 130431436, 27,
3221221276,
10300233, 0, 429496729, 140367400, 500, 131928052, 130856801, 131935260,
3221221172, 139242848, 139242976, 3221221812, 3221221672, 135654657, 2,
3221221684,
3221221520, 0, 0, 0, 0, 0}}}}, backlist = 0x0, handlerlist = 0x0,
lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1,
interrupt_input_blocked = 0,
byte_stack = 0x0}
h = {handler = 139357474, var = 139319498, chosen_clause = 130591995,
tag = 0xbfffeff4, next = 0x0}
#39 0x081438b4 in top_level_1 () at keyboard.c:1373
No locals.
#40 0x081c2e6a in internal_catch (tag=139354546, func=0x814387f <top_level_1>,
arg=139319498) at eval.c:1226
c = {tag = 139354546, val = 139319498, next = 0x0, gcpro = 0x0, jmp =
{{__jmpbuf = {-1073744432, -1073744572, -1073745164, -1073745448, -303218575,
709891870}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 130880286, 0, 0, 0, 130880286, 0, 0, 131933112, 0, 0, 139484843,
3221221848, 135984067, 139486890, 139484843, 139319498, 139345360,
140955060, 136637276, 14, 22, 0}}}}, backlist = 0x0, handlerlist = 0x0,
lisp_eval_depth = 0,
pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0,
byte_stack = 0x0}
#41 0x081437ed in command_loop () at keyboard.c:1328
No locals.
#42 0x081430f7 in recursive_edit_1 () at keyboard.c:950
count = 1
val = 134884005
#43 0x08143262 in Frecursive_edit () at keyboard.c:1012
count = 0
buffer = 139319498
#44 0x08141a62 in main (argc=3, argv=0xbffff674) at emacs.c:1784
dummy = -1073744688
stack_bottom_variable = 0 '\000'
do_initial_setlocale = 1
skip_args = 1
rlim = {rlim_cur = 10485760, rlim_max = 18446744073709551615}
no_loadup = 0
junk = 0x0
dname_arg = 0x0
(gdb)
- Re: emacs from head segfaults when run with -nw, (continued)
- Re: emacs from head segfaults when run with -nw, Jan Djärv, 2010/04/04
- Re: emacs from head segfaults when run with -nw, Dan Nicolaescu, 2010/04/05
- Re: emacs from head segfaults when run with -nw, Randal L. Schwartz, 2010/04/14
- Re: emacs from head segfaults when run with -nw, Randal L. Schwartz, 2010/04/17
- Re: emacs from head segfaults when run with -nw, Randal L. Schwartz, 2010/04/17
Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/05
- Re: emacs from head segfaults when run with -nw, Alfred M. Szmidt, 2010/04/05
- Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/05
- Re: emacs from head segfaults when run with -nw,
Alfred M. Szmidt <=
- Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/05
- Re: emacs from head segfaults when run with -nw, Alfred M. Szmidt, 2010/04/06
- Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/06
- Re: emacs from head segfaults when run with -nw, Alfred M. Szmidt, 2010/04/08
Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/05
Re: emacs from head segfaults when run with -nw, Juri Linkov, 2010/04/05
Re: emacs from head segfaults when run with -nw, Eli Zaretskii, 2010/04/05
Re: emacs from head segfaults when run with -nw, Stefan Monnier, 2010/04/05
Re: emacs from head segfaults when run with -nw, Stefan Monnier, 2010/04/05