From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: C-g crash in C-x C-f (OSX Lion) Date: Sat, 17 Dec 2011 10:13:55 +0200 Message-ID: <83aa6r1upo.fsf@gnu.org> References: <4EEB48B2.9090602@swipnet.se> <83liqc1tac.fsf@gnu.org> <83fwgk1atk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1324109642 6951 80.91.229.12 (17 Dec 2011 08:14:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2011 08:14:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Carsten Mattner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 17 09:13:58 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RbpP4-0001Ka-Fw for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 09:13:58 +0100 Original-Received: from localhost ([::1]:51481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbpP2-0002YT-Ud for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 03:13:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbpP0-0002YN-Cu for emacs-devel@gnu.org; Sat, 17 Dec 2011 03:13:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbpOz-00041D-DB for emacs-devel@gnu.org; Sat, 17 Dec 2011 03:13:54 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbpOz-00040O-6W for emacs-devel@gnu.org; Sat, 17 Dec 2011 03:13:53 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LWC009009H4HE00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 17 Dec 2011 10:13:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.39.203]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWC006WM9J2KR31@a-mtaout22.012.net.il>; Sat, 17 Dec 2011 10:13:51 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146763 Archived-At: > Date: Fri, 16 Dec 2011 22:49:49 +0100 > From: Carsten Mattner > Cc: emacs-devel@gnu.org >=20 > On Fri, Dec 16, 2011 at 10:11 PM, Eli Zaretskii wrot= e: > >> Date: Fri, 16 Dec 2011 21:19:19 +0100 > >> From: Carsten Mattner > >> Cc: emacs-devel@gnu.org > >> > >> > #0 =A00x9adc5d50 in strlen () > >> > #1 =A00x001e7601 in intern (str=3D0x0) at lread.c:3707 > >> > #2 =A00x00283efb in ns_string_to_symbol (t=3D0x0) at nsselect.= m:86 > >> > #3 =A00x002847ab in ns_handle_selection_request (event=3D0xbff= fef88) at > >> > nsselect.m:247 > >> > > >> > vs the below with with the terminal frontend. > >> > > >> > Next I will not load evil-mode and see what happens. > >> > >> Can these crashes happen due to enabled assertions? > > > > No. =A0Emacs crashes because it tries to compute the length of a = string > > specified by a NULL pointer. =A0It looks like this happens due to= a > > selection request, but when that request is handled, Emacs tries = to > > intern a name that is a NULL string. >=20 > For the record, I'm not sure this is the original crash I reported > that happened in the mini-buffer. >=20 > If I enable evil-mode I can reliably make it crash by pressing > v and then navigating with say } and making a selection. Since the crash seems to be related to a selection request coming fro= m outside Emacs, it can happen in any circumstances where you make a selection or do something that causes Emacs to put text into primary selection. So I think these crashes _are_ manifestation of the same problem.