[Top][All Lists]

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

Re: Problem with object sender in -insertTab:

From: Fred Kiefer
Subject: Re: Problem with object sender in -insertTab:
Date: Thu, 23 Jan 2014 09:53:05 +0100

I think the problem is in NSTextView doCommandBySelector: there we should use 
the form of performSelector that has an additional argument. The only argument 
we can use here is self, which might not be what you expect, but it is still 
better than having a corrupt stack. I will try to fix this tomorrow.


On the road

Am 23.01.2014 um 08:21 schrieb Germán Arias <address@hidden>:

> On 2014-01-23 00:59:46 -0600 Fred Kiefer <address@hidden> wrote:
> [...]
>> This doesn't prove that the object still exist, just the reference is there. 
>> Your need to dereference that pointer to see if the object exists. ( p *obj 
>> or po obj)
>> But I don't think this is the problem. Could you please provide the stack 
>> trace?
>> Fred
> Here the stack (Gemas from SVN:
> (gdb) run
> Starting program: /usr/GNUstep/Local/Applications/
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/i386-linux-gnu/".
> Program received signal SIGSEGV, Segmentation fault.
> 0x00a9a2c6 in objc_msg_lookup () from /usr/lib/i386-linux-gnu/
> (gdb) bt
> #0  0x00a9a2c6 in objc_msg_lookup () from /usr/lib/i386-linux-gnu/
> #1  0x0804f3df in -[GemasEditorView insertTab:] (self=0x82d6ff8,
>    _cmd=0x5347d0, sender=0x58b268) at GemasEditorView.m:225
> #2  0x0079dcd7 in -[NSObject performSelector:] (self=0x82d6ff8, _cmd=0x58b278,
>    aSelector=0x5347d0) at NSObject.m:2012
> #3  0x00398667 in -[NSTextView doCommandBySelector:] (self=0x82d6ff8,
>    _cmd=0x5347b8, aSelector=0x5347d0) at NSTextView.m:2167
> #4  0x002c3ff4 in -[NSInputManager doCommandBySelector:] (self=0x81a7898,
>    _cmd=0x5347b8, aSelector=0x5347d0) at NSInputManager.m:785
> #5  0x002c53d4 in -[NSInputManager handleKeyboardEvents:client:] (
>    self=0x81a7898, _cmd=0x55bd28, eventArray=0x8301e60, client=0x82d6ff8)
>    at NSInputManager.m:670
> #6  0x00322a3f in -[NSResponder interpretKeyEvents:] (self=0x82d6ff8,
>    _cmd=0x58baf0, eventArray=0x8301e60) at NSResponder.m:140
> #7  0x0038e42b in -[NSTextView(leftovers) keyDown:] (self=0x82d6ff8,
>    _cmd=0x5a10d8, theEvent=0x84686c8) at NSTextView.m:5917
> #8  0x003d5de2 in -[NSWindow sendEvent:] (self=0x827e228, _cmd=0x4ebf40,
>    theEvent=0x84686c8) at NSWindow.m:4041
> #9  0x002121fd in -[NSApplication sendEvent:] (self=0x8140a78, _cmd=0x4ebe78,
>    theEvent=0x84686c8) at NSApplication.m:2107
> #10 0x0021460b in -[NSApplication run] (self=0x8140a78, _cmd=0x4e2348)
>    at NSApplication.m:1562
> #11 0x001f202f in NSApplicationMain (argc=1, argv=0xbfffe404) at 
> Functions.m:91
> #12 0x08048fe7 in main (argc=1, argv=0xbfffe404) at Gemas_main.m:26
> Germán.

reply via email to

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