Hi,
I am experiencing occasional crashes under Xemacs while running the VM
mail reader. Xemacs will stay up for about an hour or so and then
crash suddenly with a segmentation fault; see stacktrace below. It
seems to happen inside strlen() while processing the path name of one
of my mail folders. Perhaps this is a bug in Cygwin, but I haven't
yet downloaded Cygwin source to compile a debugging version. I have
also experienced this bug in two other versions of xemacs: 21.4.1 and
21.4.12.
Any suggestions on what to do next?
-Pete
$ gdb xemacs
GNU gdb 2003-03-03-cvs (cygwin-special)
Copyright 2003 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"...
(gdb) run
Starting program: /usr/local/bin/xemacs
---Type <return> to continue, or q <return> to quit---
Program received signal SIGSEGV, Segmentation fault.
0x610ba041 in strlen () from /usr/bin/cygwin1.dll
(gdb) where
#0 0x610ba041 in strlen () from /usr/bin/cygwin1.dll
#1 0x6105690a in cygwin_posix_path_list_p () from /usr/bin/cygwin1.dll
#2 0x610569d9 in cygwin_posix_to_win32_path_list_buf_size () from /usr/bin/cygw
in1.dll
#3 0x005da72f in readlink_and_correct_case (name=0x16bead0 "c:/cygwin/home/mcca
p", buf=0x16be730 "", size=258) at realpath.c:86
#4 0x005da0f7 in qxe_realpath (path=0x16be97c "C:\\cygwin\\home\\mccap\\Mail\\W
IRELESSLT", resolved_path=0x16bead0 "c:/cygwin/home/mccap") at realpath.c:298
#5 0x004d7e95 in Ffile_truename (filename=277574548, default_=7006212) at filei
o.c:1368
#6 0x0046b5b3 in Ffuncall (nargs=2, args=0x16becd4) at eval.c:3843
#7 0x0041eb96 in execute_optimized_program (program=0x102bec10 "A\b!r\025AA!«\b
AA\b!!r\tAÄ!-\004Ä\b!\207", stack_depth=3, constants_data=0x101e01d0) at bytecod
e.c:609
#8 0x00474221 in funcall_compiled_function (fun=270843356, nargs=1, args=0x16be
e48) at opaque.h:36
#9 0x0046b4c6 in Ffuncall (nargs=2, args=0x16bee44) at eval.c:3881
#10 0x0041eb96 in execute_optimized_program (program=0x10b48010 "\016\030?\205¢"
, stack_depth=12, constants_data=0x1024a710) at bytecode.c:609
#11 0x00474221 in funcall_compiled_function (fun=277022260, nargs=2, args=0x16be
fe4) at opaque.h:36
#12 0x0046b4c6 in Ffuncall (nargs=3, args=0x16befe0) at eval.c:3881
#13 0x0041eb96 in execute_optimized_program (program=0x10ab1210 "Æ\026\030\v"«\0
27\f«\rÇ\fEÉ \v\"\v#\210ª\026E\n\v\"\210ª\017\f«\aE\f!\210ª\006E\nÆ\"\210I Æ\211
\031\030\035I ¬>\r«;\212I\r@!«.\r(a)xn--q\210\016\031i=$d\211\020\037\016\032\e\016-rtbk2d
\027\021ÑÆD\"\026\027\t\016\027=¬\fOO \016\e\"\210OO!\210)\rA\025ªAÖ \210\b?-\02
1\r?-\r\f«\006E\f!ª\005E\nÆ\"+\207", stack_depth=5, constants_data=0x10824990) a
t bytecode.c:609
#14 0x00474221 in funcall_compiled_function (fun=277021160, nargs=0, args=0x16bf
164) at opaque.h:36
#15 0x0046b4c6 in Ffuncall (nargs=1, args=0x16bf160) at eval.c:3881
#16 0x0041eb96 in execute_optimized_program (program=0x16bf1d4 "Æ \eÇ\216\f\035E
\211\032\031E\211\030\036\rE\211\036\016\034E\211\036\017\036\020É\r!«\fEE\r!I\r
!\"\210ª\006E\r! \210.\vE\2078òk\001\210YF", stack_depth=5, constants_data=0x892
690) at bytecode.c:609
#17 0x00420795 in Fbyte_code (instructions=8919620, constants=8988288, stack_dep
th=11) at lisp.h:2589
#18 0x0046ac30 in Feval (form=8982592) at eval.c:3602
#19 0x00467c41 in condition_case_1 (handlers=8778008, bfun=0x469da0 <Feval>, bar
g=8982592, hfun=0x473dd0 <run_condition_case_handlers>, harg=9018932) at eval.c:
1917
#20 0x00467f62 in condition_case_3 (bodyform=8982592, var=9018932, handlers=8778
008) at eval.c:1999
#21 0x0041fb9d in execute_rare_opcode (stack_ptr=0x16bf5a8, program_ptr=0x101e97
c5 "\210)\vA\211\023¬\217\016\036\211\023«\016\fO\v@!^\024\vA\211\023¬ôUU!\211\0
36\037«\fÜ\016\037!«\006\212Y \210))\f.\a\207", opcode=Bcondition_case) at bytec
ode.c:1134
#22 0x0041e97f in execute_optimized_program (program=0x101e9710 "Æ\016\036!ÇEÇ\2
11\211É\036 \030\032\031\034\035\eE\024EE!«\021\016\v:«\f\016\v\022II \n\"\021ª
EI!«\027\016\016:«\022\016\016@\016\016AIE\022II \n\"\021ª\005D\022I\021\v«s\v@\
025Ñ\r!«\aO\r!\020ª\rO\rIO\r!\016!Z]\"\210Ñ\r!«\020I\b\n\"IV¬\017\tO\r!Wª\006O\r
!IV«%Ñ\r!«\030\tO\r!W«\n\fO\r!\tZ^ª\r\fO\r!^ª\006\fO\r!^\024ª\024Ñ\r!«\aO\rI \"\
210Ö\216xOU\217\210)\vA\211\023¬\217\016\036\211\023«\016\fO\v@!"..., stack_dept
h=8, constants_data=0x89ab10) at bytecode.c:515
#23 0x00474221 in funcall_compiled_function (fun=9025120, nargs=1, args=0x16bf73
4) at opaque.h:36
#24 0x0046b4c6 in Ffuncall (nargs=2, args=0x16bf730) at eval.c:3881
#25 0x0041eb96 in execute_optimized_program (program=0x10182a90 "\v?-&Æ\211\036\
017\eÇ \034E\f\n\"\031É\035\f\022E\t!\025E\b!\210\r\026\020I\rIÉI$\211\020-\207"
, stack_depth=6, constants_data=0x892410) at bytecode.c:609
#26 0x00474221 in funcall_compiled_function (fun=9041924, nargs=1, args=0x16bf8b
c) at opaque.h:36
#27 0x0046b4c6 in Ffuncall (nargs=2, args=0x16bf8b8) at eval.c:3881
#28 0x0046c680 in call1 (fn=9019148, arg0=7006212) at eval.c:4487
#29 0x00483ac0 in execute_internal_event (event=8384404) at events.h:880
#30 0x00485583 in Fdispatch_event (event=8384404) at event-stream.c:4565
#31 0x00430517 in Fcommand_loop_1 () at cmdloop.c:569
#32 0x00467c41 in condition_case_1 (handlers=7006308, bfun=0x430d40 <command_loo
p_1>, barg=7006212, hfun=0x430da0 <cmd_error>, harg=7006212) at eval.c:1917
#33 0x00430ffa in command_loop_2 (dummy=7006212) at cmdloop.c:251
#34 0x00467aa9 in internal_catch (tag=7086612, func=0x430fa0 <command_loop_2>, a
rg=7006212, threw=0x0, thrown_tag=0x0) at eval.c:1527
#35 0x0043095b in initial_command_loop (load_me=7006212) at cmdloop.c:300
#36 0x00462916 in xemacs_21_5_b12_i686_pc_cygwin (argc=1, argv=0x10027dc0, envp=
0x10025000, restart=0) at emacs.c:2403
#37 0x00463bc4 in main (argc=1, argv=0x10027dc0, envp=0x10025000) at emacs.c:289
5
#38 0x61007408 in cygwin1!__assert () from /usr/bin/cygwin1.dll
#39 0x610076ed in dll_crt0@0 () from /usr/bin/cygwin1.dll
#40 0x00695022 in cygwin_crt0 ()
#41 0x0040103c in mainCRTStartup ()
#42 0x77ea847c in ProcessIdToSessionId () from /cygdrive/c/WINNT/system32/KERNEL
32.DLL
(gdb)