I'd like to, but I can't reproduce this failure.  Looking at the code, I wonder 
if the problem is that object is not retained.  There is a note in 
initWithObject: saying that the argument is retained in the calling thread, but 
in initWithClass: it's creating a new owned object.  If you add a -retain in 
initWithObject:, does that make the problem go away for you?  

David

On 28 Jun 2011, at 19:40, Quentin Mathé wrote:

> Hi,
> 
> I just observed that EtoileThread test suite crashes… Could someone who knows 
> EtoileThread well take a look at the problem?
> 
> Here is the backtrace I get:
> 
> 2011-06-28 20:32:57.062 ukrun[22828] Going multithreaded.
> [New Thread 0xb75fab70 (LWP 22835)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb75fab70 (LWP 22835)]
> 0x007930d8 in objc_msg_lookup () from /Local/Library/Libraries/libobjc.so.4
> (gdb) bt
> #0  0x007930d8 in objc_msg_lookup () from 
> /Local/Library/Libraries/libobjc.so.4
> #1  0x00be30e2 in -[ETThreadedObject runloop:] (self=0x84307c8, 
> _cmd=0xbec9a0, sender=0x0)
>    at 
> /home/qmathe/reps/trunkEtoile/Frameworks/EtoileFoundation/EtoileThread/ETThreadedObject.m:241
> #2  0x00455f88 in -[NSProxy performSelector:withObject:] (self=0x84307c8, 
> _cmd=0xbeae90, aSelector=0xbec9a0, 
>    anObject=0x0) at 
> /home/qmathe/reps/devmodules/core/base/Source/NSProxy.m:425
> #3  0x00be1de5 in threadStart (initialiser=0x843bf60)
>    at 
> /home/qmathe/reps/trunkEtoile/Frameworks/EtoileFoundation/EtoileThread/ETThread.m:63
> #4  0x00b3096e in start_thread (arg=0xb75fab70) at pthread_create.c:300
> #5  0x00892a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
> (gdb) f 1
> #1  0x00be30e2 in -[ETThreadedObject runloop:] (self=0x84307c8, 
> _cmd=0xbec9a0, sender=0x0)
>    at 
> /home/qmathe/reps/trunkEtoile/Frameworks/EtoileFoundation/EtoileThread/ETThreadedObject.m:241
> 241           BOOL idle = [object conformsToProtocol: @protocol(Idle)];
> 
> This is on Ubuntu 10.4 x86 32 bits with Clang trunk and libobjc2 trunk from 
> few days ago. My GNUstep working copy is about two weeks old.
> 
> Thanks,
> Quentin.
> _______________________________________________
> Etoile-dev mailing list
> Etoile-dev@gna.org
> https://mail.gna.org/listinfo/etoile-dev


-- Sent from my brain


_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to