Bug 491839 - cannot connect to server: invalid type passed to socket()
Summary: cannot connect to server: invalid type passed to socket()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: neon
Version: 11
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-24 11:54 UTC by Sascha Silbe
Modified: 2009-08-03 19:26 UTC (History)
5 users (show)

Fixed In Version: 0.28.5-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-03 19:26:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
runtime detection of SOCK_CLOEXEC (1.62 KB, patch)
2009-06-04 08:21 UTC, Sascha Silbe
no flags Details | Diff

Description Sascha Silbe 2009-03-24 11:54:04 UTC
Description of problem:
svn cannot access any remote server because it passes an invalid argument to the socket() syscall:

[...]
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("65.19.174.2")}, 28) = 0
sendto(4, "Z\334\1\0\0\1\0\0\0\0\0\0\3svn\5gnome\3org\0\0\1\0\1"..., 31, MSG_NOSIGNAL, NULL, 0) = 31
recvfrom(4, "Z\334\201\200\0\1\0\1\0\0\0\0\3svn\5gnome\3org\0\0\1\0\1\300\f\0\1\0\1\0\1P\234\0\4[\275]\3"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("65.19.174.2")}, [16]) = 47
socket(PF_INET, 0x80001 /* SOCK_??? */, IPPROTO_TCP) = -1 EINVAL (Invalid argument)
svn: OPTIONS of 'http://svn.gnome.org/svn/hippo-canvas/trunk': could not connect to server (http://svn.gnome.org)

The Fedora 10 version of svn is working fine on a different VM on the same physical host and git is working fine on the same VM.

Version-Release number of selected component (if applicable):
subversion-1.5.6-3.x86_64


How reproducible:
Always


Steps to Reproduce:
1. svn co http://svn.gnome.org/svn/hippo-canvas/trunk
2.
3.
  
Actual results:
svn: OPTIONS of 'http://svn.gnome.org/svn/hippo-canvas/trunk': could not connect to server (http://svn.gnome.org)


Expected results:
Check out hippo-canvas.


Additional info:

Comment 1 Joe Orton 2009-04-02 07:57:50 UTC
So I take it here that you're running the F11 userspace on a non-F11 kernel?

Comment 2 Sascha Silbe 2009-04-02 09:38:48 UTC
Actually an even older kernel since it's a Xen VM:

Linux version 2.6.21.7-3.fc8xen (mockbuild.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Thu Mar 20 14:58:12 EDT 2008

Comment 3 Joe Orton 2009-04-02 09:50:02 UTC
Yeah, that'll fail.  Not sure how much of this kind of thing we intend to support, since it requires lots of workarounds.

Comment 4 Sascha Silbe 2009-04-02 10:02:46 UTC
Thanks for the information! Though I'm puzzled about why a regular user space application like SVN needs a recent kernel, we will intensify our tries to get moved to a machine with a more recent Xen (so we can use later kernels).

Comment 5 Bernie Innocenti 2009-04-06 12:48:14 UTC
(In reply to comment #3)
> Yeah, that'll fail.  Not sure how much of this kind of thing we intend to
> support, since it requires lots of workarounds.  

What's the minimum kernel version that would fix this bug?

We can also easily install a 2.6.25 xen image.

Comment 6 Sascha Silbe 2009-06-04 08:21:51 UTC
Created attachment 346503 [details]
runtime detection of SOCK_CLOEXEC

Recently happened on my DebXO install (Linux 2.6.25) as well, installing a newer version of libneon with this patch fixed it, so it might fix this one as well (the symptoms are the same, but I've not tried it out).

Comment 7 Bug Zapper 2009-06-09 12:33:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Alexandre Oliva 2009-07-01 22:38:35 UTC
I'm running into this as well, in a chroot that I've just upgraded to F-11.  I have very little control over the kernel that runs on the actual root.  Any chance the provided patch could be installed and an update issued to fix this problem?

Comment 9 Fedora Update System 2009-07-10 07:37:54 UTC
neon-0.28.5-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/neon-0.28.5-1.fc11

Comment 10 Joe Orton 2009-07-10 07:39:00 UTC
Please test out this build:

http://koji.fedoraproject.org/koji/buildinfo?buildID=113661

and leave feedback via the Fedora Update System link above.

Comment 11 Joe Orton 2009-07-10 07:41:58 UTC
And thanks for the patch, by the way, Sascha - I used a different fix upstream in the end.

Comment 12 Sascha Silbe 2009-07-10 11:03:42 UTC
With the new version it works like a charm, thanks!
I'm not the author of the patch, though, just took it from the Debian package.
From the header of the patch:

## 01_runtime_detect_sock_cloexec.dpatch by  <root.org.hu>

Might have been written by the Debian maintainer ("Laszlo Boszormenyi (GCS) <gcs>").

Comment 13 Joe Orton 2009-07-10 14:48:36 UTC
Ah, yes, Laszlo had submitted something similar upstream.

Comment 14 Fedora Update System 2009-07-16 07:32:42 UTC
neon-0.28.5-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update neon'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7680

Comment 15 Fedora Update System 2009-08-03 19:26:06 UTC
neon-0.28.5-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.