emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Auto-save? (y or n)" question when doing C-z


From: Dan Nicolaescu
Subject: "Auto-save? (y or n)" question when doing C-z
Date: Tue, 29 Jul 2008 10:57:04 -0700

Sometime when hitting C-z when using "emacs -nw" while a compilation is
going on, when resuming this question is asked:
Auto-save (y or n)
and after that:
Abort (and dump core)? (y or n)

Here's a backtrace when that happens:

(gdb) bt
#0  0x00110416 in __kernel_vsyscall ()
#1  0x00832ef3 in __read_nocancel () from /lib/libc.so.6
#2  0x007ce2ee in _IO_new_file_underflow () from /lib/libc.so.6
#3  0x007cffcb in _IO_default_uflow_internal () from /lib/libc.so.6
#4  0x007d1582 in __uflow () from /lib/libc.so.6
#5  0x007cacd7 in getc () from /lib/libc.so.6
#6  0x08102fde in handle_interrupt () at /usr/include/bits/stdio.h:47
#7  0x08106879 in kbd_buffer_store_event (event=0xbff04580) at 
/tmp/emacs/src/keyboard.c:3704
#8  0x08106b85 in tty_read_avail_input (terminal=0x8c0f878, expected=1, 
hold_quit=0xbff048b4)
    at /tmp/emacs/src/keyboard.c:7231
#9  0x081061ae in read_avail_input (expected=1) at 
/tmp/emacs/src/keyboard.c:7024
#10 0x081062aa in handle_async_input () at /tmp/emacs/src/keyboard.c:7251
#11 0x0816b2ed in Ffuncall (nargs=2, args=0xbff04990) at 
/tmp/emacs/src/eval.c:2971
#12 0x081a0260 in Fbyte_code (bytestr=143011339, vector=146890404, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:678
#13 0x0816d2c3 in funcall_lambda (fun=144122020, nargs=7, arg_vector=0xbff04a70)
    at /tmp/emacs/src/eval.c:3229
#14 0x0816d4d2 in apply_lambda (fun=144122020, args=147836869, eval_flag=1)
    at /tmp/emacs/src/eval.c:3153
#15 0x0816cb77 in Feval (form=147836861) at /tmp/emacs/src/eval.c:2433
#16 0x0816b4fc in Ffuncall (nargs=2, args=0xbff04bc0) at 
/tmp/emacs/src/eval.c:3042
#17 0x081a0260 in Fbyte_code (bytestr=136729763, vector=136729780, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:678
#18 0x0816d2c3 in funcall_lambda (fun=136729700, nargs=3, arg_vector=0xbff04d14)
    at /tmp/emacs/src/eval.c:3229
#19 0x0816b1eb in Ffuncall (nargs=4, args=0xbff04d10) at 
/tmp/emacs/src/eval.c:3099
#20 0x081a0260 in Fbyte_code (bytestr=136726371, vector=136726388, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:678
#21 0x0816d2c3 in funcall_lambda (fun=136726324, nargs=3, arg_vector=0xbff04e54)
    at /tmp/emacs/src/eval.c:3229
#22 0x0816b1eb in Ffuncall (nargs=4, args=0xbff04e50) at 
/tmp/emacs/src/eval.c:3099
#23 0x081a0260 in Fbyte_code (bytestr=136725131, vector=136725148, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:678
#24 0x0816d2c3 in funcall_lambda (fun=136725076, nargs=2, arg_vector=0xbff04f84)
    at /tmp/emacs/src/eval.c:3229
#25 0x0816b1eb in Ffuncall (nargs=3, args=0xbff04f80) at 
/tmp/emacs/src/eval.c:3099
#26 0x081a0260 in Fbyte_code (bytestr=136726827, vector=136726844, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:678
#27 0x0816d2c3 in funcall_lambda (fun=136726780, nargs=3, arg_vector=0xbff05100)
    at /tmp/emacs/src/eval.c:3229
#28 0x0816b1eb in Ffuncall (nargs=4, args=0xbff050fc) at 
/tmp/emacs/src/eval.c:3099
#29 0x0816c551 in run_hook_with_args (nargs=4, args=0xbff050fc, 
cond=to_completion)
    at /tmp/emacs/src/eval.c:2701
#30 0x08124547 in signal_after_change (charpos=812777, lendel=0, lenins=4095)
    at /tmp/emacs/src/insdel.c:2315
#31 0x08126ec6 in insert_from_string (string=148268091, pos=0, pos_byte=0, 
length=4095, length_byte=4095, inherit=0)
    at /tmp/emacs/src/insdel.c:1050
#32 0x08163104 in general_insert_function (insert_func=0x8127340 <insert>, 
    insert_from_string_func=0x8126e40 <insert_from_string>, inherit=0, nargs=1, 
args=0xbff051b0)
    at /tmp/emacs/src/editfns.c:2180
#33 0x081632a4 in Finsert (nargs=1, args=0xbff051b0) at 
/tmp/emacs/src/editfns.c:2224
#34 0x0819fbcb in Fbyte_code (bytestr=138123203, vector=138746124, 
maxdepth=<value optimized out>)
    at /tmp/emacs/src/bytecode.c:1257
#35 0x0816d2c3 in funcall_lambda (fun=138763564, nargs=2, arg_vector=0xbff052e4)
    at /tmp/emacs/src/eval.c:3229
#36 0x0816b1eb in Ffuncall (nargs=3, args=0xbff052e0) at 
/tmp/emacs/src/eval.c:3099
#37 0x0816c812 in Fapply (nargs=2, args=0xbff05330) at 
/tmp/emacs/src/eval.c:2530
#38 0x0816c964 in apply1 (fn=141048233, arg=163007045) at 
/tmp/emacs/src/eval.c:2794
#39 0x081a35fd in read_process_output_call (fun_and_args=163006933) at 
/tmp/emacs/src/process.c:5194
#40 0x0816a5c6 in internal_condition_case_1 (bfun=0x81a35e0 
<read_process_output_call>, arg=163006933, handlers=137802137, 
    hfun=0x81a3600 <read_process_output_error_handler>) at 
/tmp/emacs/src/eval.c:1559
#41 0x081a2f3b in read_process_output (proc=138180380, channel=<value optimized 
out>)
    at /tmp/emacs/src/process.c:5415
#42 0x081a7401 in wait_reading_process_output (time_limit=0, microsecs=0, 
read_kbd=-1, do_display=1, wait_for_cell=137758921, 
    wait_proc=0x0, just_wait_proc=0) at /tmp/emacs/src/process.c:5036
#43 0x0810b5d0 in read_char (commandflag=1, nmaps=2, maps=0xbff06a90, 
prev_event=137758921, used_mouse_menu=0xbff06b44, 
    end_time=0x0) at /tmp/emacs/src/keyboard.c:4046
#44 0x0810e131 in read_key_sequence (keybuf=0xbff06bf4, bufsize=30, 
prompt=137758921, dont_downcase_last=0, 
    can_return_switch_frame=1, fix_current_buffer=1) at 
/tmp/emacs/src/keyboard.c:9364
#45 0x08110224 in command_loop_1 () at /tmp/emacs/src/keyboard.c:1622
#46 0x0816a800 in internal_condition_case (bfun=0x8110040 <command_loop_1>, 
handlers=137802137, hfun=0x8109cf0 <cmd_error>)
    at /tmp/emacs/src/eval.c:1511
#47 0x081090f5 in command_loop_2 () at /tmp/emacs/src/keyboard.c:1340
#48 0x0816a8da in internal_catch (tag=137798113, func=0x81090d0 
<command_loop_2>, arg=137758921)
    at /tmp/emacs/src/eval.c:1247
#49 0x08109b4f in command_loop () at /tmp/emacs/src/keyboard.c:1319
#50 0x08109ecb in recursive_edit_1 () at /tmp/emacs/src/keyboard.c:944
#51 0x0810a014 in Frecursive_edit () at /tmp/emacs/src/keyboard.c:1006
#52 0x080ff4b3 in main (argc=3, argv=0xbff07274) at /tmp/emacs/src/emacs.c:1749

Lisp Backtrace:
"compilation-error-properties" (0xbff04a70)
"eval" (0xbff04bc4)
"font-lock-fontify-keywords-region" (0xbff04d14)
"font-lock-default-fontify-region" (0xbff04e54)
"font-lock-fontify-region" (0xbff04f84)
"font-lock-after-change-function" (0xbff05100)
"compilation-filter" (0xbff052e4)

emacs was started with -Q -nw. 

The code that asks the above questions is in keyboard.c:handle_interrupt.
Is it correct?  Not sure why it tries to abort...

Ideas?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]