From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 21:15:34 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 B08F01065686 for ; Mon, 17 Nov 2008 21:15:34 +0000 (UTC) (envelope-from tfcheng@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 5F6748FC19 for ; Mon, 17 Nov 2008 21:15:34 +0000 (UTC) (envelope-from tfcheng@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1099983yxb.13 for ; Mon, 17 Nov 2008 13:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3bkKG0F3ELMbPyShwfE6TPYzwvezBZCNkozYmClGzeI=; b=tNTFXa2dV4oHB9pva7qoWSxPBcEGpw2sLkPh/dHAdx/IX8zbm5D7kXBPS4KaPA6jOq dH7pbbHKRqNZLMOaNqZWJMBub31NyHYXvplJBZ7asBVobe+/82p7/AmhWQ0xyLmW1kVf ltZsWngbWh5gFbKn3OJVRqdC3YZA9gCzZfqks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bg7EUkR4Qh5BqkVLNJVYe1BOfWmLdrXDbX9mnPzNz0Hp4qXu3U2gveuTDJ1rrnbpEQ WKApjczoJJnQHAhhH9bgA907qthGKnRAjANM7g1/ImKWqMXt5ncuopueQFJa+guiNLkJ X+Nf0op8vY1qMNe7a+RjYhXsVMSkpq65YhOK8= Received: by 10.142.84.3 with SMTP id h3mr2177811wfb.149.1226956533012; Mon, 17 Nov 2008 13:15:33 -0800 (PST) Received: by 10.142.143.20 with HTTP; Mon, 17 Nov 2008 13:15:32 -0800 (PST) Message-ID: Date: Mon, 17 Nov 2008 16:15:32 -0500 From: "Tsu-Fan Cheng" To: Mel In-Reply-To: <200811172036.11401.fbsd.questions@rachie.is-a-geek.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811172036.11401.fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org 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 21:15:34 -0000 Hi Mel, thank you for your help, now I recompile pkg_install and run pkg_delete again, under print/acroread8 it still coredump. here is the result: # 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"... Core was generated by `pkg_delete'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libmd.so.4...done. Loaded symbols for /lib/libmd.so.4 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x2815dae6 in strcmp () from /lib/libc.so.7 (gdb) bt #0 0x2815dae6 in strcmp () from /lib/libc.so.7 #1 0x0804b50c in isinstalledpkg (name=0x0) at /usr/src/usr.sbin/pkg_install/lib/match.c:374 #2 0x0804adc5 in requiredby (pkgname=0x0, list=0xbfbfe1a8, strict=0, filter=0) at /usr/src/usr.sbin/pkg_install/lib/deps.c:202 #3 0x08049c14 in undepend (p=0x0, pkgname=0x810b180 "acroread8-8.1.2_2") at /usr/src/usr.sbin/pkg_install/delete/perform.c:385 #4 0x0804a769 in pkg_do (pkg=0x810b180 "acroread8-8.1.2_2") at /usr/src/usr.sbin/pkg_install/delete/perform.c:286 #5 0x0804a981 in pkg_perform (pkgs=0x810c060) at /usr/src/usr.sbin/pkg_install/delete/perform.c:112 #6 0x08049b2a in real_main (argc=3, argv=0xbfbfeb60) at /usr/src/usr.sbin/pkg_install/delete/main.c:163 #7 0x0804ab58 in main (argc=3, argv=0xbfbfeb60) at /usr/src/usr.sbin/pkg_install/lib/pkgwrap.c:88 (gdb) bt full #0 0x2815dae6 in strcmp () from /lib/libc.so.7 No symbol table info available. #1 0x0804b50c in isinstalledpkg (name=0x0) at /usr/src/usr.sbin/pkg_install/lib/match.c:374 result = Variable "result" is not available. (gdb) up #1 0x0804b50c in isinstalledpkg (name=0x0) at /usr/src/usr.sbin/pkg_install/lib/match.c:374 374 if (strcmp(memo->iip_name, name) == 0) (gdb) should I do a full buildworld/installworld? TFC On Mon, Nov 17, 2008 at 2:36 PM, Mel wrote: > 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. >