From owner-freebsd-questions@FreeBSD.ORG Tue Mar 18 19:53:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F64F1065673 for ; Tue, 18 Mar 2008 19:53:29 +0000 (UTC) (envelope-from chris@chrismaness.com) Received: from nlpi101.prodigy.net (nlpi101.prodigy.net [207.115.36.117]) by mx1.freebsd.org (Postfix) with ESMTP id 96B728FC17 for ; Tue, 18 Mar 2008 19:53:28 +0000 (UTC) (envelope-from chris@chrismaness.com) X-ORBL: [76.238.148.150] Received: from [192.168.1.2] (adsl-76-238-148-150.dsl.irvnca.sbcglobal.net [76.238.148.150]) by nlpi101.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id m2I43BHv017103 for ; Mon, 17 Mar 2008 23:03:11 -0500 Message-ID: <47DF3EFE.1080809@chrismaness.com> Date: Mon, 17 Mar 2008 21:03:10 -0700 From: Chris Maness User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <47D71B04.5000603@chrismaness.com> <47D722B6.5050200@chrismaness.com> In-Reply-To: <47D722B6.5050200@chrismaness.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Apache -- Analyzing core dump? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 19:53:29 -0000 Chris Maness wrote: > Chris Maness wrote: >> I used to analyze core dumps with tnos to debug. It has been a >> coon's age since I've done such. I am having apache crash and core >> dump. There isn't any error info in the log files. >> >> Where is the core dumped to (the main log tells me the core has been >> dumped)? >> >> How do I analyze this dump file to find out what went wrong? >> >> Do I have to compile apache with debug features turned on to do this? >> >> I am referring to my previous thread: >> >> apache+mod_ssl-1.3.41+2.8.31 crashing with mod_php5 >> > I was able to find my old e-mails on debugging tnos. I used gdb. > > Per the gdb man page I was able to figure out how to check the core > file. Here is the output: > > > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and > you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-marcel-freebsd"...(no debugging > symbols found)... > Core was generated by `httpd'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libcrypt.so.4...(no debugging symbols > found)...done. > Loaded symbols for /lib/libcrypt.so.4 > Reading symbols from /usr/local/lib/libmm.so.14...(no debugging > symbols found)...done. > Loaded symbols for /usr/local/lib/libmm.so.14 > Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging > symbols found)...done. > Loaded symbols for /usr/local/lib/libexpat.so.6 > Reading symbols from /lib/libc.so.7...(no debugging symbols > found)...done. > Loaded symbols for /lib/libc.so.7 > Reading symbols from > /usr/local/libexec/apache/mod_mmap_static.so...(no debugging symbols > found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so > Reading symbols from > /usr/local/libexec/apache/mod_vhost_alias.so...(no debugging symbols > found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so > Reading symbols from /usr/local/libexec/apache/mod_env.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_env.so > Reading symbols from /usr/local/libexec/apache/mod_define.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_define.so > Reading symbols from /usr/local/libexec/apache/mod_log_config.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_log_config.so > Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so > Reading symbols from /usr/local/libexec/apache/mod_mime.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_mime.so > Reading symbols from > /usr/local/libexec/apache/mod_negotiation.so...(no debugging symbols > found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so > Reading symbols from /usr/local/libexec/apache/mod_status.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_status.so > Reading symbols from /usr/local/libexec/apache/mod_info.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_info.so > Reading symbols from /usr/local/libexec/apache/mod_include.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_include.so > Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so > Reading symbols from /usr/local/libexec/apache/mod_dir.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_dir.so > Reading symbols from /usr/local/libexec/apache/mod_cgi.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_cgi.so > Reading symbols from /usr/local/libexec/apache/mod_asis.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_asis.so > Reading symbols from /usr/local/libexec/apache/mod_imap.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_imap.so > Reading symbols from /usr/local/libexec/apache/mod_actions.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_actions.so > Reading symbols from /usr/local/libexec/apache/mod_speling.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_speling.so > Reading symbols from /usr/local/libexec/apache/mod_userdir.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_userdir.so > Reading symbols from /usr/local/libexec/apache/mod_alias.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_alias.so > Reading symbols from /usr/local/libexec/apache/mod_rewrite.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_rewrite.so > Reading symbols from /usr/local/libexec/apache/mod_access.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_access.so > Reading symbols from /usr/local/libexec/apache/mod_auth.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_auth.so > Reading symbols from /usr/local/libexec/apache/mod_auth_anon.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_auth_anon.so > Reading symbols from /usr/local/libexec/apache/mod_auth_db.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_auth_db.so > Reading symbols from /usr/local/libexec/apache/mod_digest.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_digest.so > Reading symbols from /usr/local/libexec/apache/libproxy.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/libproxy.so > Reading symbols from /usr/local/libexec/apache/mod_cern_meta.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_cern_meta.so > Reading symbols from /usr/local/libexec/apache/mod_expires.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_expires.so > Reading symbols from /usr/local/libexec/apache/mod_headers.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_headers.so > Reading symbols from /usr/local/libexec/apache/mod_usertrack.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_usertrack.so > Reading symbols from > /usr/local/libexec/apache/mod_log_forensic.so...(no debugging symbols > found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_log_forensic.so > Reading symbols from /usr/local/libexec/apache/mod_unique_id.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_unique_id.so > Reading symbols from /usr/local/libexec/apache/mod_setenvif.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/mod_setenvif.so > Reading symbols from /usr/local/libexec/apache/libssl.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/libssl.so > Reading symbols from /usr/lib/libssl.so.5...(no debugging symbols > found)...done. > Loaded symbols for /usr/lib/libssl.so.5 > Reading symbols from /lib/libcrypto.so.5...(no debugging symbols > found)...done. > Loaded symbols for /lib/libcrypto.so.5 > Reading symbols from /usr/local/libexec/apache/libphp5.so...(no > debugging symbols found)...done. > Loaded symbols for /usr/local/libexec/apache/libphp5.so > Reading symbols from /lib/libm.so.5...(no debugging symbols > found)...done. > Loaded symbols for /lib/libm.so.5 > Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging > symbols found)...done. > Loaded symbols for /usr/local/lib/libxml2.so.5 > Reading symbols from /lib/libz.so.4...(no debugging symbols > found)...done. > Loaded symbols for /lib/libz.so.4 > Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging > symbols found)...done. > Loaded symbols for /usr/local/lib/libiconv.so.3 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols > found)...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x28ccda00 in ?? () > (gdb) quit > > ##################################################################################### > > > Earlier this week I was having problems compiling gtk-2. The macro > was complaining that I did not have ld-elf.so.1. > > The output of the script was: > > iqr.la im-multipress.la > gtk.immodules >> /libexec/ld-elf.so.1: Shared object "libm.so.4" not found, required by >> "libgdk_pixbuf-2.0.so.0" >> gmake[3]: *** [gtk.immodules] Error 1 >> gmake[3]: Leaving directory >> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.12.8/modules/input' >> gmake[2]: *** [all-recursive] Error 1 >> gmake[2]: Leaving directory >> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.12.8/modules' >> gmake[1]: *** [all-recursive] Error 1 >> gmake[1]: Leaving directory >> `/usr/ports/x11-toolkits/gtk20/work/gtk+-2.12.8' gmake: *** [all] >> Error 2 >> ** Command failed [exit code 1]: /usr/bin/script -qa >> /tmp/portupgrade.13565.39 env UPGRADE_TOOL=portupgrade >> UPGRADE_PORT=gtk-2.12.3 UPGRADE_PORT_VER=2.12.3 make BATCH=yes >> ** Fix the problem and try again. >> ** Listing the failed packages (-:ignored / *:skipped / !:failed) >> ! x11-toolkits/gtk20 (gtk-2.12.3) (new compiler error) > > looks like I am missing libm.so.4. If I do a locate libm.so.4 it > turns up nothing. However, my FreeBSD 6.3 box has the library. I > upgraded by compiling with everything set as default and GENERIC. > What happened to libm.so.4? Is it possible that ld-elf.so.1 (the > last library loaded) caused apache to crash because it could not find > a library like when I was trying to compile gtk-2? > > Any suggestions? > I did a fresh install with 7.0 on VMware, and I am not experiencing these problems. Could this mean that my upgrade went awry somehow? I have rebuilt everything pertaining to apache and php5 and it is still crashing. I don't know how to debug this any further. I would like to diagnose so that I can report a glitch in the upgrade process if need be. Thanks, -- Chris Maness (909) 223-9179 http://www.chrismaness.com