Heap corruption in reading struct fields in ctor
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Dec 19 20:13:52 PST 2012
On Thu, Dec 20, 2012 at 04:37:25AM +0100, deadalnix wrote:
> Can you tell more about what is the corruption ?
>
> Are you getting garbage elements from front ? Can you use a debugger
> or add some writeln to show some pointer addresses ?
Yeah it's garbage elements from front. I'll try a debugger, but this
problem only happens in git dmd, not in gdc, and dmd executables are a
bit of a pain to deal with in gdb.
> Is GC.collect() changing something (like triggering the problem
> earlier) ?
I don't think it's the GC, because this program is so tiny.
T
--
I am Ohm of Borg. Resistance is voltage over current.
More information about the Digitalmars-d
mailing list