Date: Fri, 29 Mar 2002 22:28:37 -0800 (PST) From: Henry Miller <hank@black-hole.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/36525: portupgrade, and pkgdb -F crash Message-ID: <200203300628.g2U6Sb540863@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 36525 >Category: ports >Synopsis: portupgrade, and pkgdb -F crash >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 29 22:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Henry Miller >Release: 4.5 - stable >Organization: >Environment: %uname -a FreeBSD daphne.bogus 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Mar 29 19:55:06 CST 2002 root@daphne.bogus:/usr/src/sys/compile/DAPHNE i386 >Description: I was attempting to upgrade two ports at the same time, and filled my filesystem. From here on, all attempts to run portupgrade crash with an out of memory error. daphne# pkgdb -F [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 150 packages found (-2 +6) (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:375:in `each': tried to allocate too big memory (NoMemoryError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:375:in `select' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:375:in `update_db' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:533:in `open_db' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:682:in `installed_pkgs' from /usr/local/sbin/pkgdb:233:in `fix_db' from /usr/local/sbin/pkgdb:182:in `main' from /usr/local/sbin/pkgdb:61:in `initialize' from /usr/local/sbin/pkgdb:61:in `new' from /usr/local/sbin/pkgdb:61:in `main' from /usr/local/sbin/pkgdb:890 daphne# /usr/local/sbin/portupgrade autoconf [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 147 packages found (-2 +3) (...)[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 147 pa ckages found (-2 +3) (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:210:in `ori gin': Cannot allocate memory: Cannot update the pkgdb!] (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkginfo.rb:174:in `origin' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:797:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:791:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:791:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:813:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:817:in `sort_build!' from /usr/local/sbin/portupgrade:609:in `main' from /usr/local/sbin/portupgrade:196:in `initialize' from /usr/local/sbin/portupgrade:196:in `new' from /usr/local/sbin/portupgrade:19 This is repeatable, and the system is still in that state. My guess is that there is a data corruption issue on my machine someplace, but I don't know which files they could be. I'm not sure where to look from here to find. The ports I was upgradeing when this happened are pcre, and libaudiofile. I deinstalled those ports, and built/installed them manually, and the problem persists. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203300628.g2U6Sb540863>