[Issue 4681] Appender access violation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 24 01:30:08 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4681


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #8 from Don <clugdbug at yahoo.com.au> 2010-08-24 01:30:01 PDT ---
Here's another test case for what I believe is the same thing. It's memory
corruption rather than a segfault. This is a regression since 2.047.

import std.stdio;
import std.array;

void main()
{
    Appender!(double[]) b, c;
    string[] t;
    t ~= "qqqqq";
    t ~= "qqqqq";
    double zzz;
    b.put( 111.1 );

    for (;;) {
        c.put(double.nan);
        b.put( 0);

        double qqq = b.data()[0];
        writefln("%s", qqq);
        assert(qqq>0);
    }
}
--------
111.1
111.1
111.1
111.1
nan
core.exception.AssertError at test(46): Assertion failure

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list