[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failure to build on OpenBSD macppc
From: |
Alfred M. Szmidt |
Subject: |
Re: Failure to build on OpenBSD macppc |
Date: |
Mon, 14 May 2007 11:52:55 +0200 (CEST) |
I have a useful backtrace for this problem, but I can't really figure
out why it happens. The short story is that the problem is caused by:
(setq load-source-file-function 'load-with-code-conversion)
in loadup.el, this causes insert-file-contents to be run from mule.el,
at which point when we are returning from insert-file-contents,
something corrupts the stack, so that we cannot return, and we
segfault badly because of it.
If one simply doesn't set load-source-file-function, we continue quite
far until trying to load faces.el, at which point temacs complains
about requiring 'cl.
I have attached a (messy) backtrace; this is right at call to
insert-file-contents in mule.el on line 78, and we are just returning
from insert-file-contents. Does anyone know what is going on?
(gdb) bt full
#0 Finsert_file_contents (filename=28429859, visit=27949057, beg=-311288,
end=524288, replace=27949057) at fileio.c:4766
val = 28106329
st = {
st_dev = 0,
st_ino = 248430,
st_mode = 33204,
st_nlink = 1,
st_uid = 1000,
st_gid = 1000,
st_rdev = 0,
st_lspare0 = 27656192,
st_atimespec = {
tv_sec = 1179100208,
tv_nsec = 470000000
},
st_mtimespec = {
tv_sec = 1178409888,
tv_nsec = 610000000
},
st_ctimespec = {
tv_sec = 1179097395,
tv_nsec = 130000000
},
st_size = 0,
st_blocks = 0,
st_blksize = 16384,
st_flags = 0,
st_gen = 0,
st_lspare1 = 3521888,
__st_birthtimespec = {
tv_sec = 1,
tv_nsec = 27656192
},
st_qspare = {-1607822038044114944, 24206848002751728}
}
fd = 7
inserted = 0
how_much = 24
unprocessed = 524288
gcpro1 = {
next = 0x0,
var = 0x0,
nvars = 0
}
gcpro2 = {
next = 0x0,
var = 0x0,
nvars = 0
}
gcpro3 = {
next = 0x0,
var = 0x0,
nvars = 0
}
gcpro4 = {
next = 0x0,
var = 0x0,
nvars = 0
}
handler = 27949057
val = 28463581
insval = 28463581
orig_filename = 28429859
p = 28463581
total = 65536
not_regular = 0
read_buf = '\0' <repeats 52536 times>, "\377\374\020", '\0' <repeats 25
times>, "\001\261\034y\377\374\020
\001\213\327\f\000\000\000\000\000\000\000\000\377\374\0200\000\000\000\000\000\000\000\000\377\374\020
\377\374\020\360\001\215\035\374\000\000\000\000\001\261\0341\377\374\020P\001\213\327\f",
'\0' <repeats 20 times>, "\377\374\020P\377\374\021 \001\215\035\374", '\0'
<repeats 88 times>, "\377\374\020\320", '\0' <repeats 12 times>,
"\001\246\000\000\377\374\021`\000\000\000\001\001\261\035\t\377\374\020\360\001\213\327\f\001\246\000\000\001\225\f%\377\374\020\360\000\000\000\000\001\245\236\260\377\374\020\360\377\374\021\300\001\215\035\374\001\253vA\001\225\f%\000\000\000\001\001\246\000"...
coding = {
type = coding_type_undecided,
eol_type = 3,
common_flags = 8,
flags = 0,
mode = 0,
composing = 0,
composition_rule_follows = 0,
cmp_data = 0x0,
cmp_data_start = 0,
cmp_data_index = 0,
spec = {
iso2022 = {
current_invocation = {0, 0},
current_designation = {0, 0, 0, 0},
initial_designation = {0, 0, 0, 0},
last_invalid_designation_register = 0,
requested_designation = '\0' <repeats 254 times>,
charset_revision_number = '\0' <repeats 254 times>,
single_shifting = 0,
bol = 0
},
ccl = {
decoder = {
idx = 0,
size = 0,
prog = 0x0,
ic = 0,
eof_ic = 0,
reg = {0, 0, 0, 0, 0, 0, 0, 0},
private_state = 0,
last_block = 0,
status = 0,
buf_magnification = 0,
stack_idx = 0,
eol_type = 0,
multibyte = 0,
cr_consumed = 0,
suppress_error = 0,
eight_bit_control = 0
},
encoder = {
idx = 0,
size = 0,
prog = 0x0,
ic = 0,
eof_ic = 0,
reg = {0, 0, 0, 0, 0, 0, 0, 0},
private_state = 0,
last_block = 0,
status = 0,
buf_magnification = 0,
stack_idx = 0,
eol_type = 0,
multibyte = 0,
cr_consumed = 0,
suppress_error = 0,
eight_bit_control = 0
},
valid_codes = '\0' <repeats 255 times>,
cr_carryover = 0,
eight_bit_carryover = "\000\000\000"
}
},
category_idx = 0,
src_multibyte = 0,
dst_multibyte = 1,
heading_ascii = -1,
produced = 0,
produced_char = 0,
consumed = 0,
consumed_char = 0,
errors = 0,
result = 0,
suppress_error = 0,
symbol = 28106329,
post_read_conversion = 27949057,
pre_write_conversion = 27949057,
translation_table_for_decode = 0,
translation_table_for_encode = 0
}
buffer = '\0' <repeats 16383 times>
replace_handled = 0
set_coding_system = 1
coding_system_decided = 0
read_quit = 0
old_Vdeactivate_mark = 27949057
#1 0x01894d30 in Finsert_file_contents (filename=28429859, visit=27949057,
beg=-311288, end=524288, replace=27949057) at fileio.c:4762
val = 28106329
st = {
st_dev = 26674157,
st_ino = 27656192,
st_mode = 4294723248,
st_nlink = 27656192,
st_uid = 1,
st_gid = 26674176,
st_rdev = 27949057,
st_lspare0 = -244032,
st_atimespec = {
tv_sec = -244064,
tv_nsec = 26010676
},
st_mtimespec = {
tv_sec = 27656192,
tv_nsec = 23
},
st_ctimespec = {
tv_sec = 26674157,
tv_nsec = 27656192
},
st_size = -1048178150998016,
st_blocks = -1048246870181887,
st_blksize = 27949057,
st_flags = 4294723264,
st_gen = 4294723376,
st_lspare1 = 26015076,
__st_birthtimespec = {
tv_sec = 28034553,
tv_nsec = 26604837
},
st_qspare = {120040285795714021, 111732049491805888}
}
fd = 0
inserted = 0
how_much = 24
unprocessed = 524288
gcpro1 = {
next = 0xfffc4730,
var = 0x18cf428,
nvars = -244052
}
gcpro2 = {
next = 0x1004700,
var = 0xfffc4770,
nvars = 2
}
gcpro3 = {
next = 0xfffc4700,
var = 0x1a60000,
nvars = 1
}
gcpro4 = {
next = 0xd4162260,
var = 0x0,
nvars = 28341764
}
handler = 27949057
val = 28463581
insval = 28463581
orig_filename = 28429859
p = 28463581
total = 65536
not_regular = 0
read_buf = '\0' <repeats 65535 times>
coding = {
type = coding_type_no_conversion,
eol_type = 0,
common_flags = 0,
flags = 0,
mode = 0,
composing = 0,
composition_rule_follows = 0,
cmp_data = 0x0,
cmp_data_start = 0,
cmp_data_index = 0,
spec = {
iso2022 = {
current_invocation = {0, 0},
current_designation = {0, 0, 0, 0},
initial_designation = {0, 0, 0, 0},
last_invalid_designation_register = 0,
requested_designation = '\0' <repeats 254 times>,
charset_revision_number = '\0' <repeats 254 times>,
single_shifting = 0,
bol = 0
},
ccl = {
decoder = {
idx = 0,
size = 0,
prog = 0x0,
ic = 0,
eof_ic = 0,
reg = {0, 0, 0, 0, 0, 0, 0, 0},
private_state = 0,
last_block = 0,
status = 0,
buf_magnification = 0,
stack_idx = 0,
eol_type = 0,
multibyte = 0,
cr_consumed = 0,
suppress_error = 0,
eight_bit_control = 0
},
encoder = {
idx = 0,
size = 0,
prog = 0x0,
ic = 0,
eof_ic = 0,
reg = {0, 0, 0, 0, 0, 0, 0, 0},
private_state = 0,
last_block = 0,
status = 0,
buf_magnification = 0,
stack_idx = 0,
eol_type = 0,
multibyte = 0,
cr_consumed = 0,
suppress_error = 0,
eight_bit_control = 0
},
valid_codes = '\0' <repeats 255 times>,
cr_carryover = 0,
eight_bit_carryover = "\000\000\000"
}
},
category_idx = 0,
src_multibyte = 0,
dst_multibyte = 0,
heading_ascii = 0,
produced = 0,
produced_char = 0,
consumed = 0,
consumed_char = 0,
errors = 0,
result = 0,
suppress_error = 0,
symbol = 0,
post_read_conversion = 0,
pre_write_conversion = 0,
translation_table_for_decode = 0,
translation_table_for_encode = 0
}
buffer =
"\001\214\363\264\377\374G0\377\374H\000\001\215\033\234\001\253\324y\001\227\003\355\377\374G\240\000\000\000\026\001\246\000\000\377\374Ht\377\374Hp\377\374G8\377\374G<\377\377\377\377\000\000\364\325\001\225\365\020\001\225\364\320\001\252x\001\001\253\2741\001\260v\004\000\000\000\000\000\000\000\000\001\246\000\000\000\000\000\004\000\000\000\004\000\000\000\005\001\225\364\325\377\374G\240\000\000\000\001\001\252x\001\001\260v\004\001\215/@\001\246\000\000\001\262Xm\001\246\000\000\001\246\000\000\001\262X]\000\000\000\001\324\026\"`\000\000\000\v\001\246\000\000\001\246\000\000\001\246\000\000\000\000\000\v\000\000\000\004\001\246\000\000\001\227\003\305\001\246\000\000\001\246\000\000\001\262R]"...
replace_handled = 0
set_coding_system = 0
coding_system_decided = 0
read_quit = 0
old_Vdeactivate_mark = 0
Previous frame inner to this frame (corrupt stack?)
(gdb) b unbind_to
Breakpoint 11 at 0x18d363c: file eval.c, line 3340.
(gdb) c
Continuing.
Breakpoint 11, unbind_to (count=24, value=28463581) at eval.c:3340
3340 while (specpdl_ptr != specpdl + count)
(gdb) n
3338 Vquit_flag = Qnil;
(gdb)
3340 while (specpdl_ptr != specpdl + count)
(gdb)
3334 Lisp_Object quitf = Vquit_flag;
(gdb)
3338 Vquit_flag = Qnil;
(gdb)
3340 while (specpdl_ptr != specpdl + count)
(gdb)
3386 if (NILP (Vquit_flag) && !NILP (quitf))
(gdb)
Finsert_file_contents (filename=28429859, visit=27949057, beg=-311288,
end=524288, replace=27949057) at fileio.c:4767
4767 }
(gdb) display/1i $pc
1: x/i $pc 0x1894c84 <Finsert_file_contents+1352>: addis r5,r1,1
(gdb) si
0x01894c88 4767 }
1: x/i $pc 0x1894c88 <Finsert_file_contents+1356>: lis r4,422
(gdb)
0x01894c8c 4767 }
1: x/i $pc 0x1894c8c <Finsert_file_contents+1360>: lwz r0,18280(r5)
(gdb)
0x01894c90 4767 }
1: x/i $pc 0x1894c90 <Finsert_file_contents+1364>: lwz r9,-4416(r4)
(gdb)
0x01894c94 4767 }
1: x/i $pc 0x1894c94 <Finsert_file_contents+1368>: cmpw r0,r9
(gdb)
0x01894c98 4767 }
1: x/i $pc 0x1894c98 <Finsert_file_contents+1372>: mfcr r10
(gdb)
0x01894c9c 4767 }
1: x/i $pc 0x1894c9c <Finsert_file_contents+1376>: stw r10,144(r1)
(gdb)
0x01894ca0 4767 }
1: x/i $pc 0x1894ca0 <Finsert_file_contents+1380>:
beq- 0x1894cb4 <Finsert_file_contents+1400>
(gdb)
0x01894cb4 4767 }
1: x/i $pc 0x1894cb4 <Finsert_file_contents+1400>: lwz r11,0(r1)
(gdb)
0x01894cb8 4767 }
1: x/i $pc 0x1894cb8 <Finsert_file_contents+1404>: lwz r0,4(r11)
(gdb)
0x01894cbc 4767 }
1: x/i $pc 0x1894cbc <Finsert_file_contents+1408>: lwz r12,-76(r11)
(gdb)
0x01894cc0 4767 }
1: x/i $pc 0x1894cc0 <Finsert_file_contents+1412>: lwz r14,-72(r11)
(gdb)
0x01894cc4 4767 }
1: x/i $pc 0x1894cc4 <Finsert_file_contents+1416>: mtlr r0
(gdb)
0x01894cc8 4767 }
1: x/i $pc 0x1894cc8 <Finsert_file_contents+1420>: lwz r15,-68(r11)
(gdb)
0x01894ccc 4767 }
1: x/i $pc 0x1894ccc <Finsert_file_contents+1424>: lwz r16,-64(r11)
(gdb)
0x01894cd0 4767 }
1: x/i $pc 0x1894cd0 <Finsert_file_contents+1428>: mtcrf 24,r12
(gdb)
0x01894cd4 4767 }
1: x/i $pc 0x1894cd4 <Finsert_file_contents+1432>: lwz r17,-60(r11)
(gdb)
0x01894cd8 4767 }
1: x/i $pc 0x1894cd8 <Finsert_file_contents+1436>: lwz r18,-56(r11)
(gdb)
0x01894cdc 4767 }
1: x/i $pc 0x1894cdc <Finsert_file_contents+1440>: lwz r19,-52(r11)
(gdb)
0x01894ce0 4767 }
1: x/i $pc 0x1894ce0 <Finsert_file_contents+1444>: lwz r20,-48(r11)
(gdb)
0x01894ce4 4767 }
1: x/i $pc 0x1894ce4 <Finsert_file_contents+1448>: lwz r21,-44(r11)
(gdb)
0x01894ce8 4767 }
1: x/i $pc 0x1894ce8 <Finsert_file_contents+1452>: lwz r22,-40(r11)
(gdb)
0x01894cec 4767 }
1: x/i $pc 0x1894cec <Finsert_file_contents+1456>: lwz r23,-36(r11)
(gdb)
0x01894cf0 4767 }
1: x/i $pc 0x1894cf0 <Finsert_file_contents+1460>: lwz r24,-32(r11)
(gdb)
0x01894cf4 4767 }
1: x/i $pc 0x1894cf4 <Finsert_file_contents+1464>: lwz r25,-28(r11)
(gdb)
0x01894cf8 4767 }
1: x/i $pc 0x1894cf8 <Finsert_file_contents+1468>: lwz r26,-24(r11)
(gdb)
0x01894cfc 4767 }
1: x/i $pc 0x1894cfc <Finsert_file_contents+1472>: lwz r27,-20(r11)
(gdb)
0x01894d00 4767 }
1: x/i $pc 0x1894d00 <Finsert_file_contents+1476>: lwz r28,-16(r11)
(gdb)
0x01894d04 4767 }
1: x/i $pc 0x1894d04 <Finsert_file_contents+1480>: lwz r29,-12(r11)
(gdb)
0x01894d08 4767 }
1: x/i $pc 0x1894d08 <Finsert_file_contents+1484>: lwz r30,-8(r11)
(gdb)
0x01894d0c 4767 }
1: x/i $pc 0x1894d0c <Finsert_file_contents+1488>: lwz r31,-4(r11)
(gdb)
0x01894d10 4767 }
1: x/i $pc 0x1894d10 <Finsert_file_contents+1492>: mr r1,r11
(gdb)
0x01894d14 in Finsert_file_contents (filename=0, visit=0, beg=0, end=0,
replace=0) at fileio.c:4767
4767 }
1: x/i $pc 0x1894d14 <Finsert_file_contents+1496>: blr
(gdb)
0x00000000 in ?? ()
1: x/i $pc 0x0: Cannot access memory at address 0x0
Disabling display 1 to avoid infinite recursion.
(gdb)
- Failure to build on OpenBSD macppc, Richard Stallman, 2007/05/11
- Re: Failure to build on OpenBSD macppc, Ryan Yeske, 2007/05/13
- Re: Failure to build on OpenBSD macppc,
Alfred M. Szmidt <=
- Re: Failure to build on OpenBSD macppc, Richard Stallman, 2007/05/15
- Re: Failure to build on OpenBSD macppc, Alfred M. Szmidt, 2007/05/15
- Re: Failure to build on OpenBSD macppc, Richard Stallman, 2007/05/15
- Re: Failure to build on OpenBSD macppc, Alfred M. Szmidt, 2007/05/16
- Re: Failure to build on OpenBSD macppc, Richard Stallman, 2007/05/16
- Re: Failure to build on OpenBSD macppc, David Kastrup, 2007/05/16
- Re: Failure to build on OpenBSD macppc, Ryan Yeske, 2007/05/16
- Re: Failure to build on OpenBSD macppc, Alfred M. Szmidt, 2007/05/16
- Re: Failure to build on OpenBSD macppc, Glenn Morris, 2007/05/17
- Re: Failure to build on OpenBSD macppc, Alfred M. Szmidt, 2007/05/17