[Issue 3930] AAs horribly broken

2010-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3930


Don  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||clugd...@yahoo.com.au
 Resolution||FIXED


--- Comment #4 from Don  2010-03-27 07:50:20 PDT ---
Fixed DMD2.042.

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


[Issue 3930] AAs horribly broken

2010-03-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3930


Steven Schveighoffer  changed:

   What|Removed |Added

 CC||r.sagita...@gmx.de


--- Comment #3 from Steven Schveighoffer  2010-03-11 
05:44:03 PST ---
*** Issue 3898 has been marked as a duplicate of this issue. ***

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


[Issue 3930] AAs horribly broken

2010-03-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3930


Steven Schveighoffer  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #2 from Steven Schveighoffer  2010-03-11 
05:10:16 PST ---
I found the problem.  It has nothing to do with the cache, but it has to do
with a bug with how I store the length in the block.

Because I must store the length of a block that is page size or greater at the
front of the block (smaller blocks I store the length at the end), the start of
an array is offset by 2*size_t.sizeof bytes.

The problem comes when initializing a newly allocated array.  I forgot to add
the offset for larger arrays when calling memset, so the last 2*size_t.sizeof
bytes are not initialized.  In addition, if you allocated a large array of
structs which had a non-uniform initializer, they could all be skewed!

I think this fix is worth a new release of dmd.  I checked in the changes, but
druntime doesn't build at the moment, I think someone is adding stack tracing. 
Try this patch on your local copy of druntime and see if it fixes the problem
for you:
http://www.dsource.org/projects/druntime/changeset/261/trunk?format=diff&new=261

cc'ing walter to notify him.

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


[Issue 3930] AAs horribly broken

2010-03-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3930


Steven Schveighoffer  changed:

   What|Removed |Added

 CC||schvei...@yahoo.com


--- Comment #1 from Steven Schveighoffer  2010-03-11 
04:07:31 PST ---
I can only find two places that AA's use free, one when an element is removed
via gc_free, and once to delete the hash array itself.  Commenting out both of
those, I still get the segmentation fault.

I'm still not convinced that the stomping fixes I put in are not to blame, I
will try commenting those out.

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