On Saturday 26 June 2004 14:35, Samuel Penn wrote:

> First, if I try to start things from the init script, things seem to
> hang when starting courierfilterd:

Misreading the Gentoo init script, it's actually authdaemon that's
hanging. There's a /usr/lib/courier/authlib/authdaemond.plain, which
is hanging from /etc/init.d/courier.

There's also a /usr/lib/courier-imap/authlib/authdaemond.plain which
is successfully started (with 5 children) from /etc/init.d/authdaemond.

Not entirely sure what the difference between the two versions of
authdaemond are (they're different sizes). If I run the problem
causing one with strace, I get the following just before it hangs:


execve("/usr/sbin/courierlogger", ["/usr/sbin/courierlogger", 
"-pid=/var/lib/courier/authdaemon"..., "-start", 
"/usr/lib/courier/authlib/authdae"...], [/* 22 vars */]) = 0
uname({sys="Linux", node="wotan", ...}) = 0
brk(0)                                  = 0x804a000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=15692, ...}) = 0
mmap2(NULL, 15692, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
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\240Y\1"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1182424, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
mmap2(NULL, 1112068, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
mmap2(0x40122000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x109) = 0x40122000
mmap2(0x40125000, 10244, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40125000
close(3)                                = 0
munmap(0x40013000, 15692)               = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\255\225\352\331", 4)          = 4
close(3)                                = 0
socket(PF_UNIX, SOCK_DGRAM, 0)          = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = -1 EPROTOTYPE (Protocol 
wrong type for socket)
close(3)                                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_UNIX, path="/dev/log"}, 16) = 0
close(1)                                = 0
close(2)                                = 0
open("/dev/null", O_WRONLY)             = 1
open("/dev/null", O_WRONLY)             = 2
chdir("/")                              = 0
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40013000
read(0,




-- 
Be seeing you,                          http://www.bifrost.demon.co.uk/
Sam.                                    jabber: [EMAIL PROTECTED]


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to