Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2006 15:23:40 GMT
From:      Jim Zelenka<jimz@telerama.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/105377: portmanager crashes if /usr/local/share/portmanager/configure.db doesn't exist
Message-ID:  <200611101523.kAAFNea5094172@www.freebsd.org>
Resent-Message-ID: <200611101530.kAAFUJ0O086893@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105377
>Category:       ports
>Synopsis:       portmanager crashes if /usr/local/share/portmanager/configure.db doesn't exist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 10 15:30:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jim Zelenka
>Release:        6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD hand 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Thu Nov  2 14:28:03 EST 2006     root@:/usr/RELENG_6/obj/usr/RELENG_6/src/sys/HAND  i386

>Description:
I upgraded the ports collection with cvsup (tag=.) Next, I ran "portsdb -uU" and then "pkgdb -uF". Finally, I rebuilt and reinstalled portmanager (0.4.1_6). Now, when I run it, it dies like this:

hand# whoami
root
hand# ls /usr20/ports/dist/portmanager-0.4.1.tar.gz 
/usr20/ports/dist/portmanager-0.4.1.tar.gz
hand# rm /usr0/cores/*
remove /usr0/cores/portmanager.3212.core? y
remove /usr0/cores/portmanager.3230.core? y
remove /usr0/cores/portmanager.3750.core? y
remove /usr0/cores/portmanager.3768.core? y
hand# whoami
root
hand# portmanager devel/glib20
rCreateInstalledDbVerifyContentsFile 0.4.1_6 error: "@comment ORIGIN:" not found in /var/db/pkg/panasas_bsd-6.0/+CONTENTS
                panasas_bsd-6.0 installation is corrupt!
                recomend running "pkg_delete -f panasas_bsd-6.0" then manually reinstalling this port
rCreateInstalledDbVerifyContentsFile 0.4.1_6 error: "@comment ORIGIN:" not found in /var/db/pkg/panasas_bsd-6.0/+CONTENTS
                panasas_bsd-6.0 installation is corrupt!
                recomend running "pkg_delete -f panasas_bsd-6.0" then manually reinstalling this port
------------------------------------------------------------------------
portmanager 0.4.1_6: Collecting installed port data 
------------------------------------------------------------------------
MGdbRead error, lstat of /usr/local/share/portmanager/configure.db failed
lstat: No such file or directory
Assertion failed: (0), function MGdbRead, file MGdbRead.c, line 66.
Abort (core dumped)
hand# ls -a /usr/local/share/portmanager
.                               bsd.port.mk-BACKUP              ignore.db                       ports_available.db              ports_dependencies.db
.                              commandLine.db                  patch-bsd.port.mk-0.3.6         ports_available_dependencies.db ports_installed.db
3strikes.db                     help.txt                        pkgtools-to-portmanager.rb      ports_cache.db                  ports_old.db

Obviously, dumping core is unfriendly. Less obvious is how I get a valid configure.db. I tried touching the file to create a zero-length file, and that eliminated the lstat complaint, but portmgr still dumped core.

>How-To-Repeat:
run portmanager when configure.db doesn't exist
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611101523.kAAFNea5094172>