From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: C-g crash in C-x C-f (OSX Lion) Date: Sat, 17 Dec 2011 18:46:04 +0100 Message-ID: <33D69265-A7AD-4FDA-8589-D75C893C3EFA@swipnet.se> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324143976 17997 80.91.229.12 (17 Dec 2011 17:46:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2011 17:46:16 +0000 (UTC) Cc: Emacs developers To: Carsten Mattner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 17 18:46:12 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 1RbyKp-0005gg-SC for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 18:46:12 +0100 Original-Received: from localhost ([::1]:36179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbyKp-0008FD-1R for ged-emacs-devel@m.gmane.org; Sat, 17 Dec 2011 12:46:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbyKm-0008Cz-Ts for emacs-devel@gnu.org; Sat, 17 Dec 2011 12:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbyKm-0008Eo-06 for emacs-devel@gnu.org; Sat, 17 Dec 2011 12:46:08 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:37815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbyKl-0008Eh-Oy for emacs-devel@gnu.org; Sat, 17 Dec 2011 12:46:07 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 42A7095A4 for ; Sat, 17 Dec 2011 18:46:05 +0100 (CET) Original-Received: (qmail 20036 invoked by uid 89); 17 Dec 2011 17:45:28 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 17 Dec 2011 17:45:28 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id D45037FA058; Sat, 17 Dec 2011 18:46:04 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 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:146782 Archived-At: 17 dec 2011 kl. 18:19 skrev Carsten Mattner: > On Sat, Dec 17, 2011 at 6:15 PM, Jan Dj=E4rv = wrote: >> Hello. >>=20 >> 17 dec 2011 kl. 17:47 skrev Carsten Mattner: >>=20 >>> The gdb session is still open if there's anything else you want me >>> to inspect/run. >>>=20 >>> I can keep it open for 2-3 hours before I need to leave and stop >>> the machine. >>=20 >> What does this say: >>=20 >> (gdb) p QPRIMARY >> (gdb) xtype >> (gdb) xsymbol >>=20 >> ? >=20 > (gdb) p QPRIMARY > $3 =3D 27744162 > (gdb) xtype > Lisp_Symbol > (gdb) xsymbol > $4 =3D (struct Lisp_Symbol *) 0x1a757a0 > "PRIMARY" > (gdb) This is really wierd. =20 Try (gdb) p NXPrimaryPboard and if it doesn't print 0: (gdb) po NXPrimaryPboard 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. I think Eli was correct, the = pb =3D 0 is the error. I have read up on pasteboardWithName and it should not return NULL on an = unknown string. It may return NULL if the string argument is NULL. = That kind of assumes symbol_to_nsstring returns NULL as Eli suggested. = Under -nw, I guess x-open-connection is not called so NXPrimaryPboard = never gets initialized. But you said this was a graphical session or = did I misunderstand that? Jan D.