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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Martin Nowak <[email protected]> 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: -------