Mark Constable writes:
On Wednesday 30 May 2007 22:17:22 Sam Varshavchik wrote:First, set the number of daemon processes to 1, then strace the child authdaemond process.Thanks Sam. Apologies to everyone for the large strace dump but I still can't pick why it's failing (probably in the last 20-30 lines of interest). If I change authmodulelist="authpipe" back to authmodulelist="authmysql" then everything works so I can assume that authdaemond is otherwise working correctly. This is a little suspect... [pid 17744] open("/etc/authlib/authProg", O_RDONLY|O_LARGEFILE) = 6 [pid 17744] ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe2d4c8) = -1 ENOTTY (Inappropriate ioctl for device)
This is normal.
# strace -f -p 17607
Process 17607 attached - interrupt to quit
select(6, [3 5], NULL, NULL, {65, 712000}) = 1 (in [5], left {62, 252000})
accept(5, {sa_family=AF_FILE, [EMAIL PROTECTED], [2]) = 4
fcntl64(4, F_SETFL, O_RDONLY) = 0
select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4], left {10, 0})
read(4, "AUTH [EMAIL PROTECTED]"..., 8192) = 48
write(2, "DEBUG: received auth request, se"..., 59) = 59
write(2, "DEBUG: authpipe: trying this mod"..., 36) = 36
write(2, "DEBUG: closing pipe\n", 20) = 20
write(2, "DEBUG: forking new one\n", 23) = 23
pipe([6, 7]) = 0
pipe([8, 9]) = 0
write(2, "DEBUG: attempting to fork\n", 26) = 26
clone(Process 17744 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7e50708) = 17744
[pid 17607] write(2, "DEBUG: Pipe auth. started Pipe-p"..., 51) = 51
# some lines removed
Well, that's where the interesting stuff probably was. What the child process does is not important. The important stuff is what the parent process does.
Remove the -f flag from strace, let it trace just the parent process.
pgpkabuphgwxD.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
