[distcc] Re: Re: distmon doesn't monitor?

Mark Morschhäuser mark at tvk.rwth-aachen.de
Tue Jul 27 16:17:13 GMT 2004


Lisa Seelye wrote:

> On Mon, 2004-07-26 at 06:38, Mark Morschhäuser wrote:
>> No way to solve this problem?
> 
> 
> The next step is to strace distccmon-text and see what the error is.
> Make sure that your user can read the .distcc directory as well.
> 

ok, what do I see here...?
Nothing, everything seems to be ok to me: start distccmon, open .distcc/state,
get dir-entries, close dir, write newline, (sleep and do that again) or (exit)

-------------------------------------------------------------------------
moon root # DISTCC_DIR=/var/tmp/portage/.distcc strace distccmon-text
execve("/usr/bin/distccmon-text", ["distccmon-text"], [/* 47 vars */]) = 0
uname({sys="Linux", node="moon", ...})  = 0
brk(0)                                  = 0x8052000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=99766, ...}) = 0
mmap2(NULL, 99766, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 U\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1201416, ...}) = 0
mmap2(NULL, 1132332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40031000
mmap2(0x40140000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10e)
= 0x40140000
mmap2(0x40143000, 10028, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED
MAP_ANONYMOUS, -1, 0) = 0x40143000
close(3)                                = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0x40017840, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
munmap(0x40018000, 99766)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\222g\1-", 4)                  = 4
close(3)                                = 0
brk(0)                                  = 0x8052000
brk(0x8073000)                          = 0x8073000
brk(0)                                  = 0x8073000
mkdir("/var/tmp/portage/.distcc/state", 0777) = -1 EEXIST (File exists)
open("/var/tmp/portage/.distcc/state", O_RDONLY|O_NONBLOCK|O_LARGEFILE
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|S_ISGID|0775, st_size=48, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 2 entries */, 131072)  = 48
getdents64(3, /* 0 entries */, 131072)  = 0
close(3)                                = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
write(1, "\n", 1
)                       = 1
nanosleep({0, 0}, NULL)                 = 0
munmap(0x40018000, 4096)                = 0
exit_group(0)
-------------------------------------------------------------------------

I used it with 10 second-delay too:

nanosleep({10, 0}, NULL)                = 0
open("/var/tmp/portage/.distcc/state", O_RDONLY|O_NONBLOCK|O_LARGEFILE
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|S_ISGID|0775, st_size=48, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 2 entries */, 131072)  = 48
getdents64(3, /* 0 entries */, 131072)  = 0
close(3)                                = 0
write(1, "\n", 1
)                       = 1
nanosleep({10, 0}, NULL)
[...etc...]




More information about the distcc mailing list