[Issue 4951] InternetAddress fails to resolve host when multithreading.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 18 14:54:47 PDT 2010


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



--- Comment #5 from Stephan Dilly <spam at extrawurst.org> 2010-10-18 14:54:06 PDT ---
i rechecked this issue and the reproduction code.
the following code reproduces the crash for sure ( the original code did not,
at least under dmd2045 )

[CODE]
import core.thread;
import std.socket;
import std.stdio;

void test() {
    auto a = new InternetAddress("www.google.com", 80);
    writeln("Connected successfuly.");
}

void main() {
    auto thr = new Thread(&test);
    thr.start();

    scope(failure) writefln("crash");

    foreach(i; 0..10)
        auto a = new InternetAddress("www.google.com", 80);
}
[/CODE]

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