www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - bug in std.array.insertInPlace ?

reply Ruslan Mullakhmetov <tiabaldu gmail.com> writes:
Hi,

  I found some strange behavior of std.array.insertInPlace leading to segfault.

  The example below works for int, it is failed for reference type with 
array becoming of length bigger 1024 on windows (x64) and 512 on linux 
(x64).

  code: http://cloud.theambient.org/0O360r1d2t1g09171F1m

  Is it my bug or compiler?
-- 
BR, Ruslan Mullakhmetov
Nov 08 2011
parent reply "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Tuesday, November 08, 2011 23:55 Ruslan Mullakhmetov wrote:
 Hi,
 
 I found some strange behavior of std.array.insertInPlace leading to
 segfault.
 
 The example below works for int, it is failed for reference type with
 array becoming of length bigger 1024 on windows (x64) and 512 on linux
 (x64).
 
 code: http://cloud.theambient.org/0O360r1d2t1g09171F1m
 
 Is it my bug or compiler?
It might by related to http://d.puremagic.com/issues/show_bug.cgi?id=6874 - Jonathan M Davis
Nov 09 2011
parent Ruslan Mullakhmetov <tiabaldu gmail.com> writes:
On 2011-11-09 22:14:25 +0400, Jonathan M Davis said:

 On Tuesday, November 08, 2011 23:55 Ruslan Mullakhmetov wrote:
 Hi,
 
 I found some strange behavior of std.array.insertInPlace leading to
 segfault.
 
 The example below works for int, it is failed for reference type with
 array becoming of length bigger 1024 on windows (x64) and 512 on linux
 (x64).
 
 code: http://cloud.theambient.org/0O360r1d2t1g09171F1m
 
 Is it my bug or compiler?
It might by related to http://d.puremagic.com/issues/show_bug.cgi?id=6874 - Jonathan M Davis
thakns. so i won't submit an issue. -- BR, Ruslan Mullakhmetov
Nov 09 2011