Subject: bug#11729: 24.1 dumps core on OSX in x_find_modifier_meanings

From: Didier Verna <[email-masked]>
Date: Sun, 17 Jun 2012 10:15:21 +0200

Hello,

I cannot run the latest version of Emacs on OSX. It dumps core at
startup (except with -nw):

didier(s000)% ./src/emacs -Q                              Err 139 9:47 06/17/12

(process:63401): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Fatal error (11)zsh: segmentation fault (core dumped)  ./src/emacs -Q

The gdb bactrace is as follows:

Current directory is /usr/local/src/emacs-24.1/src/
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
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 "x86_64-apple-darwin"...Reading symbols for shared libraries ................................. done

Reading symbols for shared libraries . done
Reading symbols for shared libraries ..................................................
warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/.libs/prep_cif.o" - no debug information available for "../src/prep_cif.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/.libs/types.o" - no debug information available for "../src/types.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/.libs/raw_api.o" - no debug information available for "../src/raw_api.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/.libs/java_raw_api.o" - no debug information available for "../src/java_raw_api.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/.libs/closures.o" - no debug information available for "../src/closures.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/x86/.libs/ffi64.o" - no debug information available for "../src/x86/ffi64.c".

warning: Could not find object file "/private/tmp/homebrew-libffi-3.0.11-PCqw/libffi-3.0.11/x86_64-apple-darwin10.8.0/src/x86/.libs/darwin64.o" - no debug information available for "{standard input}".

............................................................................................................. done
#0  0x00007fff8392e0b6 in __kill ()
DISPLAY = /tmp/launch-dfow2a/org.macosforge.xquartz:0
TERM = emacs
[0] cancel
[1] all

Non-debugging symbols:
[2]    -[CIContext abort]
[3]    -[CIContextImpl abort]
[4]    abort
> Argument required (one or more choice numbers).
Breakpoint 1 at 0x100176234: file sysdep.c, line 855.
(gdb) where
#0  0x00007fff8392e0b6 in __kill ()
#1  0x000000010014bc2a in fatal_error_signal (sig=11) at emacs.c:366
#2  <signal handler called>
#3  0x00000001012cd435 in _XReply ()
#4  0x00000001012b7101 in XGetKeyboardMapping ()
#5  0x00000001001037be in x_find_modifier_meanings (dpyinfo=0x102317230) at xterm.c:3608
#6  0x000000010010d77e in x_term_init (display_name=<value temporarily unavailable, due to optimizations>, xrm_option=0x0, resource_name=0x104047908 "emacs") at xterm.c:10167
#7  0x0000000100114284 in Fx_open_connection (display={i = -9223372036313826512, s = {val = 540949296, type = Lisp_String}, u = {val = 540949296, type = Lisp_String}}, xrm_string=<value temporarily unavailable, due to optimizations>, must_succeed={i = 4611686018970551821, s = {val = 543163917, type = Lisp_Symbol}, u = {val = 543163917, type = Lisp_Symbol}}) at xfns.c:4106
#8  0x00000001001ef45e in Ffuncall (nargs=4, args=<value temporarily unavailable, due to optimizations>) at eval.c:3009
#9  0x0000000100247634 in exec_byte_code (bytestr=<value temporarily unavailable, due to optimizations>, vector={i = 44, s = {val = 44, type = Lisp_Int}, u = {val = 44, type = Lisp_Int}}, maxdepth=<value temporarily unavailable, due to optimizations>, args_template=<value temporarily unavailable, due to optimizations>, nargs=27, args=<value temporarily unavailable, due to optimizations>) at bytecode.c:785
#10 0x00000001001f3b02 in funcall_lambda (fun=<value temporarily unavailable, due to optimizations>, nargs=0, arg_vector=0x7fff5fbf16c8) at eval.c:3233
#11 0x00000001001ef152 in Ffuncall (nargs=1, args=<value temporarily unavailable, due to optimizations>) at eval.c:3063
#12 0x0000000100247634 in exec_byte_code (bytestr=<value temporarily unavailable, due to optimizations>, vector={i = 51, s = {val = 51, type = Lisp_Int}, u = {val = 51, type = Lisp_Int}}, maxdepth=<value temporarily unavailable, due to optimizations>, args_template=<value temporarily unavailable, due to optimizations>, nargs=26, args=<value temporarily unavailable, due to optimizations>) at bytecode.c:785
#13 0x00000001001f3849 in funcall_lambda (fun=<value temporarily unavailable, due to optimizations>, nargs=0, arg_vector=0x7fff5fbf1928) at eval.c:3167
#14 0x00000001001ef152 in Ffuncall (nargs=1, args=<value temporarily unavailable, due to optimizations>) at eval.c:3063
#15 0x00000001001f2ba3 in eval_sub (form=<value temporarily unavailable, due to optimizations>) at eval.c:2322
#16 0x00000001001f4133 in internal_lisp_condition_case (var=<value temporarily unavailable, due to optimizations>, bodyform=<value temporarily unavailable, due to optimizations>, handlers=<value temporarily unavailable, due to optimizations>) at eval.c:1469
#17 0x0000000100246d73 in exec_byte_code (bytestr=<value temporarily unavailable, due to optimizations>, vector={i = 1, s = {val = 1, type = Lisp_Int}, u = {val = 1, type = Lisp_Int}}, maxdepth=<value temporarily unavailable, due to optimizations>, args_template=<value temporarily unavailable, due to optimizations>, nargs=242, args=<value temporarily unavailable, due to optimizations>) at bytecode.c:981
#18 0x00000001001f3849 in funcall_lambda (fun=<value temporarily unavailable, due to optimizations>, nargs=0, arg_vector=0x7fff5fbf1e60) at eval.c:3167
#19 0x00000001001ef152 in Ffuncall (nargs=1, args=<value temporarily unavailable, due to optimizations>) at eval.c:3063
#20 0x0000000100247634 in exec_byte_code (bytestr=<value temporarily unavailable, due to optimizations>, vector={i = 0, s = {val = 0, type = Lisp_Int}, u = {val = 0, type = Lisp_Int}}, maxdepth=<value temporarily unavailable, due to optimizations>, args_template=<value temporarily unavailable, due to optimizations>, nargs=110, args=<value temporarily unavailable, due to optimizations>) at bytecode.c:785
#21 0x00000001001f3849 in funcall_lambda (fun=<value temporarily unavailable, due to optimizations>, nargs=0, arg_vector=0x7fff5fbf2030) at eval.c:3167
#22 0x00000001001f3ddb in apply_lambda (fun=<value temporarily unavailable, due to optimizations>, args={i = 4611686018970551815, s = {val = 543163911, type = Lisp_Symbol}, u = {val = 543163911, type = Lisp_Symbol}}) at eval.c:3110
#23 0x00000001001f2450 in eval_sub (form={i = 4611686018427387904, s = {val = 0, type = Lisp_Symbol}, u = {val = 0, type = Lisp_Symbol}}) at eval.c:2414
#24 0x00000001001f2e5e in Feval (form={i = -4611686017884178094, s = {val = 543209810, type = Lisp_Cons}, u = {val = 543209810, type = Lisp_Cons}}, lexical=<value temporarily unavailable, due to optimizations>) at eval.c:2204
#25 0x0000000100154d51 in top_level_2 () at keyboard.c:1169
#26 0x00000001001ee4a5 in internal_condition_case (bfun=0x100154d30 <top_level_2>, handlers=<value temporarily unavailable, due to optimizations>, hfun=0x100157b40 <cmd_error>) at eval.c:1515
#27 0x00000001001581b0 in top_level_1 (ignore=<value temporarily unavailable, due to optimizations>) at keyboard.c:1177
#28 0x00000001001ee599 in internal_catch (tag=<value temporarily unavailable, due to optimizations>, func=0x100158170 <top_level_1>, arg=<value temporarily unavailable, due to optimizations>) at eval.c:1272
#29 0x0000000100157e89 in recursive_edit_1 () at keyboard.c:1132
#30 0x0000000100158088 in Frecursive_edit () at keyboard.c:823
#31 0x000000010014c9b4 in main (argc=2, argv=0x7fff5fbf25c8) at emacs.c:1715

Lisp Backtrace:
"x-open-connection" (0x5fbf1468)
"x-initialize-window-system" (0x5fbf16c8)
0x427220 PVEC_COMPILED
"funcall" (0x5fbf1920)
"command-line" (0x5fbf1e60)
"normal-top-level" (0x5fbf2030)
(gdb) 

config.log is attached below.

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com