Subject: Re: is there a cygwin maintainer for gnu emacs?
From: "emacs user" <[email-masked]>
To: [email-masked], [email-masked]
Cc: [email-masked], [email-masked]
Date: Wed, 10 Aug 2005 06:47:23 -0400

>From: Joe Buehler <[email-masked]>
>1. Run emacs under gdb and see if you can get a stack backtrace
>from gdb after emacs dies.  It will depend on how emacs dies
>whether you can do this.
>
>2. Failing that, run strace on emacs and send me the output (say,
>the last couple thousand lines) after it dies.  I may be able to
>deduce something from that.
>--
>Joe Buehler
>
here is a backtrace on a sample emacs crash under cygwin; let me know if I 
can provide additional info.  this is not easily reproducible (involves my 
.emacs file and happens quite randomly), but such crashes occur often enough 
that I can try and print useful information if you can direct me.

/usr/local/emacs/src $ gdb emacs
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x2009a5e6: file emacs.c, line 461.
Breakpoint 2 at 0x2007d83c: file xterm.c, line 7795.
(gdb) run
Starting program: /usr/local/emacs/src/emacs.exe -geometry 80x40+0+0

---Type <return> to continue, or q <return> to quit---
Breakpoint 1, abort () at emacs.c:461
461	  kill (getpid (), SIGABRT);
(gdb) xbacktrace
(gdb) backtrace
#0  abort () at emacs.c:461
#1  0x200ed181 in mark_object (arg=536986839) at alloc.c:5468
#2  0x200edaff in Fgarbage_collect () at alloc.c:4810
#3  0x20101cfe in Feval (form=583791917) at eval.c:2101
#4  0x20100788 in internal_condition_case_1 (bfun=0x201019c0 <Feval>,
    arg=583791917, handlers=539863641,
    hfun=0x200a06c0 <menu_item_eval_property_1>) at eval.c:1493
#5  0x200a0752 in menu_item_eval_property (sexpr=583791917) at 
keyboard.c:7152
#6  0x200acb7e in get_keyelt (object=540049153, autoload=1) at keymap.c:811
#7  0x200ad1d3 in access_keymap (map=539822333, idx=539845257, t_ok=2,
    noinherit=0, autoload=1) at keymap.c:643
#8  0x200a13dc in tool_bar_items (reuse=601188356, nitems=0x22dcf8)
    at keyboard.c:7609
#9  0x2001c6bf in update_tool_bar (f=0x20cc4600, save_match_data=0)
    at xdisp.c:8857
#10 0x2002a4d0 in prepare_menu_bars () at xdisp.c:8563
#11 0x2002a8e6 in redisplay_internal (preserve_echo_area=7) at xdisp.c:10245
#12 0x200a4bf1 in read_char (commandflag=1, nmaps=2, maps=0x22e930,
    prev_event=539791361, used_mouse_menu=0x22e978) at keyboard.c:2541
#13 0x200a75c7 in read_key_sequence (keybuf=0x22ead0, bufsize=30,
    prompt=539791361, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8818
#14 0x200a90d1 in command_loop_1 () at keyboard.c:1529
#15 0x20100a82 in internal_condition_case (bfun=0x200a8f30 <command_loop_1>,
---Type <return> to continue, or q <return> to quit---
    handlers=539863641, hfun=0x200a2a90 <cmd_error>) at eval.c:1452
#16 0x2009cc2e in command_loop_2 () at keyboard.c:1319
#17 0x2010098f in internal_catch (tag=539852761,
    func=0x2009cc00 <command_loop_2>, arg=539791361) at eval.c:1211
#18 0x2009ca13 in command_loop () at keyboard.c:1298
#19 0x2009cab4 in recursive_edit_1 () at keyboard.c:991
#20 0x2009cbc0 in Frecursive_edit () at keyboard.c:1052
#21 0x2009bf0d in main (argc=3, argv=0x202c25c0) at emacs.c:1782
(gdb) where
#0  abort () at emacs.c:461
#1  0x200ed181 in mark_object (arg=536986839) at alloc.c:5468
#2  0x200edaff in Fgarbage_collect () at alloc.c:4810
#3  0x20101cfe in Feval (form=583791917) at eval.c:2101
#4  0x20100788 in internal_condition_case_1 (bfun=0x201019c0 <Feval>,
    arg=583791917, handlers=539863641,
    hfun=0x200a06c0 <menu_item_eval_property_1>) at eval.c:1493
#5  0x200a0752 in menu_item_eval_property (sexpr=583791917) at 
keyboard.c:7152
#6  0x200acb7e in get_keyelt (object=540049153, autoload=1) at keymap.c:811
#7  0x200ad1d3 in access_keymap (map=539822333, idx=539845257, t_ok=2,
    noinherit=0, autoload=1) at keymap.c:643
#8  0x200a13dc in tool_bar_items (reuse=601188356, nitems=0x22dcf8)
    at keyboard.c:7609
#9  0x2001c6bf in update_tool_bar (f=0x20cc4600, save_match_data=0)
    at xdisp.c:8857
#10 0x2002a4d0 in prepare_menu_bars () at xdisp.c:8563
#11 0x2002a8e6 in redisplay_internal (preserve_echo_area=7) at xdisp.c:10245
#12 0x200a4bf1 in read_char (commandflag=1, nmaps=2, maps=0x22e930,
    prev_event=539791361, used_mouse_menu=0x22e978) at keyboard.c:2541
#13 0x200a75c7 in read_key_sequence (keybuf=0x22ead0, bufsize=30,
    prompt=539791361, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8818
#14 0x200a90d1 in command_loop_1 () at keyboard.c:1529
#15 0x20100a82 in internal_condition_case (bfun=0x200a8f30 <command_loop_1>,
---Type <return> to continue, or q <return> to quit---
    handlers=539863641, hfun=0x200a2a90 <cmd_error>) at eval.c:1452
#16 0x2009cc2e in command_loop_2 () at keyboard.c:1319
#17 0x2010098f in internal_catch (tag=539852761,
    func=0x2009cc00 <command_loop_2>, arg=539791361) at eval.c:1211
#18 0x2009ca13 in command_loop () at keyboard.c:1298
#19 0x2009cab4 in recursive_edit_1 () at keyboard.c:991
#20 0x2009cbc0 in Frecursive_edit () at keyboard.c:1052
#21 0x2009bf0d in main (argc=3, argv=0x202c25c0) at emacs.c:1782

(gdb) quit
The program is running.  Exit anyway? (y or n) y
/usr/local/emacs/src $

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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