From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 12:37:12 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 229791065672 for ; Tue, 18 Nov 2008 12:37:12 +0000 (UTC) (envelope-from tfcheng@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id E90E18FC17 for ; Tue, 18 Nov 2008 12:37:11 +0000 (UTC) (envelope-from tfcheng@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2778355rvf.43 for ; Tue, 18 Nov 2008 04:37:11 -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=k3H6UrueOU0mGorzIDvG08apPELiV7GGiTDsGEmAnOs=; b=BVNo1RvE1L1dfkOimFoT4CqyHOl25YaC70V3C8AXGbUJgBg387bMg0XJsDZJxzCNYz vx962tYIs6QbLR+W68zgzxhqVindTz4GJ5OqBjjUs715Eg7/cp234zPsRrbWxCPKwRGE 1OIDbys4DdORBJMZH9nw95/FSMIjCo++RDlII= 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=HmLpLKav8HVtFG/7VjAa9O16gu2gEunlkZLt9e8Xcv9Dm7/44Bd8uvgdYit96Tc7xR qYxiAqHnsk0myjmXgAM7ulSwc620RUcoqCuiDTIh9JZ6MkRUbaFOGQO6+ci8xG/FnHic fuz0EyD/pTiMLGKr0RBJA/Dbg9ZYjTRCyZHC0= Received: by 10.142.163.13 with SMTP id l13mr2572255wfe.244.1227011831471; Tue, 18 Nov 2008 04:37:11 -0800 (PST) Received: by 10.142.143.20 with HTTP; Tue, 18 Nov 2008 04:37:11 -0800 (PST) Message-ID: Date: Tue, 18 Nov 2008 07:37:11 -0500 From: "Tsu-Fan Cheng" To: Mel In-Reply-To: <200811180651.33337.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: <200811180518.38658.fbsd.questions@rachie.is-a-geek.net> <200811180651.33337.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: Tue, 18 Nov 2008 12:37:12 -0000 Hi Mel, the link to download the +CONTENTS file is here http://www.megaupload.com/?d=YDKFRCZG, and you know what? I don't have +REQUIRED_BY file. thanks!! there is a empty entry in the +CONTENTS file: [snip] @pkgdep linux-scim-libs-1.4.4 @comment DEPORIGIN:textproc/linux-scim-libs @pkgdep @comment $FreeBSD: ports/print/acroread8/pkg-plist,v 1.2 2008/04/13 18:36:28 hrs Exp $ [snip] TFC On Tue, Nov 18, 2008 at 12:51 AM, Mel wrote: > On Tuesday 18 November 2008 05:18:37 Mel wrote: >> On Monday 17 November 2008 22:15:32 Tsu-Fan Cheng wrote: >> > 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 >> >> There's the culprit. strcmp called on a null pointer. The reason is that >> the +CONTENTS file contains corrupted data. Most likely a @pkgdep line >> without a package name. Could you show the output of: >> grep @pkgdep /var/db/pkg/acroread8-8.1.2_2/+CONTENTS > > Actually, considering it comes from undepend, could you also include: > cat /var/db/pkg/acroread8-8.1.2_2/+REQUIRED_BY > > -- > Mel > > Problem with today's modular software: they start with the modules > and never get to the software part. >