Gentoo Archives: gentoo-user-ru

From: "Попов Владимир Ильич" <vip@×××××××××.ru>
To: gentoo-user-ru@l.g.o
Subject: Re: [gentoo-user-ru] проблема с revdep-rebuild
Date: Thu, 19 Feb 2009 10:40:14
Message-Id: 200902191640.22407.vip@bti.secna.ru
In Reply to: Re: [gentoo-user-ru] проблема с revdep-rebuild by Mike Kazantsev
1 > Можно использовать параметр -f strace'а, в данном случае наверно на
2 > родителе этих процессов, раз они постоянно отваливаются, а родитель их
3 > fork'ает.
4 ага помогло!
5
6 # pstree -p 8329
7 revdep-rebuild(8329)───revdep-rebuild(8789)─┬─ldd(8790)─┬─cat(8794)
8 │ └─ldd(8793)───getstack2(8795)
9 └─sort(8791)
10
11
12
13 [pid 8794] execve("/bin/cat", ["cat"], [/* 34 vars */]) = 0
14 [pid 8794] brk(0) = 0x1650c5a8
15 [pid 8794] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
16 [pid 8794] open("/etc/ld.so.cache", O_RDONLY) = 3
17 [pid 8794] fstat64(3, {st_mode=S_IFREG|0644, st_size=20022, ...}) = 0
18 [pid 8794] mmap2(NULL, 20022, PROT_READ, MAP_PRIVATE, 3, 0) = 0x49dc2000
19 [pid 8794] close(3) = 0
20 [pid 8794] open("/lib/libc.so.6", O_RDONLY) = 3
21 [pid 8794] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`h\1\0004\0\0\0\234"..., 512) = 512
22 [pid 8794] fstat64(3, {st_mode=S_IFREG|0755, st_size=1298668, ...}) = 0
23 [pid 8794] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x49dc1000
24 [pid 8794] mmap2(NULL, 1309072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x49c81000
25 [pid 8794] mprotect(0x49dba000, 4096, PROT_NONE) = 0
26 [pid 8794] mmap2(0x49dbb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x139) = 0x49dbb000
27 [pid 8794] mmap2(0x49dbe000, 10640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x49dbe000
28 [pid 8794] close(3) = 0
29 [pid 8794] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x49c80000
30 [pid 8794] set_thread_area({entry_number:-1 -> 6, base_addr:0x49c806c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
31 [pid 8794] open("/dev/urandom", O_RDONLY) = 3
32 [pid 8794] read(3, "\2311\200)"..., 4) = 4
33 [pid 8794] close(3) = 0
34 [pid 8794] mprotect(0x49dbb000, 8192, PROT_READ) = 0
35 [pid 8794] mprotect(0x16509000, 4096, PROT_READ) = 0
36 [pid 8794] mprotect(0x49de4000, 4096, PROT_READ) = 0
37 [pid 8794] munmap(0x49dc2000, 20022) = 0
38 [pid 8794] brk(0) = 0x1650c5a8
39 [pid 8794] brk(0x1652d5a8) = 0x1652d5a8
40 [pid 8794] brk(0x1652e000) = 0x1652e000
41 [pid 8794] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
42 [pid 8794] fstat64(3, {st_mode=S_IFREG|0644, st_size=3255808, ...}) = 0
43 [pid 8794] mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x49a80000
44 [pid 8794] mmap2(NULL, 958464, PROT_READ, MAP_PRIVATE, 3, 0x17d) = 0x49996000
45 [pid 8794] close(3) = 0
46 [pid 8794] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
47 [pid 8794] fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
48 [pid 8794] read(0, <unfinished ...>
49 [pid 8795] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
50 [pid 8795] rt_sigaction(SIGTSTP, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
51 [pid 8795] rt_sigaction(SIGTTIN, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
52 [pid 8795] rt_sigaction(SIGTTOU, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
53 [pid 8795] rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x12cde1f1, [], 0}, 8) = 0
54 [pid 8795] rt_sigaction(SIGQUIT, {SIG_DFL, [], 0}, {SIG_DFL, [], 0}, 8) = 0
55 [pid 8795] rt_sigaction(SIGCHLD, {SIG_DFL, [], 0}, {0x12cc7a4a, [], 0}, 8) = 0
56 [pid 8795] execve("/usr/lib/paxtest/getstack2", ["/usr/lib/paxtest/getstack2"], [/* 39 vars */]) = 0
57 [pid 8793] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
58 [pid 8793] rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
59 [pid 8793] rt_sigaction(SIGINT, {0x12cc5ee0, [], 0}, {0x12cde1f1, [], 0}, 8) = 0
60 [pid 8793] waitpid(-1, Process 8793 suspended
61
62
63 >
64 > А в /var/cache/revdep-rebuild/3_errors.rr пусто?
65 > Насколько показывает lsof, getstack2 его открывает на запись.
66 тут оказалось самое интересное:
67
68 ldd: warning: you do not have execution permission for `/lib/libgcc_s.so.1'
69 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_cracklib.so.pl'
70 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_deny.so.pl'
71 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_env.so.pl'
72 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_filter.so.pl'
73 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_group.so.pl'
74 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_listfile.so.pl'
75 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_mail.so.pl'
76 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_motd.so.pl'
77 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_nologin.so.pl'
78 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_permit.so.pl'
79 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_pwdb.so.pl'
80 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_rhosts_auth.so.pl'
81 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_rootok.so.pl'
82 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_securetty.so.pl'
83 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_shells.so.pl'
84 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_stack.so.pl'
85 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_tally.so.pl'
86 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_time.so.pl'
87 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_unix.so.pl'
88 ldd: warning: you do not have execution permission for `/usr/libexec/webmin/pam/pam_wheel.so.pl'
89 lddlibc4: cannot read header from `/usr/libexec/webmin/qmailadmin/config.info.nl'
90 lddlibc4: cannot read header from `/usr/libexec/webmin/stunnel/config.info.ms'
91 ldd: warning: you do not have execution permission for `/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libgcc_s.so.1'
92 ldd: warning: you do not have execution permission for `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libgcc_s.so.1'

Replies

Subject Author
Re: [gentoo-user-ru] проблема с revdep-rebuild Mike Kazantsev <mike_kazantsev@×××××××.net>