Bug 3649 – Socket not configured for work.

Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2009-12-25T12:36:00Z
Last change time
2015-06-09T01:27:38Z
Assigned to
nobody
Creator
4ybaka

Attachments

IDFilenameSummaryContent-TypeSize
534httpp.dTest codeapplication/octet-stream345
543sock.dTest-code 2. Modified example code from some resources.text/x-dsrc877
544strace.logFull "strace" log from TestCode2 with "ya.ru index" argumentstext/x-log10897
545strace_dumpstrace dump for running Test-code 2 with "ya.ru index"application/octet-stream9676

Comments

Comment #0 by 4ybaka — 2009-12-25T12:36:17Z
Created attachment 534 Test code I compile and run code as in attachment with dmd 2.037 under linux and always get number of sent bytes n=-1 and local address 0.0.0.0:0. But when I use dmd 1.051 (on linux) all works good: n=45 and local address 192.168.0.100:37563. Also I check it under Windows with dmd 2.036 and all works.
Comment #1 by denis.tomilin — 2010-01-06T07:42:04Z
Similar problem. Digital Mars D Compiler v2.038. Ubuntu 9.10(almost pure). With telnet all works perfectly. I'll add test code and strace-dump into attachments.
Comment #2 by denis.tomilin — 2010-01-06T07:44:30Z
Created attachment 543 Test-code 2. Modified example code from some resources.
Comment #3 by denis.tomilin — 2010-01-06T07:47:49Z
Created attachment 544 Full "strace" log from TestCode2 with "ya.ru index" arguments
Comment #4 by denis.tomilin — 2010-01-06T08:29:56Z
In 2.039 too. My 2 friends have similar problem.
Comment #5 by denis.tomilin — 2010-01-06T09:15:41Z
Tested on gentoo, fedora, debian and mops-linux. One result =/
Comment #6 by cy — 2010-01-06T10:17:03Z
Created attachment 545 strace dump for running Test-code 2 with "ya.ru index"
Comment #7 by bigasoft — 2010-02-05T15:37:09Z
This bug is duplicate of #2835. The problem is caused by missing sin.sin_family initialization. Please apply the fix suggested in bug #2835.
Comment #8 by denis.tomilin — 2010-02-05T15:46:27Z
(In reply to comment #7) > This bug is duplicate of #2835. > > The problem is caused by missing sin.sin_family initialization. > Please apply the fix suggested in bug #2835. Great. Now waiting for fixing in repo... *** This issue has been marked as a duplicate of issue 2835 ***