D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3649 - Socket not configured for work.
Summary: Socket not configured for work.
Status: RESOLVED DUPLICATE of issue 2835
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All Linux
: P1 blocker
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-25 12:36 UTC by Dmitriy Nesterov
Modified: 2015-06-09 01:27 UTC (History)
4 users (show)

See Also:


Attachments
Test code (345 bytes, application/octet-stream)
2009-12-25 12:36 UTC, Dmitriy Nesterov
Details
Test-code 2. Modified example code from some resources. (877 bytes, text/x-dsrc)
2010-01-06 07:44 UTC, iorlas
Details
Full "strace" log from TestCode2 with "ya.ru index" arguments (10.64 KB, text/x-log)
2010-01-06 07:47 UTC, iorlas
Details
strace dump for running Test-code 2 with "ya.ru index" (9.45 KB, application/octet-stream)
2010-01-06 10:17 UTC, Alexander Suhoverhov
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Dmitriy Nesterov 2009-12-25 12:36:17 UTC
Created attachment 534 [details]
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 iorlas 2010-01-06 07:42:04 UTC
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 iorlas 2010-01-06 07:44:30 UTC
Created attachment 543 [details]
Test-code 2. Modified example code from some resources.
Comment 3 iorlas 2010-01-06 07:47:49 UTC
Created attachment 544 [details]
Full "strace" log from TestCode2 with "ya.ru index" arguments
Comment 4 iorlas 2010-01-06 08:29:56 UTC
In 2.039 too. My 2 friends have similar problem.
Comment 5 iorlas 2010-01-06 09:15:41 UTC
Tested on gentoo, fedora, debian and mops-linux. One result =/
Comment 6 Alexander Suhoverhov 2010-01-06 10:17:03 UTC
Created attachment 545 [details]
strace dump for running Test-code 2 with "ya.ru index"
Comment 7 Andrey Smachev 2010-02-05 15:37:09 UTC
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 iorlas 2010-02-05 15:46:27 UTC
(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 ***