On 4551 September 1993, Stephen J. Turnbull wrote:
>>>>> "HS" == Holger Schauer
<Holger.Schauer(a)gmx.de> writes:
HS> Yes. It took quite some time, but I can now. It seems
that
HS> completion is also involved (I have some kind of deja vu --
HS> didn't I report nearly exactly the same problem some time/beta
HS> version ago?). Anyway.
Could be. I'll try searching for it. Re: your recipe
8) Move to (beginning-of-buffer)
9) Hit the key 'm'
I made a mistake: you have to insert a blank or hit the delete key
afterwards.
10) See the backtrace in your gdb.
I really appreciate you going to the trouble of working this out!
Unfortunately, your recipe does _not_ crash on Mac OS X, or on
Linux, for me. [..] Now, when I type "m", I just get
"m#!/usr/bin/perl -w" in the buffer. What do you expect to get?
Right, my mistake, sorry. If I insert a blank directly after the "m"
or hit the backspace-key, XEmacs crashes.
But since it doesn't happen for me, it seems like maybe you
already
have some kind of completion or advice active that I don't?
I just did what I reported in the recipe.
Could you try sourcing .gdbinit (from the XEmacs src directory) into
gdb, then start XEmacs, execute the recipe, then type lbt (==
lisp_back_trace)? That should tell us more about what LISP was doing
at the time. In particular, I'd like to know if it's in completion
and what it's trying to do at the time.
I can't figure it out. Here's the lbt:
(gdb) lbt
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
("(in map-extents-internal)" "[internal]")
put-nonduplicable-text-property(1 22 syntax-table nil)
# bind (start end modified buffer-undo-list inhibit-read-only buffer-file-name
buffer-file-truename maybe-loudly end beg)
font-lock-default-unfontify-region(1 22 nil)
# bind (loudly end beg)
font-lock-unfontify-region(1 22)
# (unwind-protect ...)
# bind (modified buffer-undo-list inhibit-read-only old-syntax-table buffer-fi
le-name buffer-file-truename loudly end beg)
font-lock-default-fontify-region(1 22 nil)
# bind (loudly end beg)
font-lock-fontify-region(1 22)
# bind (val end beg)
#<compiled-function (beg end val) "...(5)" [end beg
font-lock-fontify-region]
3>(1 22 t)
map-range-table(#<compiled-function (beg end val) "...(5)" [end beg
font-lock-
fontify-region] 3> #<range-table [1 22) t 0x6e1ae>)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (dummy buffer)
#<compiled-function (buffer dummy) "...(47)"
[font-lock-pending-buffer-table f
ont-lock-range-table buffer remhash buffer-live-p clear-range-table map-extents
#<compiled-function (ex dummy-maparg) "...(32)" [font-lock-range-table ex end
be
g extent-start-position extent-end-position 0 1 put-range-table t] 5> nil font-l
ock-pending t put-text-property map-range-table #<compiled-function (beg end val
) "...(5)" [end beg font-lock-fontify-region] 3>] 9>(#<buffer
"foo.pl"> t)
# (unwind-protect ...)
maphash(#<compiled-function (buffer dummy) "...(47)"
[font-lock-pending-buffer
-table font-lock-range-table buffer remhash buffer-live-p clear-range-table map-
extents #<compiled-function (ex dummy-maparg) "...(32)"
[font-lock-range-table e
x end beg extent-start-position extent-end-position 0 1 put-range-table t] 5> ni
l font-lock-pending t put-text-property map-range-table #<compiled-function (beg
end val) "...(5)" [end beg font-lock-fontify-region] 3>] 9>
#<hash-table size 0
/29 weakness key 0x6e1ac>)
# (unwind-protect ...)
# bind (match-data)
font-lock-fontify-pending-extents()
#<compiled-function nil "...(10)" [font-lock-pending-buffer-table
hash-table-c
ount 0 font-lock-fontify-pending-extents] 2>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function (__call_trapping_errors_arg__)
"...(17)" [__call_trapping_errors_arg__ errstr error-message-string lwarn
gener
al warning "Error in %s: %s\n\nBacktrace follows:\n\n%s" "unknown"
backtrace-in-
condition-handler-eliminating-handler] 8> #<compiled-function nil
"...(10)" [fon
t-lock-pending-buffer-table hash-table-count 0 font-lock-fontify-pending-extents
] 2>)
# (condition-case ... . ((error)))
font-lock-pre-idle-hook()
# (unwind-protect ...)
# (catch #<INTERNAL OBJECT (XEmacs bug?) (opaque, size=0) 0x8cf3020> ...)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (inhibit-quit)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (inhibit-quit)
(next-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
I include the C-backtrace as well for my recipe:
#0 0xb7be683b in raise () from /lib/tls/libc.so.6
#1 0xb7be7fa2 in abort () from /lib/tls/libc.so.6
#2 0x080e4723 in really_abort () at emacs.c:4659
#3 0x080e2304 in assert_failed (file=0x82fb660 "marker.c", line=345,
expr=0x82e9f60 "RECORD_TYPEP (obj, lrecord_type_marker)") at emacs.c:3982
#4 0x08112617 in error_check_marker (obj=146804672,
file=0x82fb660 "marker.c", line=345) at lisp.h:2919
#5 0x081d2a88 in byte_marker_position (marker=146804672) at marker.c:345
#6 0x0825a0c8 in signal_syntax_table_extent_changed (extent=0x865df34)
at syntax.c:412
#7 0x08121913 in signal_single_extent_changed (extent=0x865df34,
property=146804672, unused_old_start=2, unused_old_end=2) at extents.c:1925
#8 0x08121a4b in signal_extent_changed (extent=0x865df34, property=146804672,
old_start=2, old_end=2, descendants_too=0) at extents.c:1966
#9 0x08121fe1 in extent_detach (extent=0x865df34) at extents.c:2126
#10 0x0812c289 in put_text_prop_mapper (e=0x865df34, arg=0xbfdb6690)
at extents.c:6882
#11 0x08122b84 in map_extents (from=1, to=22,
fn=0x812bff1 <put_text_prop_mapper>, arg=0xbfdb6690, obj=138945936,
after=0x0, flags=5125) at extents.c:2577
#12 0x0812c899 in put_text_prop (start=1, end=22, object=138945936,
prop=146765456, value=146804672, duplicable_p=0) at extents.c:7035
#13 0x0812cb6b in Fput_nonduplicable_text_property (start=3, end=45,
prop=146765456, value=146804672, object=138945936) at extents.c:7131
#14 0x080ec9c8 in Ffuncall (nargs=5, args=0xbfdb67b4) at eval.c:3890
#15 0x0809ec9f in execute_optimized_program (
program=0x865a060 "\t«\024\b«\021\r\vZ\016\022Y«\tÆÇÈÉÊ $\210Ë
Ì\211Í\211\036\023\036\024\036\025\036\026\032\v\r\035\034Î\f\rÏÍ$\210Î\f\rÇÍ$\210\016\027«\bÎ\f\rÐÍ$\210*\n?\bË
\004ÑÍ!-\207\025ÌÔ\033P", stack_depth=5,
constants_data=0x8caadd8) at bytecode.c:862
#16 0x080f491d in funcall_compiled_function (fun=140687908, nargs=3,
args=0xbfdb6a08) at eval.c:3492
#17 0x080ecc2c in Ffuncall (nargs=4, args=0xbfdb6a04) at eval.c:3929
#18 0x0809ec9f in execute_optimized_program (
program=0x865b378 "\v\n\t\b#\207", stack_depth=4, constants_data=0x8630b18)
at bytecode.c:862
#19 0x080f491d in funcall_compiled_function (fun=140687732, nargs=2,
args=0xbfdb6c58) at eval.c:3492
#20 0x080ecc2c in Ffuncall (nargs=3, args=0xbfdb6c54) at eval.c:3929
#21 0x0809ec9f in execute_optimized_program (
program=0x8660008 "Æ Ç\211È
É\211\031\030\036\020\036\021\036\022\036\023Ê\216\v«\005Ë\v!\210Ì\r\f\"\210\016\024«\006Í\r\f\"\210\016\025¬\aÎ\r\f\n#\210Ï\r\f\n#.\a\207",
stack_depth=6, constants_data=0x8611368) at bytecode.c:862
#22 0x080f491d in funcall_compiled_function (fun=140687864, nargs=3,
args=0xbfdb6ea8) at eval.c:3492
#23 0x080ecc2c in Ffuncall (nargs=4, args=0xbfdb6ea4) at eval.c:3929
#24 0x0809ec9f in execute_optimized_program (
program=0x865b608 "\v\n\t\b#\207", stack_depth=4, constants_data=0x8630b00)
at bytecode.c:862
#25 0x080f491d in funcall_compiled_function (fun=140687688, nargs=2,
args=0xbfdb70f8) at eval.c:3492
#26 0x080ecc2c in Ffuncall (nargs=3, args=0xbfdb70f4) at eval.c:3929
#27 0x0809ec9f in execute_optimized_program (program=0x8671118
"Â\t\b\"\207",
stack_depth=3, constants_data=0x8532cec) at bytecode.c:862
#28 0x080f491d in funcall_compiled_function (fun=140688260, nargs=3,
args=0xbfdb7344) at eval.c:3492
#29 0x080ecc2c in Ffuncall (nargs=4, args=0xbfdb7340) at eval.c:3929
#30 0x08204d56 in Fmap_range_table (function=140688260, range_table=140819396)
at rangetab.c:615
#31 0x080ec91d in Ffuncall (nargs=3, args=0xbfdb7444) at eval.c:3890
#32 0x0809ec9f in execute_optimized_program (
program=0x866e0b0
"Ã\n\b\"\210Ä\n!%Å\t!\210r\nq\210\212\214~\210ÆÇÈ\211\211\211\211ÉÊ&\b\210ËedÉÈ$\210ÌÍ\t\"+\207",
stack_depth=9,
constants_data=0x8cdfe08) at bytecode.c:862
#33 0x080f491d in funcall_compiled_function (fun=140688304, nargs=2,
args=0xbfdb76c4) at eval.c:3492
#34 0x080ecc2c in Ffuncall (nargs=3, args=0xbfdb76c0) at eval.c:3929
#35 0x080ddeff in Fmaphash (function=140688304, hash_table=140724136)
at elhash.c:1453
#36 0x080ec91d in Ffuncall (nargs=3, args=0xbfdb77b4) at eval.c:3890
#37 0x0809ec9f in execute_optimized_program (
program=0x866d0bc "Â \031Ã\216ÄÅ\b\"*\207", stack_depth=3,
constants_data=0x8637108) at bytecode.c:862
#38 0x080f491d in funcall_compiled_function (fun=140688348, nargs=0,
args=0xbfdb79f8) at eval.c:3492
#39 0x080ecc2c in Ffuncall (nargs=1, args=0xbfdb79f4) at eval.c:3929
#40 0x0809ec9f in execute_optimized_program (
program=0x866d080 "Á\b!ÂV\003Ã \207", stack_depth=2,
constants_data=0x8630c38) at bytecode.c:862
#41 0x080f491d in funcall_compiled_function (fun=140688084, nargs=0,
args=0xbfdb7c68) at eval.c:3492
#42 0x080ecc2c in Ffuncall (nargs=1, args=0xbfdb7c64) at eval.c:3929
#43 0x080e9335 in Fcall_with_condition_handler (nargs=2, args=0xbfdb7c60)
at eval.c:2101
#44 0x080ec0a6 in Feval (form=140819876) at eval.c:3673
#45 0x080e8c8a in condition_case_1 (handlers=140820296,
bfun=0x80eb4c8 <Feval>, barg=140819876,
hfun=0x80e8db4 <run_condition_case_handlers>, harg=146804672)
at eval.c:1924
#46 0x080e919c in condition_case_3 (bodyform=140819876, var=146804672,
handlers=140820296) at eval.c:2006
#47 0x080a01f2 in execute_rare_opcode (stack_ptr=0xbfdb7f84,
unused_program_ptr=0x865bcec "\207", opcode=Bcondition_case)
at bytecode.c:1438
#48 0x0809e9b6 in execute_optimized_program (program=0x865bce8 "ÀÁÂ\217\207",
stack_depth=3, constants_data=0x8532cd8) at bytecode.c:754
#49 0x080f491d in funcall_compiled_function (fun=140688128, nargs=0,
args=0xbfdb8264) at eval.c:3492
#50 0x080ecc2c in Ffuncall (nargs=1, args=0xbfdb8260) at eval.c:3929
#51 0x080edc07 in run_hook_with_args_in_buffer (buf=0x8482590, nargs=1,
args=0xbfdb8260, cond=RUN_HOOKS_TO_COMPLETION) at eval.c:4412
#52 0x080edc6f in run_hook_with_args (nargs=1, args=0xbfdb8260,
cond=RUN_HOOKS_TO_COMPLETION) at eval.c:4425
#53 0x080edebb in run_hook (hook=140708360) at eval.c:4494
#54 0x080efda7 in safe_run_hook_trapping_problems_1 (puta=0x8bd0f30)
at eval.c:5580
#55 0x080eead9 in call_trapping_problems_2 (opaque=147796224) at eval.c:4930
#56 0x080e93be in call_with_condition_handler (
handler=0x80eea2e <flagged_a_squirmer>, handler_arg=147796224,
fun=0x80eeaa1 <call_trapping_problems_2>, arg=147796224) at eval.c:2135
#57 0x080eeb03 in call_trapping_problems_1 (opaque=147796224) at eval.c:4936
#58 0x080e8719 in internal_catch (tag=147796000,
func=0x80eeadb <call_trapping_problems_1>, arg=147796224,
threw=0xbfdb83fc, thrown_tag=0xbfdb8408, backtrace_before_throw=0xbfdb8400)
at eval.c:1530
#59 0x080eef41 in call_trapping_problems (warning_class=146798344,
warning_string=0x0, flags=131235, problem=0xbfdb8500,
fun=0x80efd90 <safe_run_hook_trapping_problems_1>, arg=0x8bd0f30)
at eval.c:5209
#60 0x080efe72 in safe_run_hook_trapping_problems (warning_class=146610336,
hook_symbol=146607920, flags=160) at eval.c:5602
#61 0x08103512 in run_pre_idle_hook () at event-stream.c:2104
#62 0x08216299 in redisplay () at redisplay.c:7152
#63 0x08103a0f in Fnext_event (event=140751776, prompt=146804672)
at event-stream.c:2286
#64 0x080b06f3 in Fcommand_loop_1 () at cmdloop.c:599
#65 0x080b04cd in command_loop_1 (unused_dummy=146804672) at cmdloop.c:505
#66 0x080e8c8a in condition_case_1 (handlers=146798344,
bfun=0x80b049b <command_loop_1>, barg=146804672,
hfun=0x80b00af <cmd_error>, harg=146804672) at eval.c:1924
#67 0x080b01cb in command_loop_3 () at cmdloop.c:262
#68 0x080b01ed in command_loop_2 (unused_dummy=146804672) at cmdloop.c:275
#69 0x080e8719 in internal_catch (tag=146553304,
func=0x80b01e2 <command_loop_2>, arg=146804672, threw=0x0, thrown_tag=0x0,
backtrace_before_throw=0x0) at eval.c:1530
#70 0x080b0304 in initial_command_loop (load_me=146804672) at cmdloop.c:313
#71 0x080e1054 in xemacs_21_5_b24_i686_pc_linux (argc=2, argv=0xbfdb8a74,
unused_envp=0x0, restart=0) at emacs.c:2663
#72 0x080e1a35 in main (argc=2, argv=0xbfdb8a74, unused_envp=0xbfdb8a80)
at emacs.c:3107
I'll try to figure out whether I can trigger the crash without
byte-compiled emacs lisp files. Perhaps it'll get clearer then.
Holger
--
---
http://www.coling.uni-freiburg.de/~schauer/ ---
"Fernab jeder hormonellen Verblendung faellt eine frappierende
Aehnlichkeit in Koerperbau, Haltung, Mimik, Feingefuehl und
technischem Sachverstand zwischen Frau und Tyrannosaurus Rex
unmittelbar ins Auge." -- J.E. Guenther in de.alt.sysadmin.recovery