From owner-freebsd-stable@FreeBSD.ORG Fri Jul 16 11:04:30 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD34F1065675 for ; Fri, 16 Jul 2010 11:04:30 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 866B88FC08 for ; Fri, 16 Jul 2010 11:04:29 +0000 (UTC) Received: from omta18.westchester.pa.mail.comcast.net ([76.96.62.90]) by qmta01.westchester.pa.mail.comcast.net with comcast id iajo1e0071wpRvQ51b4Wkn; Fri, 16 Jul 2010 11:04:30 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta18.westchester.pa.mail.comcast.net with comcast id ib4U1e00T3LrwQ23eb4V66; Fri, 16 Jul 2010 11:04:30 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 861A49B425; Fri, 16 Jul 2010 04:04:27 -0700 (PDT) Date: Fri, 16 Jul 2010 04:04:27 -0700 From: Jeremy Chadwick To: Reko Turja Message-ID: <20100716110427.GA1939@icarus.home.lan> References: <4C3CC831.7040005@kaarposoft.dk> <20100713210729.GA11943@icarus.home.lan> <0228E401B70A4023A6F86A2ADAE59EF9@rivendell> <008D0251AE4F4A2DBAA1369410565B61@rivendell> <20100715162251.GA73929@icarus.home.lan> <20100716083617.GA97981@icarus.home.lan> <3FE6787E5CAC4C108C031CA6C8044FE4@rivendell> <20100716092512.GA99365@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "Mikhail T." , freebsd-stable@freebsd.org, Henrik /KaarPoSoft Subject: Re: openldap client GSSAPI authentication segfaults in fbsd8stablei386 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2010 11:04:30 -0000 On Fri, Jul 16, 2010 at 12:43:22PM +0300, Reko Turja wrote: > >This doesn't help. The problem is that Cyrus imapd is completely > >freaking out, continually dying and re-forking itself, with my > >kernel > >message buffer filling rapidly + all.log filling. So, there is > >further > >configuration of this daemon that's needed (meaning it does not work > >"straight out of the box"), and I need those configuration details. > > Below is the relevant parts of my config that should get you going: > [...] Thanks. Most of this worked, except the following: > And /usr/local/etc/imapd.conf > [...] > partition-default: /usr/local/imap > [...] > Change to the Cyrus user and use the tool "tools/mkimap" to create > the rest of the directories (subdirectories of the directories you > just created). > su cyrus > tools/mkimap > exit I changed partition-default to /var/spool/imap, which I think is what was needed, otherwise mkimap complained about being unable to create /usr/local/imap. Also, for the su portion, I had to do: # su cyrus % cd /usr/local/cyrus % bin/mkimap Which worked. I hope this was the right thing to do. However, upon startup, I now see the following in all.log: Jul 16 03:56:12 testbox master[1521]: process started Jul 16 03:56:12 testbox master[1522]: about to exec /usr/local/cyrus/bin/ctl_cyrusdb Jul 16 03:56:12 testbox ctl_cyrusdb[1522]: recovering cyrus databases Jul 16 03:56:12 testbox ctl_cyrusdb[1522]: done recovering cyrus databases Jul 16 03:56:12 testbox master[1523]: about to exec /usr/local/cyrus/bin/idled Jul 16 03:56:12 testbox master[1523]: can't exec /usr/local/cyrus/bin/idled for startup: No such file or directory Jul 16 03:56:12 testbox kernel: Jul 16 03:56:12 testbox master[1523]: can't exec /usr/local/cyrus/bin/idled for startup: No such file or directory Jul 16 03:56:12 testbox master[1521]: process 1523 exited, status 71 Jul 16 03:56:12 testbox kernel: Jul 16 03:56:12 testbox master[1521]: process 1523 exited, status 71 Which is true: testbox# find /usr/local -name "idled" -follow -ls testbox# I'm not sure if this feature is needed for reproducing the crash, so I modified cyrus.conf and commented the line out, then restarted imapd, which got me: Jul 16 04:00:22 testbox master[1594]: process started Jul 16 04:00:22 testbox master[1595]: about to exec /usr/local/cyrus/bin/ctl_cyrusdb Jul 16 04:00:22 testbox ctl_cyrusdb[1595]: recovering cyrus databases Jul 16 04:00:22 testbox ctl_cyrusdb[1595]: skiplist: checkpointed /var/imap/mailboxes.db (0 records, 144 bytes) in 0 seconds Jul 16 04:00:22 testbox ctl_cyrusdb[1595]: skiplist: checkpointed /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds Jul 16 04:00:22 testbox ctl_cyrusdb[1595]: done recovering cyrus databases Jul 16 04:00:22 testbox master[1594]: ready for work Jul 16 04:00:22 testbox master[1596]: about to exec /usr/local/cyrus/bin/ctl_cyrusdb Jul 16 04:00:22 testbox master[1597]: about to exec /usr/local/cyrus/bin/notifyd Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: checkpointing cyrus databases Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving database file: /var/imap/annotations.db Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving log file: /var/imap/db/log.0000000001 Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving log file: /var/imap/db/log.0000000001 Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving database file: /var/imap/mailboxes.db Jul 16 04:00:22 testbox notify[1597]: executed Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving log file: /var/imap/db/log.0000000001 Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: archiving log file: /var/imap/db/log.0000000001 Jul 16 04:00:22 testbox ctl_cyrusdb[1596]: done checkpointing cyrus databases Jul 16 04:00:22 testbox master[1594]: process 1596 exited, status 0 testbox# ps -auxw | grep cyrus cyrus 1594 0.0 0.4 22376 3916 ?? Ss 4:00AM 0:00.01 /usr/local/cyrus/bin/master -d cyrus 1597 0.0 0.4 53292 4412 ?? I 4:00AM 0:00.01 notifyd testbox# sockstat -l | grep cyrus cyrus notifyd 1597 4 dgram /var/imap/socket/notify cyrus master 1594 7 tcp4 *:143 *:* cyrus master 1594 10 tcp4 *:4190 *:* cyrus master 1594 13 stream /var/imap/socket/lmtp cyrus master 1594 16 dgram /var/imap/socket/notify Then for the final test: testbox# cyradm cyradm> quit testbox# cyradm localhost Password: Where I hit enter/blank, which got me: Login disabled. cyradm: cannot authenticate to server with as root testbox# And no sign of a crash. So what's next? -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |