virt-manager broken by bind(0) in net-next.
On Fri, 30 Jan 2009 23:53:37 +1100
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Evgeniy Polyakov <zbr@ioremap.net> wrote:
> >
> > So it is not explicit bind call, but port autoselection in the
> > connect(). Can you check what errno is returned?
> > Did I understand it right, that connect fails, you try different
> > address, but then suddenly all those sockets become 'alive'?
>
> Yes, I think a good strace vs. a bad strace would be really helpful
> in these cases.
>
> Thanks,
I have the strace but it comes up no different.
What is different is that in the broken case (net-next), I see
IPV6 being used:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 23769 0 ::ffff:127.0.0.1:5900 ::ffff:127.0.0.1:55987
ESTAB 0 0 127.0.0.1:55987 127.0.0.1:5900
and in the working case (2.6.29-rc3), IPV4 is being used
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 127.0.0.1:58894 127.0.0.1:5901
ESTAB 0 0 127.0.0.1:5901 127.0.0.1:58894
Relevant bits of strace in broken case are:
7276 socket(PF_NETLINK, SOCK_RAW, 0) = 21
7276 bind(21, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
7276 getsockname(21, {sa_family=AF_NETLINK, pid=7276, groups=00000000}, [66387309494284]) = 0
7276 sendto(21, "24 26 13353<203I ", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
7276 recvmsg(21, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0 24 2 353<203Il34 2102003761 "..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 168
7276 recvmsg(21, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@ 24 2 353<203Il34
2002003761 "..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 256
7276 recvmsg(21, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"24 3 2 353<203Il34 1 24"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
7276 close(21) = 0
7276 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 21
7276 fcntl(21, F_GETFL) = 0x2 (flags O_RDWR)
7276 fcntl(21, F_SETFL, O_RDWR|O_NONBLOCK) = 0
7276 fstat(21, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
7276 fcntl(21, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
7276 connect(21, {sa_family=AF_INET, sin_port=htons(5900), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 read(5, 0xca5af4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
7276 poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=21, events=POLLOUT, revents=POLLOUT}], 11, 844) = 1
7276 read(18, 0x7fff4fa96a1f, 1) = -1 EAGAIN (Resource temporarily unavailable)
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 connect(21, {sa_family=AF_INET, sin_port=htons(5900), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 read(5, 0xca5af4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
7276 poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}], 10, 0) = 0
7276 read(18, 0x7fff4fa96a1f, 1) = -1 EAGAIN (Resource temporarily unavailable)
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 read(21, "RFB 003.007
", 4096) = 12
7276 write(21, "RFB 003.007 ", 12) = 12
7276 read(21, 0x18c5170, 4096) = -1 EAGAIN (Resource temporarily unavailable)
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 read(5, 0xca5af4, 4096) = -1 EAGAIN (Resource temporarily unavailable)
7276 poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, events=POLLIN}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=18, events=POLLIN}, {fd=21, events=POLLIN, revents=POLLIN}], 11, 842) = 1
7276 read(18, 0x7fff4fa96a1f, 1) = -1 EAGAIN (Resource temporarily unavailable)
7276 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
7276 rt_sigprocmask(SIG_SETMASK, [], [], 8) = 0
7276 read(21, "2221", 4096) = 3
7276 write(21, "22", 1) = 1
7276 brk(0x1c6b000) = 0x1c6b000
7276 access("/dev/random", R_OK) = 0
7276 access("/dev/urandom", R_OK) = 0
7276 open("/dev/urandom", O_RDONLY) = 22
7276 fcntl(22, F_GETFD) = 0
7276 fcntl(22, F_SETFD, FD_CLOEXEC) = 0
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999998})
7276 read(22, "316
4!224227215276224272334,Y2564236245"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "236216s*211347245217254924!242216257t327"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "E20376E322366W10t34227327342175250212235335". .., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "3253253553273563233717256|343752234340323"... , 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "=37122234035421e02715-337e273h207uS 225321"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "C316236301315257{|,217253321 ]W212217H342222"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, ",{201272V246257^ 214374377360357;26226w370"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "3333031363L25243360+21J315227251364y276356".. ., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "335u377235mf34-227221"21y,Y336a*925=H350334"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "U274270373326?Ly232242a367261DA223N273M255".. ., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "221237PJY342260207z360W 274303360q@E8246355"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, ":{17734720246373345M;243:35347j3023172737244" ..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "326317163632735351226o?@c251320323 274301"... , 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "23N257I345224Fi3647M340213321365351253;416".. ., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "p317 344313273215250G0-212}202v(354207 223"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "225211206_222032223523@353203J^324320;r206".. ., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "344251H230#244302x235226315J364207221)215&".. ., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "3qS366343G372 )340313j20`3003476215}35o>6305" ..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "371N9213261230341211m/224h267lj2311"374210"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "^32ccG271mh302324244cu325J324B210245237&377". .., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "N3463324372)2643102723425210POvoA#z234362LI". .., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "362327g330i 10:357g243Y260]346235o337e30"..., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "377L35272WE346256g#367qK255350323P323366350". .., 120) = 120
7276 select(23, [22], NULL, NULL, {3, 0}) = 1 (in [22], left {2, 999999})
7276 read(22, "3731275361302201/234327^m|362/@332356225`8"..., 120) = 120
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
|