[Issue 1971] New: Any SocketException causes program to segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 4 12:59:27 PDT 2008


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

           Summary: Any SocketException causes program to segfault
           Product: D
           Version: 2.012
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: d at brian.codekitchen.net


strerror_r is incorrectly defined in std.c.string to return a (const char *),
but in fact it returns an int (probably an error from when strerror was
switched out for the threadsafe strerror_r). In linux/GDC builds
SocketException calls strlen() with the return value of strerror_r, causing a
segfault.


-- 



More information about the Digitalmars-d-bugs mailing list