[tproxy] (no subject)
Balazs Scheidler
bazsi at balabit.hu
Thu Aug 21 17:18:21 CEST 2008
the strace does not contain the relevant portion, as squid forks into
the background and your strace command does not follow it.
use strace -f
On Wed, 2008-08-20 at 09:12 +0200, aleksandarn at sbb.rs wrote:
> I'm sending you output of strace and debuging of squid proccess.
>
> [root at wccp bin]# ./RunCache
> Running: squid -sY >> /usr/local/squid/var/squid.out 2>&1
> ^C^[[A^C
> [root at wccp bin]# strace ./RunCache
> execve("./RunCache", ["./RunCache"], [/* 36 vars */]) = 0
> brk(0) = 0x80ff000
> access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=46911, ...}) = 0
> mmap2(NULL, 46911, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f63000
> close(3) = 0
> open("/lib/libtermcap.so.2", 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\320z\4\0054\0\0\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=13084, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb7f62000
> mmap2(0x5047000, 14568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0x5047000
> mmap2(0x504a000, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x504a000
> close(3) = 0
> open("/lib/libdl.so.2", 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\0P\272\257\0004\0\0\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=16428, ...}) = 0
> mmap2(0xafb000, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
> 0) = 0xafb000
> mmap2(0xafd000, 8192, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xafd000
> 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\0000\277\234\0004\0\0\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1597968, ...}) = 0
> mmap2(0x9b6000, 1320356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 3, 0) = 0x9b6000
> mmap2(0xaf3000, 12288, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xaf3000
> mmap2(0xaf6000, 9636, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xaf6000
> close(3) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb7f61000
> set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f616c0,
> limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
> limit_in_pages:1, seg_not_present:0, useable:1}) = 0
> mprotect(0xafd000, 4096, PROT_READ) = 0
> mprotect(0xaf3000, 8192, PROT_READ) = 0
> mprotect(0x9ad000, 4096, PROT_READ) = 0
> munmap(0xb7f63000, 46911) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
> close(3) = 0
> brk(0) = 0x80ff000
> brk(0x8120000) = 0x8120000
> open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=56422096, ...}) = 0
> mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7d61000
> close(3) = 0
> getuid32() = 0
> getgid32() = 0
> geteuid32() = 0
> getegid32() = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> time(NULL) = 1219142549
> open("/proc/meminfo", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb7f6e000
> read(3, "MemTotal: 1017048 kB\nMemFre"..., 1024) = 846
> close(3) = 0
> munmap(0xb7f6e000, 4096) = 0
> rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
> uname({sys="Linux", node="wccp.test.com", ...}) = 0
> stat64("/usr/local/squid/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> getpid() = 12082
> open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=25462, ...}) = 0
> mmap2(NULL, 25462, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f68000
> close(3) = 0
> getppid() = 12081
> getpgrp() = 12081
> rt_sigaction(SIGCHLD, {0x807a9d0, [], 0}, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> open("./RunCache", O_RDONLY|O_LARGEFILE) = 3
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc6c9c8) = -1 ENOTTY
> (Inappropriate ioctl for device)
> _llseek(3, 0, [0], SEEK_CUR) = 0
> read(3, "#!/bin/sh\n#\n# $Id: RunCache.in,"..., 80) = 80
> _llseek(3, 0, [0], SEEK_SET) = 0
> getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
> dup2(3, 255) = 255
> close(3) = 0
> fcntl64(255, F_SETFD, FD_CLOEXEC) = 0
> fcntl64(255, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
> fstat64(255, {st_mode=S_IFREG|0755, st_size=729, ...}) = 0
> _llseek(255, 0, [0], SEEK_CUR) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> read(255, "#!/bin/sh\n#\n# $Id: RunCache.in,"..., 729) = 729
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0xb7f67000
> write(1, "Running: squid -sY >> /usr/loca"..., 59Running: squid -sY >>
> /usr/local/squid/var/squid.out 2>&1
> ) = 59
> pipe([3, 4]) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
> clone(child_stack=0,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0xb7f61708) = 12083
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigaction(SIGCHLD, {0x807a9d0, [], 0}, {0x807a9d0, [], 0}, 8) = 0
> close(4) = 0
> read(3, "Tue Aug 19 12:42:29 CEST 2008\n", 128) = 30
> read(3, "", 128) = 0
> --- SIGCHLD (Child exited) @ 0 (0) ---
> waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 12083
> waitpid(-1, 0xbfc6b188, WNOHANG) = -1 ECHILD (No child processes)
> sigreturn() = ? (mask now [])
> close(3) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGINT, {0x807b580, [], 0}, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigaction(SIGINT, {SIG_DFL}, {0x807b580, [], 0}, 8) = 0
> open("/usr/local/squid/var/squid.out",
> O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3
> fcntl64(1, F_GETFD) = 0
> fcntl64(1, F_DUPFD, 10) = 10
> fcntl64(1, F_GETFD) = 0
> fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
> dup2(3, 1) = 1
> close(3) = 0
> write(1, "Startup: Tue Aug 19 12:42:29 CES"..., 39) = 39
> dup2(10, 1) = 1
> fcntl64(10, F_GETFD) = 0x1 (flags FD_CLOEXEC)
> close(10) = 0
> pipe([3, 4]) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
> clone(child_stack=0,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0xb7f61708) = 12084
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> --- SIGCHLD (Child exited) @ 0 (0) ---
> waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 12084
> waitpid(-1, 0xbfc6b218, WNOHANG) = -1 ECHILD (No child processes)
> sigreturn() = ? (mask now [])
> rt_sigaction(SIGCHLD, {0x807a9d0, [], 0}, {0x807a9d0, [], 0}, 8) = 0
> close(4) = 0
> read(3, "19124229\n", 128) = 9
> read(3, "", 128) = 0
> close(3) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGINT, {0x807b580, [], 0}, {SIG_DFL}, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigaction(SIGINT, {SIG_DFL}, {0x807b580, [], 0}, 8) = 0
> stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> stat64("/usr/local/squid/sbin/squid", {st_mode=S_IFREG|0755,
> st_size=11293398, ...}) = 0
> access("/usr/local/squid/sbin/squid", X_OK) = 0
> access("/usr/local/squid/sbin/squid", R_OK) = 0
> stat64("/usr/local/squid/sbin/squid", {st_mode=S_IFREG|0755,
> st_size=11293398, ...}) = 0
> access("/usr/local/squid/sbin/squid", X_OK) = 0
> access("/usr/local/squid/sbin/squid", R_OK) = 0
> rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
> rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
> clone(child_stack=0,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0xb7f61708) = 12085
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
> rt_sigaction(SIGINT, {0x807b580, [], 0}, {SIG_DFL}, 8) = 0
> waitpid(-1,
>
--
Bazsi
More information about the tproxy
mailing list