6 messages in net.sourceforge.lists.courier-maildrop[maildropl] maildrop seg fault 0x0b
FromSent OnAttachments
Manoj SonawaneJul 11, 2005 7:33 am 
Sam VarshavchikJul 11, 2005 7:20 pm 
Manoj SonawaneJul 12, 2005 2:17 am 
Manoj SonawaneJul 12, 2005 4:34 am 
Manoj SonawaneJul 12, 2005 8:06 am 
Manoj SonawaneJul 13, 2005 2:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] maildrop seg fault 0x0bActions...
From:Manoj Sonawane (mson@officetiger.com)
Date:Jul 11, 2005 7:33:44 am
List:net.sourceforge.lists.courier-maildrop

Hello All,

I have maildrop 1.6.3 built using gcc 3.3.5-1 on ubutu as follows

./configure --disable-userdb --enable-maildirquota --enable-maildropldap --with-ldapconfig=/etc/maildrop/maildropldap.config --with-etcdir=/etc/maildrop --prefix=/usr/local/maildrop --exec-prefix=/usr/local/maildrop --enable-maildrop-uid=5000 --enable-trusted-users='root mail vmail postfix daemon postmaster' --enable-restrict-trusted=1 --enable-maildrop-gid=5000

It looks at ldap now but always gets seg fault. Maildir exists and has proper permission for user vmail.

Its called from postfix as

maildrop unix - n n - - pipe

flags=Ru user=vmail argv=/usr/local/maildrop/bin/maildrop -d ${recipient}

How can I add more logging options to maildrop to help me resolve this issue?? (I would like to know from maildrop which attribute it got from ldap) ldap debug shows maildrop queried on mail attribute but without any specific result attribute.

Any help will be welcomed.

If I run this command using mail user I get “Cannot set my user or group id” and running it through other users (root/ vmail) gives seg fault)

May be a gcc bug ?

strace on maildrop shoes following

select(1024, [3], [], NULL, {4, 998000}) = 1 (in [3], left {4, 996000})

read(3, "0\f\2\1\2e\7\n", 8) = 8

read(3, "\1\0\4\0\4\0", 6) = 6

time(NULL) = 1121091852

write(3, "0\5\2\1\3B\0", 7) = 7

shutdown(3, 2 /* send and receive */) = 0

close(3) = 0

setgroups32(1, [5000]) = -1 EPERM (Operation not permitted)

setgid32(5000) = 0

setuid32(5000) = 0

getuid32() = 5000

--- SIGSEGV (Segmentation fault) @ 0 (0) ---

alarm(0) = 0

write(2, "maildrop: signal 0x", 19maildrop: signal 0x) = 19

write(2, "0", 10) = 1

write(2, "B", 1B) = 1

write(2, "\n", 1

) = 1

exit_group(75) = ?