Date: Tue, 18 Nov 2008 05:18:37 +0100 From: Mel <fbsd.questions@rachie.is-a-geek.net> To: freebsd-questions@freebsd.org Cc: Tsu-Fan Cheng <tfcheng@gmail.com> Subject: Re: pkg_delete core dump Message-ID: <200811180518.38658.fbsd.questions@rachie.is-a-geek.net> In-Reply-To: <f84c38580811171315g47e0f311x1c44d7ff1635165c@mail.gmail.com> References: <f84c38580811171115g2a5914cdr915ff3b16802e12c@mail.gmail.com> <200811172036.11401.fbsd.questions@rachie.is-a-geek.net> <f84c38580811171315g47e0f311x1c44d7ff1635165c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
--
Mel
Problem with today's modular software: they start with the modules
and never get to the software part.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811180518.38658.fbsd.questions>
