From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#1435: C-Click on a mode in the mode-line causes crash in MacOS X Date: Fri, 23 Jan 2009 12:32:16 +0200 Message-ID: <28CB4C8B-7EAD-45A4-9840-2CCD2C8167EE@gmail.com> Reply-To: Adrian Robert , 1435@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232707545 10912 80.91.229.12 (23 Jan 2009 10:45:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2009 10:45:45 +0000 (UTC) Cc: Jason Schadel To: 1435@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 11:46:58 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 1LQJYZ-00046A-H0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 11:46:36 +0100 Original-Received: from localhost ([127.0.0.1]:58585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQJXH-00068R-QF for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Jan 2009 05:45:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQJVd-0004Oa-5j for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 05:43:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQJVb-0004Lm-MD for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 05:43:31 -0500 Original-Received: from [199.232.76.173] (port=47023 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQJVb-0004La-F4 for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 05:43:31 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43019) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQJVa-000454-RO for bug-gnu-emacs@gnu.org; Fri, 23 Jan 2009 05:43:31 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0NAhS7W015114; Fri, 23 Jan 2009 02:43:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0NAe4bA014081; Fri, 23 Jan 2009 02:40:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Fri, 23 Jan 2009 10:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1435 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 1435-submit@emacsbugs.donarmstrong.com id=B1435.123270674812706 (code B ref 1435); Fri, 23 Jan 2009 10:40:04 +0000 Original-Received: (at 1435) by emacsbugs.donarmstrong.com; 23 Jan 2009 10:32:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0NAWOSg012698 for <1435@emacsbugs.donarmstrong.com>; Fri, 23 Jan 2009 02:32:26 -0800 Original-Received: by ewy3 with SMTP id 3so4649283ewy.1 for <1435@emacsbugs.donarmstrong.com>; Fri, 23 Jan 2009 02:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:content-type :message-id:cc:content-transfer-encoding:from:subject:date:to :x-mailer; bh=tvHDPtjhlSx7eLx2XwikCcck401Nt8vGugnT59pPWoQ=; b=vGY8E4ly31rMPZG4oJSeAm4yWcEcNFwu3zLuAY0Pe3teESg/lglT/dA/1OVDgBtkkP mF/9D+qQNF+MfcOgVDyA6l5JyirWtrOexo+GjUodjUFHr6XIF+OerdN/H4sro62srkZm U6LSjsGkb8xMrchson0U+gqdwgFvnxf7T6dtk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; b=bW5Uc9jCo8hdBfnjB8Mqwt1HQ5AIaX5WRKhfN/MTy71Jcagtl9cfIPsFeDcJDEy2P0 qGGXoqgbIw3MzAGXBdSffLHj4eEYCM2UH2sPfAEbPz1Poj0WOdETUfExfzEzajLpYvrs Eke2DYNSNkuSpdUu1PBWMxrZ0EYG1581aaJhc= Original-Received: by 10.210.65.17 with SMTP id n17mr1129572eba.112.1232706738723; Fri, 23 Jan 2009 02:32:18 -0800 (PST) Original-Received: from ?192.168.1.101? (h006107.gprs.dnafinland.fi [87.93.6.107]) by mx.google.com with ESMTPS id 10sm4653807eyz.39.2009.01.23.02.32.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jan 2009 02:32:17 -0800 (PST) X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 23 Jan 2009 05:43:31 -0500 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:24413 Archived-At: I still cannot reproduce it. The only clue I can find is that the crash seems to be deep inside OS X's own menu code, when it apparently tries to send a selection to -[EmacsView writeSelectionToPasteboard:types:]. This should only occur if a native services menu selection is made, however for Emacs.app we override the services menu with our own items, so any selection from the actual visible services menu goes through ns-perform-service. In your case, it seems doing your mouse action is somehow triggering a call into the (hidden and overridden) original services menu. Do you know why this might be? Do you have anything unusual running on your Mac, such as something that automatically is active when a selection is made or a menu item chosen, or a certain type of mouse- click made, or something like that? Anyway, I have checked in something that might at least avoid the crash for now, it simply stubs out the methods in question: -writeSelectionToPasteboard:types: and -readSelectionFromPasteboard: Let me know if this stops the crash, and if so, if any behavior that is normally expected (in connection with this behind-the-scenes service call if you know what it is) is not observed. thanks, Adrian