Subject: bug#2920: emacs crashes (freezes)

From: Sergio Roa <[email-masked]>
Date: Tue, 07 Apr 2009 15:41:44 +0200

When editing  a file  (for second time)  which is in a directory mounted 
from a  Samba server, gnu emacs (both Aquamacs and Carbon Emacs in 
MacOS) freezes when some edition is performed.

*gdb output:*

(gdb) run
Starting program: /Applications/Aquamacs 
Emacs.app/Contents/MacOS/Aquamacs Emacs
Reading symbols for shared libraries 
+++++................................................................................ 
done
2009-04-07 15:26:30.287 Aquamacs Emacs[13701:813] *** CFMessagePort: 
bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 
0x1e03, name = 'org.gnu.AquamacsEmacs.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . don

*bt full output:*

(gdb) bt full
#0  0x910f09b6 in unlink ()
No symbol table info available.
#1  0x0009c88b in current_lock_owner (owner=0xbffff0a0, 
lfname=0xbffff030 "/Volumes/sergio/nnl_ndim-2.0/samples/.#prueba.xml") 
at filelock.c:518
	len = 10144
	ret = 10144
	local_owner = 0
	colon = 0x910f09b6 "s\016?"
	lfinfo = 0x16a24cd0 "[email-masked]"
	bufsize = 379735277
#2  0x0009c9de in lock_file (fn=29900979) at filelock.c:556
	locker = 0
	attack = 0
	encoded_fn = -1861285450
	lock_info = {
   user = 0x16a7d720 "sergio",
   host = 0x16a80580 "pandion.dfki.uni-sb.de",
   pid = 10144,
   boot_time = 0
}
#3  0x0009eabe in prepare_to_modify_buffer (start=349, end=349, 
preserve_ptr=0x0) at insdel.c:2090
	base_buffer = (struct buffer *) 0x910f09b6
#4  0x0009f0b3 in insert_1_both (string=0xbffff21c "s?\a", nchars=1, 
nbytes=1, inherit=1, prepare=1, before_markers=0) at insdel.c:993
	string = (const unsigned char *) 0xbffff21c "s?\a"
	nchars = 1
	nbytes = 1
	inherit = 1
	prepare = 1
	before_markers = 0
#5  0x000a05cc in insert_and_inherit (string=0xbffff21c "s?\a", 
nbytes=1) at insdel.c:771
	nbytes = 1
	len = 1
	opoint = 1
#6  0x000b42ab in internal_self_insert (c=115, noautofill=0) at cmds.c:516
	hairy = 1
	tem = 0
	synt = Swhitespace
	overwrite = 41944073
	string = 1
	len = 1
	str = "s?\a"
	chars_to_delete = 0
	spaces_to_insert = 0
	c = 115
#7  0x00087f34 in command_loop_1 () at keyboard.c:1843
	c = 115
	value = -1861285450
	cmd = 1
	lose = 22024152
	nonundocount = 1
	keybuf = {920, 48, -1073744996, 43692189, -1073745144, 462822, 250, 
41979977, 7408544, -1880941380, 693413, 4528, -1073745112, 462891, 
1555410, 5, 6356, -1880940780, 144, 7408544, -1073744984, 475267, 
-1073745012, 0, -1073745076, -1073745264, 0, 5832704, 41944073, 42321681}
	i = 1
	prev_modiff = 449
	prev_buffer = (struct buffer *) 0x16a46430
	already_adjusted = 0
#8  0x000e558a in internal_condition_case (bfun=0x87220 
<command_loop_1>, handlers=41990897, hfun=0x7fe29 <cmd_error>) at 
eval.c:1484
	val = -1861285450
	c = {
   tag = 41944073,
   val = 41944073,
   next = 0xbffff48c,
   gcpro = 0x0,
   jmp = {-1073806465, -1880940780, 8106, 939174, 41944073, 41944073, 
3842464, 3828432, -1073744856, -1073745040, 31, 658, 939310, 980680727, 
3801119, 3801119, -1073807360, -1073807305},
   backlist = 0x0,
   handlerlist = 0x0,
   lisp_eval_depth = 0,
   pdlcount = 2,
   poll_suppress_count = 0,
   interrupt_input_blocked = 0,
   byte_stack = 0x0
}
	h = {
   handler = 41990897,
   var = 41944073,
   chosen_clause = 0,
   tag = 0xbffff388,
   next = 0x0
}
#9  0x00079b89 in command_loop_2 () at keyboard.c:1333
	val = 0
#10 0x000e547b in internal_catch (tag=41988177, func=0x79b45 
<command_loop_2>, arg=41944073) at eval.c:1224
	c = {
   tag = 41988177,
   val = 41944073,
   next = 0x0,
   gcpro = 0x0,
   jmp = {852863, -1880937764, 8106, 938975, 868256, 42128098, 3850880, 
3828432, -1073744632, -1073744784, 42074143, 658, 939118, -1756692457, 
-1073807329, -1073807329, 41943040, 42074167},
   backlist = 0x0,
   handlerlist = 0x0,
   lisp_eval_depth = 0,
   pdlcount = 2,
   poll_suppress_count = 0,
   interrupt_input_blocked = 0,
   byte_stack = 0x0
}
	tag = 0
#11 0x00079963 in command_loop () at keyboard.c:1312
	val = 0
#12 0x00079a17 in recursive_edit_1 () at keyboard.c:1010
	val = 0
#13 0x00079b06 in Frecursive_edit () at keyboard.c:1071
	buffer = -1861285450
#14 0x00078ce8 in main (argc=1, argv=0xbffff6e4) at emacs.c:1770
	dummy = 1460424
	stack_bottom_variable = -112 '?'
	do_initial_setlocale = 1
	skip_args = 0
	rlim = {
   rlim_cur = 8388608,
   rlim_max = 67104768
}
	no_loadup = 0
	junk = 0x0

*backtrace output:*

(gdb) backtrace
#0  0x910f09b6 in unlink ()
#1  0x0009c88b in current_lock_owner (owner=0xbffff0a0, 
lfname=0xbffff030 "/Volumes/sergio/nnl_ndim-2.0/samples/.#prueba.xml") 
at filelock.c:518
#2  0x0009c9de in lock_file (fn=29900979) at filelock.c:556
#3  0x0009eabe in prepare_to_modify_buffer (start=349, end=349, 
preserve_ptr=0x0) at insdel.c:2090
#4  0x0009f0b3 in insert_1_both (string=0xbffff21c "s?\a", nchars=1, 
nbytes=1, inherit=1, prepare=1, before_markers=0) at insdel.c:993
#5  0x000a05cc in insert_and_inherit (string=0xbffff21c "s?\a", 
nbytes=1) at insdel.c:771
#6  0x000b42ab in internal_self_insert (c=115, noautofill=0) at cmds.c:516
#7  0x00087f34 in command_loop_1 () at keyboard.c:1843
#8  0x000e558a in internal_condition_case (bfun=0x87220 
<command_loop_1>, handlers=41990897, hfun=0x7fe29 <cmd_error>) at 
eval.c:1484
#9  0x00079b89 in command_loop_2 () at keyboard.c:1333
#10 0x000e547b in internal_catch (tag=41988177, func=0x79b45 
<command_loop_2>, arg=41944073) at eval.c:1224
#11 0x00079963 in command_loop () at keyboard.c:1312
#12 0x00079a17 in recursive_edit_1 () at keyboard.c:1010
#13 0x00079b06 in Frecursive_edit () at keyboard.c:1071
#14 0x00078ce8 in main (argc=1, argv=0xbffff6e4) at emacs.c:1770

In GNU Emacs 22.1.91.2 (i386-apple-darwin8.11.1, Carbon Version 1.6.0)
  of 2008-02-23 on plume.sr.unh.edu
Windowing system distributor `Apple Inc.', version 10.5.6
configured using `configure  '--without-x' '--prefix=/usr/local''

Important settings:
   value of $LC_ALL: en_US
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: UTF-8
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   locale-coding-system: iso-8859-1
   default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
   encoded-kbd-mode: t
   tooltip-mode: t
   mac-input-method-mode: t
   tool-bar-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   unify-8859-on-encoding-mode: t
   utf-translate-cjk-mode: t
   auto-compression-mode: t
   line-number-mode: t

Recent input:
<help-echo> <down-mouse-1> <mouse-1> <backspace> M-x
r e p o r t = <backspace> - e m a c s - b u g <ret
urn>

Recent messages:
("/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs" "-Q")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading encoded-kb...done
Loading emacsbug...done

-- 
Sergio Roa
http://www.dfki.de/~sroa
-------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
* Geschaeftsfuehrung: Prof. Dr. Wolfgang Wahlster (Vors.)
                       Dr. Walter Olthoff
* Vorsitzender des Aufsichtsrats:Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
-------------------------------------------------------------