From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Current emacs blows up on OSX if any control key is pressed Date: Mon, 11 Jan 2010 02:00:30 -0800 Message-ID: References: <1tpr5hwwjx.fsf@fencepost.gnu.org> <87my0lh7uy.fsf@bnikolic.co.uk> <86k4vpmq08.fsf_-_@blue.stonehenge.com> <86fx6dmmj8.fsf@blue.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1263204127 17963 80.91.229.12 (11 Jan 2010 10:02:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2010 10:02:07 +0000 (UTC) Cc: David Reitter , emacs-devel@gnu.org To: Randal L. Schwartz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 11 11:01:58 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUH5u-0001Vl-GF for ged-emacs-devel@m.gmane.org; Mon, 11 Jan 2010 11:01:54 +0100 Original-Received: from localhost ([127.0.0.1]:58556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUH5v-0002Zb-4j for ged-emacs-devel@m.gmane.org; Mon, 11 Jan 2010 05:01:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUH52-00028w-LB for emacs-devel@gnu.org; Mon, 11 Jan 2010 05:01:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUH4z-00025n-4P for emacs-devel@gnu.org; Mon, 11 Jan 2010 05:01:00 -0500 Original-Received: from [199.232.76.173] (port=56663 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUH4y-00025U-Rt for emacs-devel@gnu.org; Mon, 11 Jan 2010 05:00:56 -0500 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:34561) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUH4v-0006By-Gs for emacs-devel@gnu.org; Mon, 11 Jan 2010 05:00:56 -0500 Original-Received: by yxe29 with SMTP id 29so2477730yxe.14 for ; Mon, 11 Jan 2010 02:00:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=dauOEaAhETci+hLvRf9yZswcE/3wMH2H0cCJ8i99UBE=; b=DB2VdpBINOjX7iXFfaFcNlq/1lesHbyX29xnd2VLJ54rUxNnKURMX3jzHQkUHMUKsC p//AJlCnJ/GHeg1joVq9YR2gahnl9/UNQzX6+yoUdEcdhGFqdYhKIL9YIXIbeU02ujTW Qj9dT9pq7JF/DZE3yWw2Rm4j3mESYXiOc+aAg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=VozUxrHUF5bfCwJFMSBogq/qsTV6TEOnQ86YmgfoHIJy87smN2hLBc0AWOBkaOIyUs s2YwYw5Z8wdqJEanz5exjHa8Ib8a7aQ1SBur/LJu5rCxJ9MCTtSM3mxAnXycOIp2+p6c T2WfD8ZTm1jYdbZsI9tdt9N+mdlhYxMBMBHa0= Original-Received: by 10.150.70.4 with SMTP id s4mr12933474yba.21.1263204033757; Mon, 11 Jan 2010 02:00:33 -0800 (PST) Original-Received: from ?10.0.1.6? (c-98-247-149-76.hsd1.wa.comcast.net [98.247.149.76]) by mx.google.com with ESMTPS id 8sm10341951yxg.60.2010.01.11.02.00.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Jan 2010 02:00:32 -0800 (PST) In-Reply-To: <86fx6dmmj8.fsf@blue.stonehenge.com> X-Mailer: Apple Mail (2.1077) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119817 Archived-At: On Jan 10, 2010, at 5:56 PM, Randal L. Schwartz wrote: >>>>>> "David" =3D=3D David Reitter writes: >=20 > David> On Jan 10, 2010, at 7:41 PM, Randal L. Schwartz wrote: >>>=20 >>> Some change between Jan 6 and now causes emacs to blow up on OSX >>> if any control key is pressed. >=20 > David> Is that the NS port, I take it? >=20 > Yes, using the NS stuff. >=20 > David> I just merged the latest changes in and, at least with my = branch, I'm > David> not getting any such problems. >=20 > I'm on Leopard, not Snow Leopard. I did see some recent changes > to src/nsterm.m that talked about modifier keys. I saw the same thing, poked at it a little while, and got as far as = verifying that reverting Chong Yidong's change to src/nsterm.m fixes the = problem but not so far as to figure out why. This is the first time = I've been back to email since, and I don't expect to have time to dig = for several days, sadly. I'm building on Snow Leopard (configure = --with-ns), in case it matters. The actual crash is in keyboard.c, in a call to = parse_solitary_modifer(). It gets called a few times successfully on = startup, and then after all the init is done it tries to pass a zero to = SREF() for the switch; I presume because of the init changes in = nsterm.m. I hope this helps. *Chad Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008 0x00000001000979d8 in parse_solitary_modifier (symbol=3D0) at = keyboard.c:6909 6909 switch (SREF (name, 0)) (gdb) where #0 0x00000001000979d8 in parse_solitary_modifier (symbol=3D0) at = keyboard.c:6909 #1 0x0000000100169dab in -[EmacsView keyDown:] (self=3D0x1008ebf60, = _cmd=3D, = theEvent=3D0x116b4c700) at nsterm.m:4435 #2 0x000000010017bf96 in -[EmacsMenu performKeyEquivalent:] (self=3D0x0, = _cmd=3D0x7fff80bde7e8, theEvent=3D0x50f) at nsmenu.m:592 #3 0x00007fff80637db1 in -[NSApplication _handleKeyEquivalent:] () #4 0x00007fff805089e1 in -[NSApplication sendEvent:] () #5 0x0000000100167b36 in -[EmacsApp sendEvent:] (self=3D0x10072a590, = _cmd=3D, = theEvent=3D0x116b4c700) at nsterm.m:3977 #6 0x00007fff8049f796 in -[NSApplication run] () #7 0x000000010016ab80 in ns_read_socket (terminal=3D, expected=3D0, = hold_quit=3D0x7fff5fbfea40) at nsterm.m:3126 #8 0x0000000100097075 in read_avail_input (expected=3D0) at = keyboard.c:7156 #9 0x0000000100097954 in gobble_input (expected=3D0) at keyboard.c:7067 #10 0x0000000100098d56 in get_input_pending (addr=3D0x100533378, = flags=3D1) at keyboard.c:7035 #11 0x0000000100098fb2 in swallow_events (do_display=3D1) at = keyboard.c:4468 #12 0x000000010000514b in sit_for (timeout=3D120, reading=3D1, = do_display=3D1) at dispnew.c:6622 #13 0x000000010009ead2 in read_char (commandflag=3D1, nmaps=3D4, = maps=3D0x7fff5fbfef10, prev_event=3D4320133130, = used_mouse_menu=3D0x7fff5fbff064, end_time=3D0x0) at keyboard.c:2970 #14 0x00000001000a03bf in read_key_sequence (keybuf=3D0x7fff5fbff100, = bufsize=3D30, prompt=3D4320133130, dont_downcase_last=3D0, = can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9502 #15 0x00000001000a293b in command_loop_1 () at keyboard.c:1643 #16 0x0000000100106857 in internal_condition_case (bfun=3D0x1000a26f0 = , handlers=3D4320204170, hfun=3D0x10009aaa0 ) = at eval.c:1490 #17 0x0000000100099e27 in command_loop_2 () at keyboard.c:1360 #18 0x0000000100106960 in internal_catch (tag=3D, func=3D0x100099df0 , = arg=3D4320133130) at eval.c:1226 #19 0x000000010009a8b6 in command_loop () at keyboard.c:1339 #20 0x000000010009ad1f in recursive_edit_1 () at keyboard.c:954 #21 0x000000010009aebf in Frecursive_edit () at keyboard.c:1016 #22 0x0000000100090477 in main (argc=3D1, argv=3D0x7fff5fbff6d0) at = emacs.c:1833