From owner-freebsd-questions@FreeBSD.ORG Sun Feb 22 22:00:52 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 308FCF96 for ; Sun, 22 Feb 2015 22:00:52 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id 03558BB1 for ; Sun, 22 Feb 2015 22:00:51 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 173E9CB8CA0; Sun, 22 Feb 2015 16:00:51 -0600 (CST) Received: from 76.193.19.10 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sun, 22 Feb 2015 16:00:50 -0600 (CST) Message-ID: <11645.76.193.19.10.1424642451.squirrel@cosmo.uchicago.edu> In-Reply-To: <20150222205918.GA68253@home.parts-unknown.org> References: <20150221224006.GA5501@home.parts-unknown.org> <09da5ec0816e098badc49432c802dc18@sdf.org> <390c4c0547fc27e91d28872d29aa2e04@sdf.org> <20150222091956.fd1ec914.freebsd@edvax.de> <20150222104425.GA44573@home.parts-unknown.org> <9134.76.193.19.10.1424620110.squirrel@cosmo.uchicago.edu> <590FB195-C4E9-4D22-8900-ABE784CE9896@parts-unknown.org> <20150222205918.GA68253@home.parts-unknown.org> Date: Sun, 22 Feb 2015 16:00:50 -0600 (CST) Subject: Re: why would I get a segmentation fault on one system but not the other? From: "Valeri Galtsev" To: "David Benfell" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: cpet , Polytropon , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2015 22:00:52 -0000 On Sun, February 22, 2015 2:59 pm, David Benfell wrote: > On Sun, Feb 22, 2015 at 12:22:59PM -0800, David Benfell wrote: >> >> Sorry for the top post; I'm on my phone now. A photo of the memtest from >> just before I shut it down is here: >> https://parts-unknown.org/wp/wp-content/uploads/2015/02/0222150941.jpg >> Hopefully it will answer some of the questions you pose. > > Oh, so I *did* manage to get K-9 configured not to top-post. ;-) > >> >> The segfaults occur at start-up and consistently thereafter but only, so >> far as I know, with apache and php-fpm. I have not seen segfaults >> anywhere else on this system. It is plausible that apache is simply >> reporting segfaults from php. This is why I think something nefarious is >> happening within the ports. > > I am back on site now and, with some help from grep, established that > the *only* Segmentation faults logged are associated with httpd or > apache24. Is it really plausible that this can be hardware? > One more thing. If you can not run it under debugger for whatever reason, you can take a look which libraries the main binary, and php module (and other things that are used by crashing apache) are linked to (ldd is your friend ;-). And which libraries these libraries are linked to. And so on until you have exhaustive list. Check they all exist, and have correct checksums if they came from central package repository. Or rebuild all of them (reinstall ports they come from). Rsyncing port tree directly from working machine may make sense here. The same about main system (and someone already mentioned it and told to match svn version If you built ans installed main system by compiling source, you may rsync source directly from good machine, make sure you move off the way source on bad machine before doing that). Lot of manual work. Restoring "working box" from backup onto the failing box sounds like much less work to me - almost a "shortcut"... Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++