[Issue 11777] [ICE] dmd memory corruption as `Scope::pop` `free`s `fieldinit` used also in `enclosing`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 25 02:09:50 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11777



--- Comment #8 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-12-25 14:09:38 MSK ---
(In reply to comment #7)
> (In reply to comment #6)
> > So now everyone can add `assert(enclosing->fieldinit != fieldinit);` check in
> > `Scope::pop` and test if the issue is triggered in his codebase, as in the
> > worst case it may silently occur without visible effect but with code
> > corruption.
> 
> Denis, can you test this patch?

I don't understand. The `assert` will definitely fail as I wrote. Did you mean
this:
---
assert(nofree || enclosing->fieldinit != fieldinit);
---
?
Anyway this `assert` fails too.

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


More information about the Digitalmars-d-bugs mailing list