From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 19:36:15 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 655AF106567D for ; Mon, 17 Nov 2008 19:36:15 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 32E458FC18 for ; Mon, 17 Nov 2008 19:36:14 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id F0BD4AFC1C6; Mon, 17 Nov 2008 10:36:13 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 17 Nov 2008 20:36:09 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811172036.11401.fbsd.questions@rachie.is-a-geek.net> Cc: Tsu-Fan Cheng Subject: Re: pkg_delete 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: Mon, 17 Nov 2008 19:36:15 -0000 On Monday 17 November 2008 20:15:46 Tsu-Fan Cheng wrote: > hi, > during recompiling some ports, I found my pkg_delete core dump on > some ports (not all of them), when it dumped, it has something like > this (print/acroread8): > > # gdb pkg_delete pkg_delete.core > 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 `pkg_delete'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libmd.so.4...(no debugging symbols found)...done. > Loaded symbols for /lib/libmd.so.4 > Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. > Loaded symbols for /lib/libc.so.7 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols > found)...done. Loaded symbols for /libexec/ld-elf.so.1 > #0 0x2815dae6 in strcmp () from /lib/libc.so.7 > (gdb) bt full > #0 0x2815dae6 in strcmp () from /lib/libc.so.7 > No symbol table info available. > #1 0x0804b50c in ?? () > No symbol table info available. You will have to recompile pkg_delete with debug symbols to get any idea. To do so, do the following (providing you have sources in /usr/src): cd /usr/src/usr.sbin/pkg_install make clean make obj make DEBUG_FLAGS='-ggdb' depend make DEBUG_FLAGS='-ggdb' all install If this gives errors, it's best to do a full buildworld/installworld. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.