gnustep-dev
[Top][All Lists]
Advanced

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

Failure to launch apps - segfault in NSTimer


From: Riccardo Mottola
Subject: Failure to launch apps - segfault in NSTimer
Date: Mon, 16 Mar 2020 09:17:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.1

Hi,

on the following setup:
- Gentoo Linux
- x86
- libobjc2 (latest git)
- latest base/gui/back


A launch of Ink does:

Program received signal SIGSEGV, Segmentation fault.
0xb7561fc8 in -[NSTimer
initWithFireDate:interval:target:selector:userInfo:repeats:]
(self=0x84cb9f4, _cmd=0xb784e4d0 <objc_selector_list+552>, fd=0x0, ti=30,
    object=0x84cb8d4, selector=0x0, info=0x0, f=1 '\001') at NSTimer.m:119
119       if (ti <= 0.0)



what is fd in the signature, which is null?

119       if (ti <= 0.0)
(gdb) list
114                      target: (id)object
115                    selector: (SEL)selector
116                    userInfo: (id)info
117                     repeats: (BOOL)f
118     {
119       if (ti <= 0.0)
120         {
121           ti = 0.0001;
122         }
123       if (fd == nil)

still, none of these looks wild, except, perhaps


#0  0xb7561fc8 in -[NSTimer
initWithFireDate:interval:target:selector:userInfo:repeats:]
(self=0x84cb9f4, _cmd=0xb784e4d0 <objc_selector_list+552>, fd=0x0,
    ti=30, object=0x84cb8d4, selector=0x0, info=0x0, f=1 '\001')
    at NSTimer.m:119
#1  0xb75318ff in +[NSRunLoop _runLoopForThread:] (self=<optimized out>,
    _cmd=<optimized out>, aThread=<optimized out>) at NSRunLoop.m:784
#2  0xb7531965 in +[NSRunLoop currentRunLoop] (self=<optimized out>,
    _cmd=<optimized out>) at NSRunLoop.m:811
#3  0xb753169f in +[NSRunLoop initialize] (self=0x81092c0, _cmd=0x8090918)
    at NSRunLoop.m:747
#4  0xb723d158 in objc_send_initialize ()
   from /System/Library/Libraries/libobjc.so.4.6
#5  0xb7249058 in slowMsgLookup ()
   from /System/Library/Libraries/libobjc.so.4.6
#6  0xb724efc1 in objc_msgSend () from
/System/Library/Libraries/libobjc.so.4.6
#7  0xb75623e4 in +[NSTimer
scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:]
(self=<optimized out>, _cmd=<optimized out>, ti=<optimized out>,
    object=<optimized out>, selector=<optimized out>, info=<optimized out>,
    f=<optimized out>) at NSTimer.m:241
#8  0xb7cb4dbb in +[GSServicesManager newWithApplication:] (
    self=<optimized out>, _cmd=<optimized out>, app=<optimized out>)
    at GSServicesManager.m:556
#9  0xb7cb4e3f in +[GSServicesManager manager] (self=<optimized out>,



(gdb) p self
$1 = (NSTimer *) 0x84cb9f4
(gdb) p object
$2 = (id) 0x84cb8d4
(gdb) po object
<GSFFIInvocation 0x84cb8d4 selector: postNotification: target:
NSNotificationCenter>



Riccardo



reply via email to

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