[Issue 14868] MmFile destructor seems to corrupt memory

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 6 13:27:49 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14868

--- Comment #10 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---

- straightforward, to throw out enforce, it will work safely, guarantee

Seems like the way to go. I'd think of it as hotfix, it's apparent that file
descriptor may already be closed by File object itself.

Ideally we'd have more sensible MM-file IO and/or virtual memory management
module, preferably in druntime.

> Besides that, I can't code neither test it for systems other than POSIX ones. Is it normal to live with two different implementations?

There is n auto-tester for that. All pulls are tested on all systems.
See e.g.
https://auto-tester.puremagic.com/pull-history.ghtml?projectid=1&repoid=3&pullid=3527

--


More information about the Digitalmars-d-bugs mailing list