From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3500: 23.0.94; [NS/Cocoa] Crash when entering accented chacters with Flyspell enabled Date: Mon, 8 Jun 2009 14:58:16 -0700 Message-ID: Reply-To: Ian Eure , 3500@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244499598 16859 80.91.229.12 (8 Jun 2009 22:19:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2009 22:19:58 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 09 00:19:55 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MDnC0-0006xd-Vm for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jun 2009 00:19:49 +0200 Original-Received: from localhost ([127.0.0.1]:49288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDnC0-0000kK-3b for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jun 2009 18:19:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDn9j-0007k0-4r for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2009 18:17:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDn9e-0007fu-Gx for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2009 18:17:26 -0400 Original-Received: from [199.232.76.173] (port=56102 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDn9e-0007fn-Bk for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2009 18:17:22 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32865) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MDn9d-0002S9-97 for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2009 18:17:22 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n58MHJTO019184; Mon, 8 Jun 2009 15:17:19 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n58M55ci016682; Mon, 8 Jun 2009 15:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Jun 2009 22:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3500 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124449830915410 (code B ref -1); Mon, 08 Jun 2009 22:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Jun 2009 21:58:29 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n58LwM00015402 for ; Mon, 8 Jun 2009 14:58:23 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:40016 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MDmrF-0003Wv-BS for emacs-pretest-bug@gnu.org; Mon, 08 Jun 2009 17:58:21 -0400 Original-Received: from mail.digg.com ([64.191.203.36]:39692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDmrE-0006Yt-Jm for emacs-pretest-bug@gnu.org; Mon, 08 Jun 2009 17:58:21 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id D827CA8573F for ; Mon, 8 Jun 2009 14:58:19 -0700 (PDT) X-Virus-Scanned: amavisd-new at Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vjlsMSDd9Vhl for ; Mon, 8 Jun 2009 14:58:17 -0700 (PDT) Original-Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id DA3DCA856BE for ; Mon, 8 Jun 2009 14:58:16 -0700 (PDT) X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 08 Jun 2009 18:17:26 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28564 gmane.emacs.pretest.bugs:24580 Archived-At: Recent (this morning) CVS crashes if you enter an accented character =20 with Flyspell enablaed. Steps to reproduce: 1. Launch emacs with -Q 2. Change modifiers so Option isn=E2=80=99t mapped: (setq mac-command-modifier 'meta mac-option-modifier nil) 3. Enable flyspell: M-x flyspell-mode RET 4. Type a a word with an accented character: touch=C3=A9 SPC (That=E2=80=99s: t o u c h option-e e) Emacs crashes with: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x000ce138 in kbd_buffer_get_event (kbp=3D0xbfffdfa8, =20 used_mouse_menu=3D0x0, end_time=3D0xbfffe138) at keyboard.c:4165 4165 *used_mouse_menu =3D 1; If flyspell-mode is disabled, Emacs doesn=E2=80=99t crash. `bt full' output: (gdb) bt full #0 0x000ce138 in kbd_buffer_get_event (kbp=3D0xbfffdfa8, =20 used_mouse_menu=3D0x0, end_time=3D0xbfffe138) at keyboard.c:4165 event =3D (struct input_event *) 0x3ad3f4 c =3D 0 obj =3D 8252437 #1 0x000cbb65 in read_char (commandflag=3D0, nmaps=3D0, maps=3D0x0, =20 prev_event=3D25165881, used_mouse_menu=3D0x0, end_time=3D0xbfffe138) at =20= keyboard.c:3059 kb =3D (KBOARD *) 0x839260 c =3D 25165833 count =3D -1 jmpcount =3D 8 local_getcjmp =3D {895, -1073749600, 8098, 830008, 863736, = -1073749600, =20 -1073749388, 1645590, -1073749768, -1073750208, 31, 658, 831883, 23, =20 -65505, -65505, 0, 55} save_jump =3D {0 } key_already_recorded =3D 0 tem =3D 25165833 save =3D 25165833 previous_echo_area_message =3D 25165833 also_record =3D 25165833 reread =3D 0 gcpro1 =3D { next =3D 0x939be2eb, var =3D 0x1f0b11, nvars =3D -1073749600 } gcpro2 =3D { next =3D 0x2, var =3D 0x8529e0, nvars =3D -1764089896 } polling_stopped_here =3D 1 orig_kboard =3D (struct kboard *) 0x839260 #2 0x0019198d in read_filtered_event (no_switch_frame=3D0, =20 ascii_required=3D0, error_nonascii=3D0, input_method=3D0, seconds=3D24) = at =20 lread.c:707 val =3D 8 delayed_switch_frame =3D 25165833 end_time =3D { tv_sec =3D 1244497951, tv_usec =3D 581814 } #3 0x00191c89 in Fread_event (prompt=3D25165833, =20 inherit_input_method=3D25165833, seconds=3D24) at lread.c:821 No locals. #4 0x00168bc4 in Ffuncall (nargs=3D4, args=3D0xbfffe270) at eval.c:3051 fun =3D 3820052 original_fun =3D 25246497 funcar =3D 0 numargs =3D 3 lisp_numargs =3D 1803477 val =3D 25165881 backtrace =3D { next =3D 0xbfffe550, function =3D 0xbfffe270, args =3D 0xbfffe274, nargs =3D 3, evalargs =3D 0 '\0', debug_on_exit =3D 0 '\0' } internal_args =3D (Lisp_Object *) 0xbfffe274 i =3D 1 #5 0x001b9105 in Fbyte_code (bytestr=3D2401179, vector=3D2401196, =20 maxdepth=3D40) at bytecode.c:678 count =3D 8 op =3D 3 vectorp =3D (Lisp_Object *) 0x24a3b0 bytestr_length =3D 90 stack =3D { pc =3D 0x39549f "?\034??X", top =3D 0xbfffe27c, bottom =3D 0xbfffe270, byte_string =3D 2401179, byte_string_start =3D 0x39545f "\b??\020", constants =3D 2401196, next =3D 0xbfffe648 } top =3D (Lisp_Object *) 0xbfffe270 result =3D -41 #6 0x00169450 in funcall_lambda (fun=3D2401116, nargs=3D1, =20 arg_vector=3D0xbfffe5b4) at eval.c:3232 val =3D 1476369 syms_left =3D 25165833 next =3D 25474761 count =3D 5 i =3D 1 optional =3D 1 rest =3D 0 #7 0x00168e31 in Ffuncall (nargs=3D2, args=3D0xbfffe5b0) at eval.c:3091 fun =3D 2401116 original_fun =3D 25471361 funcar =3D 5206269 numargs =3D 1 lisp_numargs =3D 1803477 val =3D -1073748584 backtrace =3D { next =3D 0xbfffe880, function =3D 0xbfffe5b0, args =3D 0xbfffe5b4, nargs =3D 1, evalargs =3D 0 '\0', debug_on_exit =3D 0 '\0' } internal_args =3D (Lisp_Object *) 0x1805e4a i =3D 25189962 #8 0x001b9105 in Fbyte_code (bytestr=3D33606163, vector=3D23225812, =20 maxdepth=3D16) at bytecode.c:678 count =3D 5 op =3D 1 vectorp =3D (Lisp_Object *) 0x16265d8 bytestr_length =3D 81 stack =3D { pc =3D 0x21021f8 "?=CC=87=CC=87", top =3D 0xbfffe5b4, bottom =3D 0xbfffe5b0, byte_string =3D 33606163, byte_string_start =3D 0x21021ac "dSeX?\t", constants =3D 23225812, next =3D 0xbfffe978 } top =3D (Lisp_Object *) 0xbfffe5b0 result =3D 25165833 #9 0x00169450 in funcall_lambda (fun=3D23225988, nargs=3D0, =20 arg_vector=3D0xbfffe8e4) at eval.c:3232 val =3D 25165833 syms_left =3D 25165833 next =3D 2096 count =3D 5 i =3D 0 optional =3D 0 rest =3D 0 #10 0x00168e31 in Ffuncall (nargs=3D1, args=3D0xbfffe8e0) at eval.c:3091 fun =3D 23225988 original_fun =3D 33605145 funcar =3D 1 numargs =3D 0 lisp_numargs =3D 1359974 val =3D 25165833 backtrace =3D { next =3D 0xbfffebb0, function =3D 0xbfffe8e0, args =3D 0xbfffe8e4, nargs =3D 0, evalargs =3D 0 '\0', debug_on_exit =3D 0 '\0' } internal_args =3D (Lisp_Object *) 0x180975a i =3D 25204570 #11 0x001b9105 in Fbyte_code (bytestr=3D33607635, vector=3D8509204, =20 maxdepth=3D32) at bytecode.c:678 count =3D 3 op =3D 0 vectorp =3D (Lisp_Object *) 0x81d718 bytestr_length =3D 121 stack =3D { pc =3D 0x210262b "?*", top =3D 0xbfffe8e0, bottom =3D 0xbfffe8e0, byte_string =3D 33607635, byte_string_start =3D 0x2102610 "\b?x", constants =3D 8509204, next =3D 0x0 } top =3D (Lisp_Object *) 0xbfffe8e0 result =3D 24110326 #12 0x00169450 in funcall_lambda (fun=3D8509412, nargs=3D0, =20 arg_vector=3D0xbfffeca0) at eval.c:3232 val =3D 25501976 syms_left =3D 25165833 next =3D 6297212 count =3D 3 i =3D 0 optional =3D 0 rest =3D 0 #13 0x00168e31 in Ffuncall (nargs=3D1, args=3D0xbfffec9c) at eval.c:3091 fun =3D 8509412 original_fun =3D 33930793 funcar =3D 1362040 numargs =3D 0 lisp_numargs =3D 34545322 val =3D 25165833 backtrace =3D { next =3D 0xbfffed20, function =3D 0xbfffec9c, args =3D 0xbfffeca0, nargs =3D 0, evalargs =3D 0 '\0', debug_on_exit =3D 0 '\0' } internal_args =3D (Lisp_Object *) 0x1800009 i =3D 34545322 #14 0x00168413 in run_hook_with_args (nargs=3D1, args=3D0xbfffec9c, =20 cond=3Dto_completion) at eval.c:2704 sym =3D 25196057 val =3D 8191213 ret =3D 25165833 globals =3D 25165833 gcpro1 =3D { next =3D 0x0, var =3D 0x0, nvars =3D 33827088 } gcpro2 =3D { next =3D 0xbfffec78, var =3D 0x181b109, nvars =3D 25165833 } gcpro3 =3D { next =3D 0x82787a, var =3D 0x105, nvars =3D 1480343 } #15 0x001681dc in Frun_hooks (nargs=3D1, args=3D0xbfffeda4) at = eval.c:2567 hook =3D {33930793} i =3D 0 #16 0x00168a21 in Ffuncall (nargs=3D2, args=3D0xbfffeda0) at eval.c:3026 fun =3D 3815364 original_fun =3D 25255761 funcar =3D 1021522 numargs =3D 1 lisp_numargs =3D 0 val =3D -1073746552 backtrace =3D { next =3D 0x0, function =3D 0xbfffeda0, args =3D 0xbfffeda4, nargs =3D 1, evalargs =3D 0 '\0', debug_on_exit =3D 0 '\0' } internal_args =3D (Lisp_Object *) 0x828 i =3D 2096 #17 0x00168630 in call1 (fn=3D25255761, arg1=3D25196057) at eval.c:2830 ret_ungc_val =3D 1142808 gcpro1 =3D { next =3D 0x0, var =3D 0x116299, nvars =3D 2 } #18 0x000ca3bf in safe_run_hooks_1 (hook=3D-1073746408) at = keyboard.c:2156 No locals. #19 0x00165fac in internal_condition_case (bfun=3D0xca36b =20 , handlers=3D25165881, hfun=3D0xca3cb =20 ) at eval.c:1512 val =3D 677756 c =3D { tag =3D 25165833, val =3D 25165833, next =3D 0xbffff0a8, gcpro =3D 0x0, jmp =3D {-1073806465, 25253690, 8098, 1465995, 0, 1, 0, 25165833, =20 -1073746296, -1073746480, 31, 658, 1466161, 1441815, 25231391, =20 25165855, 6291456, 55}, backlist =3D 0x0, handlerlist =3D 0xbffff094, lisp_eval_depth =3D 0, pdlcount =3D 3, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } h =3D { handler =3D 25165881, var =3D 25165833, chosen_clause =3D 1361607, tag =3D 0xbfffee08, next =3D 0xbffff094 } #20 0x000ca4a3 in safe_run_hooks (hook=3D25196057) at keyboard.c:2184 count =3D 2 #21 0x000c95a7 in command_loop_1 () at keyboard.c:1920 cmd =3D 25195913 lose =3D 0 nonundocount =3D 5 keybuf =3D {832, 40, -1566119790, 4122928, -1754246680, = -1880941672, =20 -1880949728, -1073745796, 152, 0, 4706304, 163, 1245186, 249856, =20 -1880941408, 182, 151, 41910568, -1826387128, 230, 9, 0, -1073745904, =20= -1073746208, 0, 524288, 25165833, 25599729, 2600356, 4856205} i =3D 1 prev_modiff =3D 336 prev_buffer =3D (struct buffer *) 0x601678 already_adjusted =3D 0 #22 0x00165fac in internal_condition_case (bfun=3D0xc775e =20 , handlers=3D25205425, hfun=3D0xc6e67 ) at =20= eval.c:1512 val =3D 4856205 c =3D { tag =3D 25165833, val =3D 25165833, next =3D 0xbffff16c, gcpro =3D 0x0, jmp =3D {-1073806465, 76, 8098, 1465995, 33630208, 1464437, 0, 0, =20 -1073745624, -1073745808, 31, 658, 1466161, -1826422761, 31, 31, 0, 55}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } h =3D { handler =3D 25205425, var =3D 25165833, chosen_clause =3D -1881116971, tag =3D 0xbffff0a8, next =3D 0x0 } #23 0x000c738e in command_loop_2 () at keyboard.c:1359 val =3D 4028928 #24 0x0016593d in internal_catch (tag=3D25201545, func=3D0xc7359 =20 , arg=3D25165833) at eval.c:1248 c =3D { tag =3D 25201545, val =3D 25165833, next =3D 0x0, gcpro =3D 0x0, jmp =3D {-1826421889, 0, 8098, 1464437, -1826422635, 0, 0, 0, =20 -1073745432, -1073745584, 25296927, 662, 1464622, 23, 25165855, =20 -1073807329, 25296896, 25296951}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } #25 0x000c7317 in command_loop () at keyboard.c:1338 No locals. #26 0x000c68eb in recursive_edit_1 () at keyboard.c:953 count =3D 1 val =3D 1481113 #27 0x000c6af4 in Frecursive_edit () at keyboard.c:1015 count =3D 0 buffer =3D 25165833 #28 0x000c4df9 in main (argc=3D2, argv=3D0xbffff47c) at emacs.c:1852 dummy =3D 0 stack_bottom_variable =3D 0 '\0' do_initial_setlocale =3D 1 skip_args =3D 0 rlim =3D { rlim_cur =3D 8388608, rlim_max =3D 67104768 } no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 dname_arg2 =3D "|???\002\000\000\000X???r\030??=20 \000\020\000\000\000\000\000\000\002\000\000\000|???????\030???", '\0' =20= `xbacktrace' output: In GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) of 2009-06-08 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Inferior Python Minor modes in effect: diff-auto-refine-mode: t erc-track-mode: t erc-track-minor-mode: t erc-spelling-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-autojoin-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-readonly-mode: t erc-scrolltobottom-mode: t compilation-shell-minor-mode: t which-function-mode: t yas/minor-mode: t shell-dirtrack-mode: t ime-bindings: t show-paren-mode: t recentf-mode: t iswitchb-mode: t cua-mode: t auto-insert-mode: t tooltip-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: Recent messages: Quit=