Hi all --
Long time no bugs. That's good... 21.5.28 has been pretty stable for
us! One of our users just reported a problem that causes a segfault
though. On Linux, using a non-mule build of 21.5.28:
% echo ';; -*-coding: iso-8859-1;-*-' > q.el
% xemacs -batch -l q.el
Segmentation fault (core dumped)
Oops. The backtrace shows what looks to be an infinite loop. Inner and
outer sections are shown below.
I poked around in some of these functions but they're full of
indirections and somewhat hard to follow without context. Before I put
a serious effort into debugging this, can anybody suggest a likely
cause?
#0 0x002d3d5f in _int_malloc () from /lib/tls/libc.so.6
#1 0x002d30fd in malloc () from /lib/tls/libc.so.6
#2 0x08086bec in xmalloc (size=120) at alloc.c:390
#3 0x08086d00 in allocate_lisp_storage (size=120) at alloc.c:482
#4 0x08086d48 in old_basic_alloc_lcrecord (size=120, implementation=0x822f5a0) at
alloc.c:677
#5 0x08089a20 in alloc_managed_lcrecord (lcrecord_list=160642736) at alloc.c:3084
#6 0x0816020e in Lstream_new (imp=0x8245ba0, mode=0x8224db1 "w") at
lstream.c:222
#7 0x080f8e0e in make_coding_stream_1 (stream=0xca1f938, codesys=138022204,
mode=0x8224db1 "w", direction=CODING_DECODE, flags=0) at file-coding.c:2110
#8 0x080f8f4a in make_coding_output_stream (stream=0xca1f938, codesys=138022204,
direction=CODING_DECODE, flags=0) at file-coding.c:2171
#9 0x080fbbbb in undecided_convert (str=0xca1f630, src=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., dst=0xca1f668, n=29) at file-coding.c:3826
#10 0x080f8889 in coding_writer (stream=0xca1f5e8, data=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#11 0x081604e3 in Lstream_really_write (lstr=0xca1f5e8, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#12 0x081607f5 in Lstream_write_1 (lstr=0xca1f5e8, data=0x9a06610, size=29) at
lstream.c:514
#13 0x081609c3 in Lstream_write (lstr=0xca1f5e8, data=0x9a06610, size=29) at
lstream.c:602
#14 0x080fbdb1 in undecided_convert (str=0xca1f1c0, src=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., dst=0xca1f1f8, n=29) at file-coding.c:3900
#15 0x080f8889 in coding_writer (stream=0xca1f178, data=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#16 0x081604e3 in Lstream_really_write (lstr=0xca1f178, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#17 0x081607f5 in Lstream_write_1 (lstr=0xca1f178, data=0x9a06610, size=29) at
lstream.c:514
#18 0x081609c3 in Lstream_write (lstr=0xca1f178, data=0x9a06610, size=29) at
lstream.c:602
#19 0x080fbdb1 in undecided_convert (str=0xca1ed50, src=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., dst=0xca1ed88, n=29) at file-coding.c:3900
#20 0x080f8889 in coding_writer (stream=0xca1ed08, data=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#21 0x081604e3 in Lstream_really_write (lstr=0xca1ed08, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#22 0x081607f5 in Lstream_write_1 (lstr=0xca1ed08, data=0x9a06610, size=29) at
lstream.c:514
#23 0x081609c3 in Lstream_write (lstr=0xca1ed08, data=0x9a06610, size=29) at
lstream.c:602
#24 0x080fbdb1 in undecided_convert (str=0xca1e8e0, src=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., dst=0xca1e918, n=29) at file-coding.c:3900
#25 0x080f8889 in coding_writer (stream=0xca1e898, data=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#26 0x081604e3 in Lstream_really_write (lstr=0xca1e898, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#27 0x081607f5 in Lstream_write_1 (lstr=0xca1e898, data=0x9a06610, size=29) at
lstream.c:514
#28 0x081609c3 in Lstream_write (lstr=0xca1e898, data=0x9a06610, size=29) at
lstream.c:602
#29 0x080fbdb1 in undecided_convert (str=0xca1e470, src=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., dst=0xca1e4a8, n=29) at file-coding.c:3900
#30 0x080f8889 in coding_writer (stream=0xca1e428, data=0x9a06610 ";; -*-coding:
iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
...
#218270 0x080f8889 in coding_writer (stream=0x9ac3078, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#218271 0x081604e3 in Lstream_really_write (lstr=0x9ac3078, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#218272 0x081607f5 in Lstream_write_1 (lstr=0x9ac3078, data=0x9a06610, size=29) at
lstream.c:514
#218273 0x081609c3 in Lstream_write (lstr=0x9ac3078, data=0x9a06610, size=29) at
lstream.c:602
#218274 0x080fbdb1 in undecided_convert (str=0x9a71250, src=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., dst=0x9a71288, n=29) at file-coding.c:3900
#218275 0x080f8889 in coding_writer (stream=0x9a71208, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at file-coding.c:1886
#218276 0x081604e3 in Lstream_really_write (lstr=0x9a71208, data=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., size=29) at lstream.c:380
#218277 0x081607f5 in Lstream_write_1 (lstr=0x9a71208, data=0x9a06610, size=29) at
lstream.c:514
#218278 0x081609c3 in Lstream_write (lstr=0x9a71208, data=0x9a06610, size=29) at
lstream.c:602
#218279 0x080fbdb1 in undecided_convert (str=0x9ab2af8, src=0x9a06610 ";;
-*-coding: iso-8859-1;-*-\n"..., dst=0x9a711e8, n=29) at file-coding.c:3900
#218280 0x080f8788 in coding_reader (stream=0x9ab2ab0, data=0x99f6158
"ø\2069", size=8192) at file-coding.c:1854
#218281 0x08160b5a in Lstream_raw_read (lstr=0x9ab2ab0, buffer=0x99f6158
"ø\2069", size=8192) at lstream.c:628
#218282 0x08160bfb in Lstream_read_more (lstr=0x9ab2ab0) at lstream.c:648
#218283 0x08160de8 in Lstream_read_1 (lstr=0x9ab2ab0, data=0xfeffb027, size=1,
override_no_partial_chars=1) at lstream.c:714
#218284 0x08161190 in Lstream_fgetc (lstr=0x9ab2ab0) at lstream.c:896
#218285 0x08159ced in readchar (readcharfun=162212528) at lread.c:258
#218286 0x0815c860 in readevalloop (readcharfun=162212528, sourcename=161114004,
evalfun=0x80c5ca3 <Feval>, printflag=0) at lread.c:1446
#218287 0x0815b259 in Fload_internal (file=161114004, noerror=136876120,
nomessage=136874968, nosuffix=136876120, codesys=136792456, used_codesys=136876120) at
lread.c:768
#218288 0x080c6edb in Ffuncall (nargs=6, args=0xfeffb410) at eval.c:3915
#218289 0x08095253 in execute_optimized_program (program=0x83a9a78 "...",
stack_depth=11, constants_data=0x83254c4)at bytecode.c:862
#218290 0x080cc27c in funcall_compiled_function (fun=137988044, nargs=3,
args=0xfeffb674) at eval.c:3514
#218291 0x080c70ec in Ffuncall (nargs=4, args=0xfeffb670) at eval.c:3954
#218292 0x08095253 in execute_optimized_program (program=0x9a6fa40 "...",
stack_depth=4, constants_data=0x8313140)at bytecode.c:862
#218293 0x080cc27c in funcall_compiled_function (fun=137941492, nargs=1,
args=0xfeffb8c4) at eval.c:3514
#218294 0x080c70ec in Ffuncall (nargs=2, args=0xfeffb8c0) at eval.c:3954
#218295 0x08095253 in execute_optimized_program (program=0x9a71108 "...",
stack_depth=7, constants_data=0x8308514) at bytecode.c:862
#218296 0x080cc27c in funcall_compiled_function (fun=137922132, nargs=0,
args=0xfeffbb14) at eval.c:3514
#218297 0x080c70ec in Ffuncall (nargs=1, args=0xfeffbb10) at eval.c:3954
#218298 0x08095253 in execute_optimized_program (program=0x99c2628 "...",
stack_depth=4, constants_data=0x83099f8) at bytecode.c:862
#218299 0x080cc27c in funcall_compiled_function (fun=137925520, nargs=0,
args=0xfeffbd64) at eval.c:3514
#218300 0x080c70ec in Ffuncall (nargs=1, args=0xfeffbd60) at eval.c:3954
#218301 0x08095253 in execute_optimized_program (program=0x99189d8 "...",
stack_depth=7, constants_data=0x830a31c) at bytecode.c:862
#218302 0x080cc27c in funcall_compiled_function (fun=137927192, nargs=0,
args=0xfeffbf10) at eval.c:3514
#218303 0x080c6844 in Feval (form=136963348) at eval.c:3729
#218304 0x080c3956 in condition_case_1 (handlers=136874944, bfun=0x80c5ca3
<Feval>, barg=136963348, hfun=0x809eea3 <cmd_error>, harg=136876120) at
eval.c:1946
#218305 0x0809ef40 in top_level_1 (unused_dummy=136876120) at cmdloop.c:223
#218306 0x080c34d8 in internal_catch (tag=136653328, func=0x809eefe <top_level_1>,
arg=136876120, threw=0x0, thrown_tag=0x0, backtrace_before_throw=0x0) at eval.c:1552
#218307 0x0809f041 in initial_command_loop (load_me=136876120) at cmdloop.c:293
#218308 0x080be281 in xemacs_21_5_b28_i686_pc_linux (argc=4, argv=0xfeffc3f4,
unused_envp=0x0, restart=0) at emacs.c:2667
#218309 0x080bebe7 in main (argc=4, argv=0xfeffc3f4, unused_envp=0xfeffc408) at
emacs.c:3111
--
Ron Isaacson
Morgan Stanley
ron.isaacson(a)morganstanley.com / (212) 762-1051
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta