[Issue 9352] Memory corruption in delegate called by struct dtor

2022-11-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9352 RazvanN changed: What|Removed |Added CC||luka8...@owave.net --- Comment #5 from RazvanN

[Issue 9352] Memory corruption in delegate called by struct dtor

2020-07-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9352 hst...@quickfur.ath.cx changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 9352] Memory corruption in delegate called by struct dtor

2013-01-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9352 Adam D. Ruppe destructiona...@gmail.com changed: What|Removed |Added CC|

[Issue 9352] Memory corruption in delegate called by struct dtor

2013-01-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9352 --- Comment #2 from hst...@quickfur.ath.cx 2013-01-18 12:22:26 PST --- You're right, I added some writeln's to print the address of S.t, and here's what I got: ctor: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,

[Issue 9352] Memory corruption in delegate called by struct dtor

2013-01-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9352 --- Comment #3 from hst...@quickfur.ath.cx 2013-01-18 12:25:33 PST --- Rather than banning this outright, I think a better approach may be to detect when a delegate is referencing the struct on the stack, and create the struct on the heap