Working on it now, it's definitely a weird one.  You have to allocate 3 
different memory segments, of certain sizes, and then one memory segment has to 
be no-pointers, where the other isn't.  Then you have to trick the array 
appending code into copying the no-pointers flag to a pointers-containing 
block, and then get the corruption to occur.  I hope I can deterministically 
make it happen.

Ellery's code, which uses appending all over the place, would not 
deterministically reproduce it (probably 1 out of 4 runs), and that was a huge 
piece of code.

-Steve



----- Original Message ----
> From: Walter Bright <[email protected]>
> To: Discuss the phobos library for D <[email protected]>
> Sent: Tue, April 6, 2010 7:30:53 PM
> Subject: Re: [phobos] Looks like more problems with the array append patches
> 
> Thank you. I want it especially because this error slipped through all the 
> other 
> tests that attempted to flush out memory corruption errors in the allocator 
> and 
> gc.

Steve Schveighoffer wrote:
> OK, it will take me a while to 
> make one, but I should be able to do it.
> 
> -Steve
> 
> 
> 
> 
> ----- Original Message ----
>  
> 
>> From: Walter Bright <
> href="mailto:[email protected]";>[email protected]>
>> 
> To: Discuss the phobos library for D <
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]>
>> 
> Sent: Tue, April 6, 2010 5:55:19 PM
>> Subject: Re: [phobos] Looks like 
> more problems with the array append patches
>> 
>> Thanks much 
> for taking care of this. I'd also like a test case we can    
> 
> add to  
>> the test suite, so we can ensure it never happens 
> again.
>>    
> 
>  
> 
_______________________________________________
phobos mailing list

> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos


      
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to