From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Mattner Newsgroups: gmane.emacs.devel Subject: Re: C-g crash in C-x C-f (OSX Lion) Date: Sat, 17 Dec 2011 19:06:54 +0100 Message-ID: References: <4EEB48B2.9090602@swipnet.se> <83liqc1tac.fsf@gnu.org> <83fwgk1atk.fsf@gnu.org> <838vmb1tu6.fsf@gnu.org> <54BDFFDD-C0D2-4242-94D8-91D988B74283@swipnet.se> <9E3603B9-37F7-493A-9E27-EB245677C462@swipnet.se> <33D69265-A7AD-4FDA-8589-D75C893C3EFA@swipnet.se> 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 1324145223 25353 80.91.229.12 (17 Dec 2011 18:07:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2011 18:07:03 +0000 (UTC) Cc: Emacs developers To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 17 19:06:59 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 1Rbyew-0004Bt-Ud for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 19:06:59 +0100 Original-Received: from localhost ([::1]:38978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbyew-0002O5-C9 for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 13:06:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbyeu-0002O0-I8 for emacs-devel@gnu.org; Sat, 17 Dec 2011 13:06:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rbyet-0003cQ-KL for emacs-devel@gnu.org; Sat, 17 Dec 2011 13:06:56 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:61622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbyet-0003cL-Bm for emacs-devel@gnu.org; Sat, 17 Dec 2011 13:06:55 -0500 Original-Received: by iacb35 with SMTP id b35so5226733iac.0 for ; Sat, 17 Dec 2011 10:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WMzVkO/+KjeHJicD0W2Uyafhi2m6IoWzhj54++S0LSM=; b=j5tpP+jsJZllkofo1klsSpgr4Xey0GgTwJxpJG5xqZcZD4xQK/c16DTjeIdjk8dCZj 5LNwsUc/qgk29WOXHX7omogDwhIh8vyYD7YZK4YhM+XFxikANrT/1vvRDb5MREHlyoIG DvajdL3n4mWjb85yAFrnyoj7la4TWOrzYDSEk= Original-Received: by 10.50.87.227 with SMTP id bb3mr17091629igb.29.1324145214578; Sat, 17 Dec 2011 10:06:54 -0800 (PST) Original-Received: by 10.50.6.165 with HTTP; Sat, 17 Dec 2011 10:06:54 -0800 (PST) In-Reply-To: <33D69265-A7AD-4FDA-8589-D75C893C3EFA@swipnet.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:146784 Archived-At: On Sat, Dec 17, 2011 at 6:46 PM, Jan Dj=E4rv wrote: > > 17 dec 2011 kl. 18:19 skrev Carsten Mattner: > >> On Sat, Dec 17, 2011 at 6:15 PM, Jan Dj=E4rv wrote: >>> Hello. >>> >>> 17 dec 2011 kl. 17:47 skrev Carsten Mattner: >>> >>>> The gdb session is still open if there's anything else you want me >>>> to inspect/run. >>>> >>>> I can keep it open for 2-3 hours before I need to leave and stop >>>> the machine. >>> >>> What does this say: >>> >>> (gdb) p QPRIMARY >>> (gdb) xtype >>> (gdb) xsymbol >>> >>> ? >> >> (gdb) p QPRIMARY >> $3 =3D 27744162 >> (gdb) xtype >> Lisp_Symbol >> (gdb) xsymbol >> $4 =3D (struct Lisp_Symbol *) 0x1a757a0 >> "PRIMARY" >> (gdb) > > This is really wierd. > > Try > > (gdb) p NXPrimaryPboard > > and if it doesn't print 0: > > (gdb) po NXPrimaryPboard (gdb) p NXPrimaryPboard $5 =3D (NSString *) 0x488cb0 (gdb) po NXPrimaryPboard Selection (gdb) > I don't quite understand what is going on here, but I'm inclined > to fix the code as it should be and check it in. =A0I think Eli was corre= ct, > the pb =3D 0 is the error. Thanks for looking into it. > I have read up on pasteboardWithName and it should not return > NULL on an unknown string. =A0It may return NULL if the string argument > is NULL. =A0That kind of assumes symbol_to_nsstring returns NULL as > Eli suggested. =A0Under -nw, I guess x-open-connection is not called so > NXPrimaryPboard never gets initialized. =A0But you said this was a > graphical session or did I misunderstand that? Yes, the --with-ns Cocoa graphical session. There's another thread I was able to trigger when run in a terminal via -nw.