From owner-freebsd-current Fri Feb 21 15:59:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3177837B401 for ; Fri, 21 Feb 2003 15:59:45 -0800 (PST) Received: from dilbert.robbins.dropbear.id.au (008.b.012.mel.iprimus.net.au [210.50.249.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A1943FA3 for ; Fri, 21 Feb 2003 15:59:42 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (no5n6iof0sa77n3i@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h1LNxd2c068416; Sat, 22 Feb 2003 10:59:39 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h1LNxcKM068415; Sat, 22 Feb 2003 10:59:38 +1100 (EST) (envelope-from tim) Date: Sat, 22 Feb 2003 10:59:35 +1100 From: Tim Robbins To: Shizuka Kudo Cc: freebsd-current@FreeBSD.org Subject: Re: today's 5-current hang hard when building apache2 port Message-ID: <20030222105935.A68271@dilbert.robbins.dropbear.id.au> References: <20030221204152.9440.qmail@web11408.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030221204152.9440.qmail@web11408.mail.yahoo.com>; from shizukakudo_99@yahoo.com on Fri, Feb 21, 2003 at 12:41:52PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 21, 2003 at 12:41:52PM -0800, Shizuka Kudo wrote: > I cvsup today and build/install world & kernel. The machine was working fine until I tried to > build apache2 port. When configuring apache2, my PC hanged at the following line and need hard > reset (i.e. cannot break into debugger and need pressing reset button). > > checking if TCP_NODELAY setting is inherited from listening sockets... > > I traced the conftest program under gdb and received the following error on the > "rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa)" call. > > Program received signal SIGSEGV, Segmentation fault. > 0x280fdaf0 in _longjmp () from /usr/lib/libc.so.5 > > Anyone has the same problem or idea what's happening? > > Attached are the confdefs.h and conftest.c extracted from srclib/apr/configure that gave the above > problem. > > P.S. When building the apache2 port, I had CPUTYPE=p3 in make.conf and used "make configure WITH_THREADS=yes" I've had this same problem. Here's the test program I was using, extracted from the latest Apache 2 source, with puts() calls added: http://people.freebsd.org/~tjr/nodel.c . It seems to be locking up after the getsockopt() call has returned, presumably when crt0 calls exit(). Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message