| Summary: | socket.connect can't work correct in lang/gdc | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Gu Xianjie <kevinxlinuz> | ||||
| Component: | Individual Port(s) | Assignee: | Dmitry Marakasov <amdmi3> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Maintainer of lang/gdc,
Please note that PR ports/124437 has just been submitted.
If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.
The full text of the PR can be found at:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/124437
--
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool) This problem was fixed. The attached file, please commit. P.S. PR 124567 is also fixed. -- ozawa@ongs.co.jp Responsible Changed From-To: freebsd-ports-bugs->amdmi3 I'll take it. State Changed From-To: feedback->closed Committed, with minor changes. Thanks! |
In freebsd 7.0bata4/i386 and freebsd8.0current/amd64,socket.connect in gdc's socket.d ,can't work.it cause my program core dump. for example: A.d ------------------------ import std.socket; import std.socketstream; import std.stdio; int main() { Socket sock = new Socket(AddressFamily.INET, SocketType.STREAM, ProtocolType.IP); writefln("Befor"); sock.connect(new InternetAddress("www.digitalmars.com", 80)); writefln("After"); // SocketStream ss = new SocketStream(sock); // ss.writeString("GET /d/intro.html HTTP/1.1\r\n" // "Host: www.digitalmars.com\r\n" // "\r\n"); // while(ss.readLine().length) {} //skip header // while(!ss.eof()) { char[] line; // printf("%.*s\n", ss.readLine()); } return 0; } -------------------------------------- it can compile well,but it core dump at sock.connect(new InternetAddress("www.digitalmars.com", 80)); How-To-Repeat: install gdc from ports in freebsd 8.0current.and compile following and run it. import std.socket; import std.socketstream; import std.stdio; int main() { Socket sock = new Socket(AddressFamily.INET, SocketType.STREAM, ProtocolType.IP); writefln("Befor"); sock.connect(new InternetAddress("www.digitalmars.com", 80)); writefln("After"); // SocketStream ss = new SocketStream(sock); // ss.writeString("GET /d/intro.html HTTP/1.1\r\n" // "Host: www.digitalmars.com\r\n" // "\r\n"); // while(ss.readLine().length) {} //skip header // while(!ss.eof()) { char[] line; // printf("%.*s\n", ss.readLine()); } return 0; }