monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Monotone serve - no listen port opened?


From: J Decker
Subject: Re: [Monotone-devel] Monotone serve - no listen port opened?
Date: Tue, 2 Jun 2009 17:30:43 -0700

uhmm... how do I track what code is to blame for this ?


read(5, 
"\3276\211\241\353o\336\362\255\327\333\360\314\341\372\376\t1\5\364V\374\35U7\340\316$)\221\231\263R"...,
96) = 96
open("/proc", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
fstat(6, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
getdents(6, /* 33 entries */, 1024)     = 1016
lstat("/proc/mdstat", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/mdstat", O_RDONLY|O_NOCTTY) = 7
read(7, "Personalities : \nunused devices: "..., 4096) = 40
close(7)                                = 0
lstat("/proc/asound", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/asound", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7
fstat(7, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
lstat("/proc/partitions", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/partitions", O_RDONLY|O_NOCTTY) = 8
read(8, "major minor  #blocks  name\n\n   8 "..., 4096) = 177
close(8)                                = 0
lstat("/proc/diskstats", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/diskstats", O_RDONLY|O_NOCTTY) = 8
read(8, "   8       0 sda 247148 22306 106"..., 4096) = 396
close(8)                                = 0
lstat("/proc/crypto", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/crypto", O_RDONLY|O_NOCTTY) = 8
read(8, "name         : stdrng\ndriver     "..., 4096) = 359
close(8)                                = 0
lstat("/proc/key-users", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/key-users", O_RDONLY|O_NOCTTY) = 8
read(8, "    0:     3 2/2 0/200 0/20000\n"..., 4096) = 31
close(8)                                = 0
lstat("/proc/keys", {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
open("/proc/keys", O_RDONLY|O_NOCTTY)   = 8
read(8, ""..., 4096)                    = 0
close(8)                                = 0
lstat("/proc/kpageflags", {st_mode=S_IFREG|0400, st_size=0, ...}) = 0
open("/proc/kpageflags", O_RDONLY|O_NOCTTY) = 8
read(8, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
close(8)                                = 0
lstat("/proc/kpagecount", {st_mode=S_IFREG|0400, st_size=0, ...}) = 0
open("/proc/kpagecount", O_RDONLY|O_NOCTTY) = 8
read(8, "\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1"...,
4096) = 4096
close(8)                                = 0
lstat("/proc/kmsg", {st_mode=S_IFREG|0400, st_size=0, ...}) = 0
open("/proc/kmsg", O_RDONLY|O_NOCTTY)   = 8
read(8,  <unfinished ...>
mtn: operation canceled: Interrupt


(proc/kmsg blocks.... )

On Tue, Jun 2, 2009 at 3:54 PM, Zack Weinberg <address@hidden> wrote:
> On Tue, Jun 2, 2009 at 3:24 PM, J Decker <address@hidden> wrote:
>> How can I validate (other than with netstat) that monotone is opening
>> a tcp port?  (I tried adding the --bind 0.0.0.0:4691 and --bind :4691
>> and --bind <specific IP>:4691, and none of them opened a port, as seen
>> in 'netstat -ant' (linux)
>
> Try strace; the last few operations should be something like this
> (beware, the trace may include your pass phrase in cleartext):
>
> $ strace mtn -d monotone.mtn serve
> ...
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 13
> fcntl(13, F_GETFL)                      = 0x2 (flags O_RDWR)
> setsockopt(13, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> bind(13, {sa_family=AF_INET, sin_port=htons(4691),
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 14
> fcntl(14, F_GETFL)                      = 0x2 (flags O_RDWR)
> setsockopt(14, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> setsockopt(14, SOL_IPV6, IPV6_V6ONLY, [1], 4) = 0
> bind(14, {sa_family=AF_INET6, sin6_port=htons(4691),
> inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0,
> sin6_scope_id=0}, 28) = 0
> listen(13, 128)                         = 0
> listen(14, 128)                         = 0
> write(2, "mtn: beginning service on <all i"..., 50) = 50
> mtn: beginning service on <all interfaces> : 4691
> select(15, [13 14], [13 14], [13 14], NULL
>
> and then it should block until a connection is received.
>
> zw
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]