[Issue 10057] [2.063 beta] Module info overwritten in shared phobos.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 10 22:45:20 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10057


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu


--- Comment #2 from Martin Nowak <code at dawg.eu> 2013-05-10 22:45:19 PDT ---
Yes, wrong way of doing it and a known issuue. It's the reason why druntime
uses
https://github.com/D-Programming-Language/druntime/blob/master/src/test_runner.d.
I didn't yet got around of updating phobos unittests to use the same mechanism.

> It really should be an error, but I don't know how it
could be detected.

It can be detected, because the ModuleInfo* in the shared library points into
the executable due to interposing. If we agree that we want to disallow
interposing we can make it a runtime error.

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


More information about the Digitalmars-d-bugs mailing list