gnustep-dev
[Top][All Lists]
Advanced

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

Re: _Block_object_assign crash


From: David Chisnall
Subject: Re: _Block_object_assign crash
Date: Tue, 28 Jun 2011 18:14:24 +0100

On 28 Jun 2011, at 17:39, lorenb wrote:

> After some sleep, it's clear that example was pretty dumb. I think I have a 
> better one, that *should* work (and does on OS X), but segfaults on Linux.
> 
> OS X:
> 2011-06-28 12:31:09.512 a.out[17451:903] a: x = test string
> 2011-06-28 12:31:09.514 a.out[17451:903] b: x = test string
> 2011-06-28 12:31:09.514 a.out[17451:903] -1-
> 2011-06-28 12:31:09.515 a.out[17451:903] -2-
> 2011-06-28 12:31:09.516 a.out[17451:903] -3-
> 2011-06-28 12:31:09.516 a.out[17451:903] -4-
> 
> 
> Linux:
> 2011-06-28 12:31:29.527 a.out[25272] a: x = test string
> 2011-06-28 12:31:29.529 a.out[25272] b: x = test string
> 2011-06-28 12:31:29.529 a.out[25272] -1-
> 2011-06-28 12:31:29.529 a.out[25272] -2-
> Segmentation fault
> 
> 
> the code below. two blocks both reference the same __block variable, which is 
> declared inside yet another block. runs fine, but crashes on teardown. 
> Apologies if this is the wrong place to post this - if so is there a better 
> place? 


Thanks for the test case.  I can reproduce this - I'll have a look at what's 
causing it...

David

-- Sent from my STANTEC-ZEBRA


reply via email to

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