From owner-freebsd-apache@FreeBSD.ORG Thu Jun 12 08:27:04 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C98F3106567F for ; Thu, 12 Jun 2008 08:27:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from EXHUB015-3.exch015.msoutlookonline.net (exhub015-3.exch015.msoutlookonline.net [207.5.72.95]) by mx1.freebsd.org (Postfix) with ESMTP id B2E9F8FC1D for ; Thu, 12 Jun 2008 08:27:04 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from smgellar.p6m7g8.net (70.88.236.22) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.1.278.0; Thu, 12 Jun 2008 01:27:03 -0700 Message-ID: <4850DDD5.7090209@p6m7g8.com> Date: Thu, 12 Jun 2008 04:27:01 -0400 From: "Philip M. Gollucci" Organization: RideCharge Inc User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Daniel O'Connor References: <200806121348.18205.doconnor@gsoft.com.au> In-Reply-To: <200806121348.18205.doconnor@gsoft.com.au> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org Subject: Re: Apache w/ PHP crashes after upgrading to 7.0 X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2008 08:27:04 -0000 Daniel O'Connor wrote: > Hi, > I recently upgraded from FreeBSD 6.3 to 7.0 and now I am finding that it > crashes on start unless I disable both pgsql.so and mhash.so. > > The stack trace is.. > #0 0x28f04d40 in ?? () > #1 0x281c6f2e in _pthread_main_np () from /lib/libc.so.7 > #2 0x2819fa0c in puts () from /lib/libc.so.7 > #3 0x281a0177 in gethostbyname () from /lib/libc.so.7 > #4 0x08069a12 in ap_get_local_host () > #5 0x08068b9c in ap_fini_vhost_config () > #6 0x0805639c in ap_read_config () > #7 0x0805f133 in standalone_main () > #8 0x08060c1f in main () That stack trace is bogus looks like memory/stack got corrupted.... gethostbyname does not call puts() 8-current code: src/lib/libc/net/gethostnameadr.c: struct hostent * gethostbyname(const char *name) { struct hostdata *hd; struct hostent *rval; int ret_h_errno; if ((hd = __hostdata_init()) == NULL) return (NULL); if (gethostbyname_r(name, &hd->host, hd->data, sizeof(hd->data), &rval, &ret_h_errno) != 0) return (NULL); return (rval); } Rather than gdb binary binary.core trying doing $ gdb /usr/local/sbin/httpd http://httpd.apache.org/dev/debugging.html#gdb see the url for the rest.... -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.