| On Mon, 2005-10-24 at 12:29 +0300, Jari Aalto wrote: | > | Hrm, it looks like all the relevant bits are on the other side of this clone | > | call. I don't remember if -ff traverses clone calls, but could you try with | > | strace -ff -efile instead? | | It's still not tracing child processes. strace -f dovecot should do | that.. But there's an alternative way to strace only the login process | by changing config file: | | login_chroot = no | ... | login_executable = /usr/bin/strace -o /tmp/strace.log /usr/lib/dovecot/imap-login | | (and check that the imap-login path is right, I don't know where Debian | package puts it)
It's in /usr/lib/dovecot/imap-login, with those changes in /etc/dovecot/dovecot.conf I ran /et/init.d./dovecot start. Results attached. Jari
execve("/usr/lib/dovecot/imap-login", ["/usr/lib/dovecot/imap-login"], [/* 16 vars */]) = 0 uname({sys="Linux", node="bongo", ...}) = 0 brk(0) = 0x8061000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f11000 open("/etc/ld.so.cache", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=30204, ...}) = 0 old_mmap(NULL, 30204, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f09000 close(4) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/cmov/libssl.so.0.9.8", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\256\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=253856, ...}) = 0 old_mmap(NULL, 256804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7eca000 old_mmap(0xb7f05000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3a000) = 0xb7f05000 close(4) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/cmov/libcrypto.so.0.9.8", O_RDONLY) = 4 read(4, "[EMAIL PROTECTED]"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=1269560, ...}) = 0 old_mmap(NULL, 1286052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7d90000 old_mmap(0xb7eb2000, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x121000) = 0xb7eb2000 old_mmap(0xb7ec7000, 12196, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ec7000 close(4) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libc.so.6", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300O\1"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=1265136, ...}) = 0 old_mmap(NULL, 1275196, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7c58000 old_mmap(0xb7d89000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x130000) = 0xb7d89000 old_mmap(0xb7d8d000, 9532, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d8d000 close(4) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/libdl.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\f\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0 old_mmap(NULL, 12404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7c54000 old_mmap(0xb7c56000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1000) = 0xb7c56000 close(4) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c53000 mprotect(0xb7d89000, 4096, PROT_READ) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c53b60, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xb7f09000, 30204) = 0 time(NULL) = 1130185736 brk(0) = 0x8061000 brk(0x808a000) = 0x808a000 uname({sys="Linux", node="bongo", ...}) = 0 getpid() = 15928 open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 4 read(4, "\233\323\345\217", 4) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 open("/etc/ld.so.cache", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=30204, ...}) = 0 old_mmap(NULL, 30204, PROT_READ, MAP_PRIVATE, 5, 0) = 0xb7f3d000 close(5) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/tls/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/tls/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls", {st_mode=S_IFDIR|0755, st_size=3072, ...}) = 0 open("/lib/i686/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/i686/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/lib/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/tls/i686/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/i686/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/i686/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/i686", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/i686/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/usr/lib/cmov/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/cmov", 0xbfd592d0) = -1 ENOENT (No such file or directory) open("/usr/lib/libz.so", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=40960, ...}) = 0 munmap(0xb7f3d000, 30204) = 0 open("/etc/ssl/certs/dovecot.pem", O_RDONLY|O_LARGEFILE) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=1119, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f10000 read(5, "-----BEGIN CERTIFICATE-----\nMIID"..., 4096) = 1119 close(5) = 0 munmap(0xb7f10000, 4096) = 0 write(2, "\1FCan\'t load certificate file /e"..., 139) = 139 exit_group(89) = ?