[Pkg-vsquare-devel] Bug#484265: vde_plug does not connect to socket

martin f krafft madduck at debian.org
Tue Jun 3 10:19:18 UTC 2008


Package: vde2
Version: 2.2.0-pre2-1
Severity: normal
File: /usr/bin/vde_plug

There's some weird stuff happening in vde_plug: I have a vde_switch
started with ctlsock directory in ./vde0, and now I am trying to
plug into it:

+lapse:~|master|.tmp/testnet.k13727% ls vde0                              #1839
ctl  vde_switch.pid
+lapse:~|master|.tmp/testnet.k13727% strace -f vde_plug vde0/ctl          #1840
[...]
connect(5, {sa_family=AF_FILE, path="vde0/ctl/ctl"}, 110) = -1 ENOTDIR (Not a directory)
[...]
send(5, "\316\372\355\376\3\0\0\0\0\0\0\0\1\0vde0/ctl.14357-000"..., 183, 0) = -1 ENOTCONN (Transport endpoint is not connected)

Note how the manpage says control socket path, and yet the connect()
seems to take it as directory. And even though the
vde0/ctl.14357-000 control socket gets created (it now exists and is
never removed), the send() fails.

Full vde_plug.strace attached.

Let's see what happens if we pass the directory instead of the
socket path.

+lapse:~|master|.tmp/testnet.k13727% strace -f vde_plug vde0              #1841
[...]
connect(5, {sa_family=AF_FILE, path="vde0/ctl"}, 110) = 0
bind(6, {sa_family=AF_FILE, path="vde0.14393-00000"}, 110) = 0
[...]
chmod("", 0700)                         = -1 ENOENT (No such file or directory)

There's stuff broken here too, the chmod doesn't get a proper path.
Also, if I pass ./vde0/, the connect() uses ./vde0//ctl and the bind
then tries ./vde0/.14393-00000.

Full vde_plug.strace2 attached.

This all makes me think that there's a need for some time with the
code...

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1+scoflowctrl.1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vde2 depends on:
ii  adduser                     3.107        add and remove users and groups
ii  libc6                       2.7-11       GNU C Library: Shared libraries
ii  libpcap0.8                  0.9.8-3      system interface for user-level pa
ii  libvdemgmt0                 2.2.0-pre2-1 Virtual Distributed Ethernet - Man
ii  libvdeplug2                 2.2.0-pre2-1 Virtual Distributed Ethernet - Plu

Versions of packages vde2 recommends:
ii  daemon                        0.6.3-1    turns other processes into daemons

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vde_plug.strace.bz2
Type: application/octet-stream
Size: 1907 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vsquare-devel/attachments/20080603/8faeffab/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vde_plug.strace2.bz2
Type: application/octet-stream
Size: 1963 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vsquare-devel/attachments/20080603/8faeffab/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-vsquare-devel/attachments/20080603/8faeffab/attachment.pgp 


More information about the Pkg-vsquare-devel mailing list