emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-g crash in C-x C-f (OSX Lion)


From: Carsten Mattner
Subject: Re: C-g crash in C-x C-f (OSX Lion)
Date: Sat, 17 Dec 2011 19:06:54 +0100

On Sat, Dec 17, 2011 at 6:46 PM, Jan Djärv <address@hidden> wrote:
>
> 17 dec 2011 kl. 18:19 skrev Carsten Mattner:
>
>> On Sat, Dec 17, 2011 at 6:15 PM, Jan Djärv <address@hidden> 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 = 27744162
>> (gdb) xtype
>> Lisp_Symbol
>> (gdb) xsymbol
>> $4 = (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 = (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.  I think Eli was correct,
> the pb = 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.  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?

Yes, the --with-ns Cocoa graphical session.
There's another thread I was able to trigger when run in a terminal
via -nw.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]