[Issue 4614] New: ClassInfo.find seg faults on OS X

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 10 11:48:35 PDT 2010


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

           Summary: ClassInfo.find seg faults on OS X
           Product: D
           Version: D1
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mrjnewt at hotmail.com


--- Comment #0 from Justin Whear <mrjnewt at hotmail.com> 2010-08-10 11:48:33 PDT ---
Not sure if this is a DMD or druntime issue.
Using dmd 1.062 on OS X 10.6:
--Calling ClassInfo.find() causes a seg fault.

Test case:
<factory_test.d>
module factory_test;

import std.stdio;

class TestClassA {}

void main() {
    auto info = ClassInfo.find("factory_test.TestClassA");
}


Backtrace from gdb:
(gdb) r
Starting program: /Users/emsitesting/d/factory_test 
Reading symbols for shared libraries +. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000018
0x00003150 in D6object9ClassInfo4findFAaZC9ClassInfo ()
(gdb) bt
#0  0x00003150 in D6object9ClassInfo4findFAaZC9ClassInfo ()
#1  0x00002749 in _Dmain ()
#2  0x000163fd in main ()


Because Object.factory depends on this, it also fails. This is an important
issue for me as I have a GUI library written in D capable of building
interfaces from markup which uses this functionality heavily. Runs fine on
linux.

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