!!2 for the price of 1!!
As I started to investigate a serious problem in XEmacs-21.1, I came
across a less serious bug as well.
Problem #1 (Extremely serious):
In XEmacs 21.1.12, running gnus (recent CVS vintage), when I attempt
to open a mail from Jan: "Re: `looking-at' does not work for Japanese
chars", I get the following message, and then XEmacs hangs:
add address "jan.vroonhof(a)ntlworld.com" to "jan(a)xemacs.org,
jan.vro..."? (y or n)
There is no opportunity to answer either y or n; XEmacs is churning
away, and I can not ^G out either. While running under gdb, I can
interrupt the process and get the following backtrace:
#0 0x818340d in bi_scan_buffer (buf=0x89314b8, target=10, st=1, en=264, count=2147483642,
shortage=0xbfffad40, allow_quit=0) at
/usr/local/src/xemacs-21.1.12-debug/src/search.c:601
#1 0x818716d in scan_buffer (buf=0x89314b8, target=10, start=1, end=264,
count=2147483647,
shortage=0xbfffad40, allow_quit=0) at
/usr/local/src/xemacs-21.1.12-debug/src/search.c:681
#2 0x8146c1e in buffer_line_number (b=0x89314b8, pos=264, cachep=0)
at /usr/local/src/xemacs-21.1.12-debug/src/line-number.c:297
#3 0x816ddb1 in window_line_number (w=0x880f1e8, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:5743
#4 0x816df2f in decode_mode_spec (w=0x880f1e8, spec=108, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:5818
#5 0x816a5fb in generate_fstring_runes (w=0x880f1e8, data=0xbfffaf54, pos=47, min_pos=46,
max_pos=-1, elt=137294140, depth=3, max_pixsize=607, findex=1, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:3836
#6 0x816aa0a in generate_fstring_runes (w=0x880f1e8, data=0xbfffaf54, pos=46, min_pos=0,
max_pos=-1, elt=144454588, depth=1, max_pixsize=607, findex=1, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:3985
#7 0x8169dfa in generate_formatted_string_db (format_str=144454588, result_str=141930388,
w=0x880f1e8, dl=0x88a76c0, db=0x866a640, findex=1, min_pixpos=6, max_pixpos=613,
type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:3580
#8 0x8169c77 in generate_modeline (w=0x880f1e8, dl=0x88a76c0, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:3539
#9 0x816af0d in ensure_modeline_generated (w=0x880f1e8, type=2)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:4150
#10 0x8176ba8 in real_current_modeline_height (w=0x880f1e8)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:4163
#11 0x81c8329 in window_modeline_height (w=0x880f1e8)
at /usr/local/src/xemacs-21.1.12-debug/src/window.c:917
#12 0x81d48c0 in window_bottom_gutter_height (w=0x880f1e8)
at /usr/local/src/xemacs-21.1.12-debug/src/window.c:1055
#13 0x816f489 in start_end_of_last_line (w=0x880f1e8, startp=1, end=1, may_error=1)
at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:6639
#14 0x81749fe in pixel_to_glyph_translation (f=0x8470648, x_coord=178, y_coord=399,
col=0xbfffb2f4, row=0xbfffb2f8, obj_x=0xbfffb2fc, obj_y=0xbfffb300, w=0xbfffb304,
bufpos=0xbfffb308, closest=0xbfffb30c, modeline_closest=0xbfffb310, obj1=0xbfffb314,
obj2=0xbfffb318) at /usr/local/src/xemacs-21.1.12-debug/src/redisplay.c:6734
#15 0x80c4326 in event_pixel_translation (event=144447564, char_x=0x0, char_y=0x0,
obj_x=0x0,
obj_y=0x0, w=0xbfffb368, bufp=0x0, closest=0x0, modeline_closest=0x0, obj1=0x0,
obj2=0x0)
at /usr/local/src/xemacs-21.1.12-debug/src/events.c:1708
#16 0x80c559c in Fevent_window (event=144447564)
---Type <return> to continue, or q <return> to quit---
at /usr/local/src/xemacs-21.1.12-debug/src/events.c:1838
#17 0x8141029 in get_relevant_keymaps (keys=144447564, max_maps=100, maps=0xbfffb41c)
at /usr/local/src/xemacs-21.1.12-debug/src/keymap.c:2347
#18 0x814174f in Fkey_binding (keys=144447564, accept_default=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/keymap.c:2571
#19 0x80ba7cd in funcall_recording_as (recorded_as=137983116, nargs=1, args=0xbfffb694)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3193
#20 0x80bf339 in Ffuncall (nargs=2, args=0xbfffb694)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#21 0x808f7b9 in Fbyte_code (bytestr=137076660, vector=137076700, maxdepth=5)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#22 0x80ba1c7 in Feval (form=137076636) at
/usr/local/src/xemacs-21.1.12-debug/src/eval.c:3063
#23 0x80b79af in condition_case_1 (handlers=137076748, bfun=0x80b95cc <Feval>,
barg=137076636,
hfun=0x80bf6b8 <run_condition_case_handlers>, harg=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:1653
#24 0x80b7bab in condition_case_3 (bodyform=137076636, var=137878868, handlers=137076748)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:1715
#25 0x808fb8a in Fbyte_code (bytestr=137076192, vector=137076392, maxdepth=17)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:576
#26 0x80bbb19 in funcall_lambda (fun=137076900, nargs=1, arg_vector=0xbfffbeb8)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#27 0x80ba9f2 in funcall_recording_as (recorded_as=138398656, nargs=1, args=0xbfffbeb4)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#28 0x80bf339 in Ffuncall (nargs=2, args=0xbfffbeb4)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#29 0x808f7b9 in Fbyte_code (bytestr=139936628, vector=139812624, maxdepth=7)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#30 0x80bbb19 in funcall_lambda (fun=139810360, nargs=1, arg_vector=0xbfffd568)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#31 0x80ba9f2 in funcall_recording_as (recorded_as=139885800, nargs=1, args=0xbfffd564)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#32 0x80bf339 in Ffuncall (nargs=2, args=0xbfffd564)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#33 0x808f7b9 in Fbyte_code (bytestr=140043196, vector=139708920, maxdepth=17)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#34 0x80bbb19 in funcall_lambda (fun=140039092, nargs=4, arg_vector=0xbfffd878)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#35 0x80ba9f2 in funcall_recording_as (recorded_as=140019656, nargs=4, args=0xbfffd874)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
---Type <return> to continue, or q <return> to quit---
#36 0x80bf339 in Ffuncall (nargs=5, args=0xbfffd874)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#37 0x808f7b9 in Fbyte_code (bytestr=140689116, vector=140793016, maxdepth=13)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#38 0x80bbb19 in funcall_lambda (fun=140664532, nargs=0, arg_vector=0xbfffdc40)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#39 0x80ba9f2 in funcall_recording_as (recorded_as=139024932, nargs=0, args=0xbfffdc3c)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#40 0x80bbe24 in run_hook_with_args_in_buffer (buf=0x89314b8, nargs=1, args=0xbfffdc3c,
cond=RUN_HOOKS_TO_COMPLETION) at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#41 0x80be491 in run_hook_with_args (nargs=1, args=0xbfffdc3c,
cond=RUN_HOOKS_TO_COMPLETION)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3771
#42 0x80bf804 in Frun_hooks (nargs=1, args=0xbfffdc3c)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3625
#43 0x80ba74b in funcall_recording_as (recorded_as=137962472, nargs=1, args=0xbfffdc38)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3178
#44 0x80bb13a in Fapply (nargs=2, args=0xbfffdc38)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#45 0x80ba74b in funcall_recording_as (recorded_as=137963100, nargs=2, args=0xbfffdc34)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3178
#46 0x80bf339 in Ffuncall (nargs=3, args=0xbfffdc34)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#47 0x808f7b9 in Fbyte_code (bytestr=140733724, vector=140735184, maxdepth=7)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#48 0x80bbb19 in funcall_lambda (fun=140698908, nargs=1, arg_vector=0xbfffde38)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#49 0x80ba9f2 in funcall_recording_as (recorded_as=140693312, nargs=1, args=0xbfffde34)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#50 0x80bf339 in Ffuncall (nargs=2, args=0xbfffde34)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#51 0x808f7b9 in Fbyte_code (bytestr=141829212, vector=142907952, maxdepth=5)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#52 0x80bbb19 in funcall_lambda (fun=143092428, nargs=0, arg_vector=0xbfffe6d8)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#53 0x80ba9f2 in funcall_recording_as (recorded_as=140265192, nargs=0, args=0xbfffe6d4)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#54 0x80bf339 in Ffuncall (nargs=1, args=0xbfffe6d4)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#55 0x808f7b9 in Fbyte_code (bytestr=142085308, vector=142907608, maxdepth=7)
---Type <return> to continue, or q <return> to quit---
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#56 0x80bbb19 in funcall_lambda (fun=143018612, nargs=2, arg_vector=0xbfffea58)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#57 0x80ba9f2 in funcall_recording_as (recorded_as=140848160, nargs=2, args=0xbfffea54)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#58 0x80bf339 in Ffuncall (nargs=3, args=0xbfffea54)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#59 0x808f7b9 in Fbyte_code (bytestr=139735436, vector=142313496, maxdepth=11)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#60 0x80bbb19 in funcall_lambda (fun=142227424, nargs=1, arg_vector=0xbfffef58)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#61 0x80ba9f2 in funcall_recording_as (recorded_as=142254548, nargs=1, args=0xbfffef54)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#62 0x80bf339 in Ffuncall (nargs=2, args=0xbfffef54)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#63 0x808f7b9 in Fbyte_code (bytestr=141475284, vector=142322736, maxdepth=11)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#64 0x80bbb19 in funcall_lambda (fun=142227676, nargs=2, arg_vector=0xbffff108)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#65 0x80ba9f2 in funcall_recording_as (recorded_as=140767412, nargs=2, args=0xbffff104)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#66 0x80bf339 in Ffuncall (nargs=3, args=0xbffff104)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#67 0x808f7b9 in Fbyte_code (bytestr=142168916, vector=142103288, maxdepth=7)
at /usr/local/src/xemacs-21.1.12-debug/src/bytecode.c:416
#68 0x80bbb19 in funcall_lambda (fun=142053324, nargs=1, arg_vector=0xbffff288)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3597
#69 0x80ba9f2 in funcall_recording_as (recorded_as=142189116, nargs=1, args=0xbffff284)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3214
#70 0x80bf339 in Ffuncall (nargs=2, args=0xbffff284)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:3238
#71 0x80921bb in Fcall_interactively (function=142189116, record_flag=137878868,
keys=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/callint.c:949
#72 0x80b8fbe in Fcommand_execute (cmd=142189116, record=137878868, keys=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:2584
#73 0x80f2665 in execute_command_event (command_builder=0x83d5040, event=141423380)
at /usr/local/src/xemacs-21.1.12-debug/src/event-stream.c:4346
#74 0x80f318c in Fdispatch_event (event=141423380)
at /usr/local/src/xemacs-21.1.12-debug/src/event-stream.c:4637
---Type <return> to continue, or q <return> to quit---
#75 0x8097f18 in Fcommand_loop_1 () at
/usr/local/src/xemacs-21.1.12-debug/src/cmdloop.c:579
#76 0x809816d in command_loop_1 (dummy=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/cmdloop.c:494
#77 0x80b79af in condition_case_1 (handlers=137878980, bfun=0x809811c
<command_loop_1>,
barg=137878868, hfun=0x80981e0 <cmd_error>, harg=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:1653
#78 0x80982d7 in command_loop_2 (dummy=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/cmdloop.c:256
#79 0x80befb0 in internal_catch (tag=137953268, func=0x809829c <command_loop_2>,
arg=137878868,
threw=0x0) at /usr/local/src/xemacs-21.1.12-debug/src/eval.c:1328
#80 0x809753d in initial_command_loop (load_me=137878868)
at /usr/local/src/xemacs-21.1.12-debug/src/cmdloop.c:305
#81 0x80b2def in xemacs_21_1_12_i686_pc_linux ()
at /usr/local/src/xemacs-21.1.12-debug/src/emacs.c:1720
#82 0x80b4a08 in main (argc=1, argv=0xbffff864, envp=0xbffff86c)
at /usr/local/src/xemacs-21.1.12-debug/src/emacs.c:2137
#83 0x402d3cae in __libc_start_main (main=0x80b4900 <main>, argc=1, argv=0xbffff864,
init=0x807a1c8 <_init>, fini=0x81fa344 <_fini>, rtld_fini=0x4000a490
<_dl_fini>,
stack_end=0xbffff85c) at ../sysdeps/generic/libc-start.c:92
Has anyone else ever seen such a thing? I thought the count looked
suspicious, but that seems to be set explicitly in the code. Why is
allow_quit = 0? I tried setting it to 1, but I still could not ^G out
of the code.
Problem #2 (Certainly less severe, and likely less important):
When attempting to isolate Problem #1 with a debuggable XEmacs
21.1.12, I get a large number of the following messages upon entering
a group in Gnus:
Comparison between integer and character is constant nil (?0 and 1)
[parse-time-tokenize, parse-time-string, byte-code, date-to-time, safe-date-to-time,
gnus-thread-sort-by-date, or, (lambda (t1 t2) (or (gnus-thread-sort-by-date t1 t2) (and
(not (gnus-thread-sort-by-date t2 t1)) (gnus-thread-sort-by-number t1 t2)))), sort,
gnus-sort-threads-1, gnus-sort-threads, gnus-summary-prepare, gnus-summary-read-group-1,
gnus-summary-read-group, gnus-group-read-group, gnus-group-select-group,
call-interactively]
I don't see Problem #2 under a debuggable 21.2 from the latest CVS,
BTW. This warning does not seem to have any deleterious effects,
either - I can read the group just fine.
Any thoughts or tips on either bug would be helpful.
- vin