From owner-freebsd-questions Mon Feb 26 20:45:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sapphire.alisa.org (h2.i-legal.cc [63.228.91.108]) by hub.freebsd.org (Postfix) with ESMTP id 6C3B937B401 for ; Mon, 26 Feb 2001 20:45:46 -0800 (PST) (envelope-from jjr@sapphire.alisa.org) Received: from snow.alisa.org (snow [65.6.105.253]) by sapphire.alisa.org (8.9.3/8.9.3) with SMTP id VAA11144; Mon, 26 Feb 2001 21:45:25 -0700 (MST) (envelope-from jjr@sapphire.alisa.org) From: "John J. Rushford Jr" Reply-To: jjr@sapphire.alisa.org To: Ask Bjoern Hansen , freebsd-questions@FreeBSD.ORG Subject: Re: sendmail hangs Date: Mon, 26 Feb 2001 21:42:17 -0700 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain; charset="US-ASCII" References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01022621452500.00548@snow.alisa.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 26 Feb 2001, Ask Bjoern Hansen wrote: > Hi, > > I'm usually a qmail person, but on one of the boxes I am looking > after we run sendmail. > > After upgrading 4.2-STABLE (from late January to the > latest) sendmail seems to hang for approximately forever before > moving on. > > `truss mailq 2> /tmp/foo` seems to print everything it will put in > the /tmp/foo file but hang for a long time after this. > > ... > ffstat(0,0xbfbfe788) = 0 (0x0) > fstat(1,0xbfbfe788) = 0 (0x0) > fstat(2,0xbfbfe788) = 0 (0x0) > open("/dev/urandom",0,00) = 3 (0x3) > read(0x3,0x28237aa4,0x7c) = 124 (0x7c) > close(3) = 0 (0x0) > getgroups(0x10,0x80b78a0) = 8 (0x8) > getegid() = 0 (0x0) > [EOF] > > any clues or should I get gdb out? > Interesting, I just posted a question about this same problem. However, I only noticed it after adding the following kernel options: options IPSEC options IPSEC_ESP options IPSEC_DEBUG When I boot from a kernel without these options, sendmail no-longer hangs. With these options it hangs and I see the same thing you do with truss. -- John J. Rushford jjr@alisa.org jjr@cs.du.edu http://www.cs.du.edu/~jjr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message