Changes between Initial Version and Version 1 of Ticket #2477


Ignore:
Timestamp:
Nov 12, 2012, 3:42:41 PM (7 years ago)
Author:
jreed
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2477

    • Property Priority changed from medium to very low
    • Property Summary changed from b10-host hangs on some systems to add a timeout to b10-host example
  • Ticket #2477 – Description

    initial v1  
    1 The examples/host/b10-host command hangs when doing a lookup on some systems:
    2 
    3 OpenBSD 5.1 amd64
    4 {{{
    5  18879 b10-host CALL  sigprocmask(SIG_SETMASK,0)
    6  18879 b10-host RET   sigprocmask 4294901503/0xfffefeff
    7  18879 b10-host CALL  poll(0x2026af000,0x1,0)
    8  18879 b10-host RET   poll 0
    9  18879 b10-host CALL  poll(0x2026af000,0x2,0xffffffff)
    10 }}}
    11 
    12 NetBSD 4.0.1_PATCH i386
    13 {{{
    14  28381      1 b10-host CALL  __socket30(2,2,0x11)
    15  28381      1 b10-host RET   __socket30 3
    16  28381      1 b10-host CALL  sendto(3,0x8056000,0x19,0,0x8057020,0x10)
    17  28381      1 b10-host GIO   fd 3 wrote 25 bytes
    18        "\0\0\^A\0\0\^A\0\0\0\0\0\0\^Cisc\^Corg\0\0\^A\0\^A"
    19  28381      1 b10-host RET   sendto 25/0x19
    20  28381      1 b10-host CALL  recvfrom(3,0xbfbfdba4,0x1000,0,0xbfbfeba4,0xbfbfecb0)
    21 }}}
    22 
    23 Solaris 11.0 i86pc
    24 {{{
    25 so_socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, SOV_XPG4_2) = 3
    26 sendto(3, "\0\001\0\001\0\0\0\0\0\0".., 25, 32768, 0x08067D00, 16) = 25
    27 recvfrom(3, 0x08046A98, 4096, 0, 0x08047A98, 0x08047C38) (sleeping...)
    28 }}}
    29 
    30 Solaris 10 sparc
    31 {{{
    32 so_socket(PF_INET, SOCK_DGRAM, IPPROTO_IP, "", SOV_XPG4_2) = 3
    33 sendto(3, "\0\001\0\001\0\0\0\0\0\0".., 25, 32768, 0x00028158, 16) = 25
    34 recvfrom(3, 0xFFBFEB20, 4096, 0, 0xFFBFFB20, 0xFFBFEAE0) (sleeping...)
    35 }}}
    36 
    37 NetBSD 6.0 i386
    38 {{{
    39  13807      1 b10-host CALL  __socket30(2,2,0x11)
    40  13807      1 b10-host RET   __socket30 3
    41  13807      1 b10-host CALL  sendto(3,0xbb415400,0x19,0,0xbb412060,0x10)
    42  13807      1 b10-host MISC  msghdr: [name=0xbb412060, namelen=16, iov=0xda4c3c8c, iovlen=1, control=0x0, controllen=133, flags=0]
    43  13807      1 b10-host MISC  mbsoname: [127.0.0.1]
    44  13807      1 b10-host GIO   fd 3 wrote 25 bytes
    45        "\0\0\^A\0\0\^A\0\0\0\0\0\0\^Cisc\^Corg\0\0\^A\0\^A"
    46  13807      1 b10-host RET   sendto 25/0x19
    47  13807      1 b10-host CALL  recvfrom(3,0xbfbfdaf8,0x1000,0,0xbfbfeaf8,0xbfbfec18)
    48  13807      1 b10-host MISC  msghdr: [name=0x0, namelen=3273279456, iov=0xda4c3c88, iovlen=1, control=0x0, controllen=3226790324, flags=0]
    49 }}}
    50 
    51 Debian GNU/Linux 6.0 i686
    52 {{{
    53 socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3
    54 sendto(3, "\0\0\1\0\0\1\0\0\0\0\0\0\3isc\3org\0\0\1\0\1", 25, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 25
    55 recvfrom(3,
    56 }}}
    57 
    58 Fedora Linux 17 x86_64
    59 {{{
    60 socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3
    61 sendto(3, "\0\0\1\0\0\1\0\0\0\0\0\0\3isc\3org\0\0\1\0\1", 25, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")}, 16) = 25
    62 recvfrom(3,
    63 }}}
    64 
    65 FreeBSD 8.2 amd64
    66 {{{
    67  72045 b10-host RET   sendto 25/0x19
    68  72045 b10-host CALL  recvfrom(0x3,0x7fffffffd520,0x1000,0,0x7fffffffe520,0x7fffffffe74c)
    69 }}}
    70 
    71 It does not hang on the Macmini build system nor my NetBSD 6.0 home system. For now I removed running it from the example step for the automated builds.
    72 
    73 I realize I probably should not do outside networking in a test, but the reference command "host" on these systems works and I also use some networking simply to checkout the code too.
     1Add a timeout to examples/host/b10-host command.