This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: emacs-w32 24.3-7 aborts frequently using TRAMP


On 11/18/2013 9:21 AM, Ken Brown wrote:
Can you do some experimentation to try to narrow this down?  For example:

* Is it related to Tramp or not?

* Does the abort still occur if you start emacs with "emacs -Q"?

* Is the problem specific to emacs-w32 or does it happen with emacs-nox and emacs-X11 also?

* Is there a minimal sequence of steps that will eventually lead to an abort? Is starting up Tramp and then leaving emacs idle sufficient?

* Have you checked http://cygwin.com/faq/faq.html#faq.using.bloda ?

Ken

The problem seems specifically related to TRAMP. I opened up three emacs-w32 sessions, with the following settings:

* emacs-w32, no TRAMP
* emacs-w32 -Q, TRAMP
* emacs-w32 -Q, no TRAMP

and left them running in the background. Only the session with TRAMP has aborted so far. The backtrace for the abort from GDB is shown below:

#0  0x000007fefd373ca3 in KERNELBASE!DebugBreak () from /cygdrive/c/Windows/system32/KERNELBASE.dll
#1  0x000000010056f32b in emacs_abort () at /usr/src/debug/emacs-24.3-7/src/w32fns.c:7714
#2  0x00000001004ffed5 in do_symval_forwarding (valcontents=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/data.c:854
#3  0x000000010051371a in specbind (symbol=4304981426, value=4304630882) at /usr/src/debug/emacs-24.3-7/src/eval.c:3106
#4  0x00000001004a6b25 in timer_check_2 (idle_timers=<optimized out>, timers=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:4385
#5  timer_check () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:4454
#6  0x00000001004a6f6a in readable_events (flags=1) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:3351
#7  0x00000001004a7e85 in get_input_pending (flags=flags@entry=1) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:6680
#8  0x00000001004aa2ad in detect_input_pending_run_timers (do_display=do_display@entry=true) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:10273
#9  0x0000000100551406 in wait_reading_process_output (time_limit=time_limit@entry=0, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=4304630834, wait_proc=wait_proc@entry=0x0,
    just_wait_proc=just_wait_proc@entry=0) at /usr/src/debug/emacs-24.3-7/src/process.c:4743
#10 0x00000001004ab2ae in kbd_buffer_get_event (end_time=0x0, used_mouse_menu=0x428597, kbp=<synthetic pointer>) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:3803
#11 read_char (commandflag=1, nmaps=2, maps=0x428470, prev_event=4304630834, used_mouse_menu=0x428597, end_time=end_time@entry=0x0) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:2769
#12 0x00000001004ad463 in read_key_sequence (keybuf=keybuf@entry=0x4286e0, prompt=<optimized out>, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true,
    bufsize=30) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:9231
#13 0x00000001004af75e in command_loop_1 () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1459
#14 0x0000000100510cde in internal_condition_case (bfun=bfun@entry=0x1004af540 <command_loop_1>, handlers=4304832354, hfun=hfun@entry=0x1004a58a0 <cmd_error>) at /usr/src/debug/emacs-24.3-7/src/eval.c:1289
#15 0x00000001004a09da in command_loop_2 (ignore=ignore@entry=4304630834) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1168
#16 0x0000000100510b9f in internal_catch (tag=<optimized out>, func=func@entry=0x1004a09b0 <command_loop_2>, arg=4304630834) at /usr/src/debug/emacs-24.3-7/src/eval.c:1060
#17 0x00000001004a52df in command_loop () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1139
#18 recursive_edit_1 () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:779
#19 0x00000001004a56a7 in Frecursive_edit () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:843
#20 0x0000000100512828 in Ffuncall (nargs=<optimized out>, args=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/eval.c:2775
#21 0x000000010054757d in exec_byte_code (bytestr=6663232, vector=4361536, maxdepth=0, args_template=4303920544, nargs=4304522528, args=0x1) at /usr/src/debug/emacs-24.3-7/src/bytecode.c:900
#22 0x0000000100512343 in funcall_lambda (fun=25775542133, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x429088) at /usr/src/debug/emacs-24.3-7/src/eval.c:3010
#23 0x000000010051267b in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x429080) at /usr/src/debug/emacs-24.3-7/src/eval.c:2839
#24 0x0000000100513a64 in Fapply (nargs=nargs@entry=2, args=args@entry=0x429140) at /usr/src/debug/emacs-24.3-7/src/eval.c:2312
#25 0x0000000100513c83 in apply1 (fn=4304981954, arg=arg@entry=25775561894) at /usr/src/debug/emacs-24.3-7/src/eval.c:2546
#26 0x0000000100513e4f in call_debugger (arg=25775561894) at /usr/src/debug/emacs-24.3-7/src/eval.c:223
#27 0x0000000100512e7a in maybe_call_debugger (data=25775561958, sig=4304834562, conditions=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/eval.c:1707
#28 Fsignal (error_symbol=4304834562, data=25775561958) at /usr/src/debug/emacs-24.3-7/src/eval.c:1527
#29 0x0000000100513029 in xsignal (error_symbol=<optimized out>, data=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/eval.c:1562
#30 0x00000001005133ae in xsignal2 (error_symbol=4304834562, arg1=<optimized out>, arg2=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/eval.c:1583
#31 0x00000001004fdb86 in wrong_type_argument (predicate=0, value=1) at /usr/src/debug/emacs-24.3-7/src/data.c:98
#32 0x0000000100549ead in exec_byte_code (bytestr=6663232, vector=4302323469, maxdepth=0, args_template=4304630834, nargs=0, args=0x1) at /usr/src/debug/emacs-24.3-7/src/bytecode.c:518
#33 0x0000000100512343 in funcall_lambda (fun=4302323381, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x429580) at /usr/src/debug/emacs-24.3-7/src/eval.c:3010
#34 0x000000010051267b in Ffuncall (nargs=2, args=0x429578) at /usr/src/debug/emacs-24.3-7/src/eval.c:2839
#35 0x000000010054757d in exec_byte_code (bytestr=6663232, vector=4363632, maxdepth=0, args_template=4303920544, nargs=4304522528, args=0x1) at /usr/src/debug/emacs-24.3-7/src/bytecode.c:900
#36 0x0000000100512343 in funcall_lambda (fun=4302324197, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x429808) at /usr/src/debug/emacs-24.3-7/src/eval.c:3010
#37 0x000000010051267b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x429800) at /usr/src/debug/emacs-24.3-7/src/eval.c:2839
#38 0x00000001005129dd in call1 (fn=<optimized out>, arg1=arg1@entry=25776570013) at /usr/src/debug/emacs-24.3-7/src/eval.c:2572
#39 0x00000001004a6b34 in timer_check_2 (idle_timers=<optimized out>, timers=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:4387
#40 timer_check () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:4454
#41 0x00000001004a6f6a in readable_events (flags=1) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:3351
#42 0x00000001004a7e85 in get_input_pending (flags=flags@entry=1) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:6680
#43 0x00000001004aa2ad in detect_input_pending_run_timers (do_display=do_display@entry=true) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:10273
#44 0x0000000100551406 in wait_reading_process_output (time_limit=<optimized out>, nsecs=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=4304630834, wait_proc=wait_proc@entry=0x0, just_wait_proc=just_wait_proc@entry=0)
    at /usr/src/debug/emacs-24.3-7/src/process.c:4743
#45 0x0000000100409f6a in sit_for (timeout=<optimized out>, reading=reading@entry=true, display_option=display_option@entry=1) at /usr/src/debug/emacs-24.3-7/src/dispnew.c:5978
#46 0x00000001004ac694 in read_char (commandflag=1, nmaps=2, maps=0x42a1c0, prev_event=4304630834, used_mouse_menu=0x42a2e7, end_time=end_time@entry=0x0) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:2669
#47 0x00000001004ad463 in read_key_sequence (keybuf=keybuf@entry=0x42a430, prompt=<optimized out>, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true,
    bufsize=30) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:9231
#48 0x00000001004af75e in command_loop_1 () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1459
#49 0x0000000100510cde in internal_condition_case (bfun=bfun@entry=0x1004af540 <command_loop_1>, handlers=4304832354, hfun=hfun@entry=0x1004a58a0 <cmd_error>) at /usr/src/debug/emacs-24.3-7/src/eval.c:1289
#50 0x00000001004a09da in command_loop_2 (ignore=ignore@entry=4304630834) at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1168
#51 0x0000000100510b9f in internal_catch (tag=<optimized out>, func=func@entry=0x1004a09b0 <command_loop_2>, arg=4304630834) at /usr/src/debug/emacs-24.3-7/src/eval.c:1060
#52 0x00000001004a5374 in command_loop () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:1147
#53 recursive_edit_1 () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:779
#54 0x00000001004a56a7 in Frecursive_edit () at /usr/src/debug/emacs-24.3-7/src/keyboard.c:843
#55 0x00000001005ab7d3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/emacs-24.3-7/src/emacs.c:1532

Another error also occurred in the same session a few hours prior to the abort. Something about a wrong argument type error with vectorp and timers. I'll use the Lisp Debugger to get more information next time.

I'm currently using emacs-X11 with TRAMP (no -Q flag) for my main work. I've seen the same Lisp error after leaving this session idle, but so far no aborts.

As for the minimal sequence of steps that leads to the abort, I use Dired on a remote directory via ssh with TRAMP and open up a file for editing using the Dired buffer. I then leave the session idle and minimized. I occasionally check on the session to see whether a Lisp error has occurred. The abort dialog pop-ups after enough time, but I haven't pinpointed exactly how long. I'm going to run more tests so that I can give you a more specific sequence of steps.

From the BLODA, I have Symantec Endpoint Protection 12.3 and NVIDIA Graphics Driver 266.72 installed. The Symantec software is current, but I'm going to try updating the NVIDIA driver to the latest version.


Cheers,

SDS

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]