Thread overview | |||||
---|---|---|---|---|---|
|
January 04, 2011 [Issue 5408] New: Calling GC.malloc inside a unittest with a flag of 1 results in an access violation. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5408 Summary: Calling GC.malloc inside a unittest with a flag of 1 results in an access violation. Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: wrong-code Severity: blocker Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: sandford@jhu.edu --- Comment #0 from Rob Jacques <sandford@jhu.edu> 2011-01-03 22:46:08 PST --- In DMD 2.051 (and probably DMD 2.050 as well), calling GC.malloc with the 'has interior pointers' flag (i.e., 1) inside a unittest block causes an access violation error or a program crash. This is a blocker for non-trivial use of the std.variant and std.json enhancements I'm working inside of unittests, including their own. Test case: import core.memory; unittest { GC.malloc(16, 0); // Okay GC.malloc(16, 1); // object.Error: Access Violation } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 22, 2012 [Issue 5408] Calling GC.malloc inside a unittest with a flag of 1 results in an access violation. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rob Jacques | http://d.puremagic.com/issues/show_bug.cgi?id=5408 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-01-21 16:29:26 PST --- Can't reproduce in 2.057 with `dmd -unittest test.d && test.exe` -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 11, 2012 [Issue 5408] Calling GC.malloc inside a unittest with a flag of 1 results in an access violation. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rob Jacques | http://d.puremagic.com/issues/show_bug.cgi?id=5408 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |WORKSFORME --- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-11 16:47:50 EST --- Can't reproduce with dmd 2.058 beta. Please reopen if you can reproduce with a recent version of dmd. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation