[Issue 10457] New: _d_toObject might fail with shared libraries

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 23 18:48:15 PDT 2013


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

           Summary: _d_toObject might fail with shared libraries
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-06-23 18:48:14 PDT ---
This happens because the function uses a heuristic to distinguish Objects from
Interfaces which depends on Interface.offset < 0x1_0000. With shared libraries
the Object.classname.ptr can be located above 0x8000_0000 and subsequently the
signed comparison in rt.cast_._d_toObject fails.
https://github.com/D-Programming-Language/druntime/blob/e3750be8beca690225d980b60f9879d6f913eed4/src/rt/cast_.d#L39

-- 
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