From owner-freebsd-questions@FreeBSD.ORG Fri Sep 3 10:39:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FD9616A4CE; Fri, 3 Sep 2004 10:39:20 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9AF443D5D; Fri, 3 Sep 2004 10:39:18 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i83Ad3T9031299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Sep 2004 11:39:03 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i83Ad3vg031294; Fri, 3 Sep 2004 11:39:03 +0100 (BST) (envelope-from matthew) Date: Fri, 3 Sep 2004 11:39:03 +0100 From: Matthew Seaman To: Joshua Tinnin Message-ID: <20040903103903.GA64311@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Joshua Tinnin , FreeBSD Questions , knu@FreeBSD.org References: <89ceee704090210493f05add6@mail.gmail.com> <200409022322.26375.steve@howes-macnaghten.com> <89ceee704090216024af4da42@mail.gmail.com> <200409030205.40246.krinklyfig@spymac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <200409030205.40246.krinklyfig@spymac.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 03 Sep 2004 11:39:03 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Questions cc: knu@freebsd.org Subject: Re: portupgrade, portsdb -U failing, ruby dumping core X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2004 10:39:20 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [ Maintainer of lang/ruby18 amd sysutils/portupgrade CC'd ] On Fri, Sep 03, 2004 at 02:05:40AM -0700, Joshua Tinnin wrote: > On Thursday 02 September 2004 04:02 pm, Dan Finn =20 > wrote: > > On Thu, 2 Sep 2004 23:22:26 +0100, Steve Hodgson > > wrote: > > > On Thursday 02 September 2004 19:34, Dan Finn wrote: > > > > [ root @ stewie : /usr/ports/sysutils/portupgrade] : portupgrade > > > > ruby [Failed `Inappropriate file type or format'] [Updating the > > > > portsdb in /usr/ports ... - 11725 port > > > > entries found > > > > .........1000.........2000.........3000.........4000.........5000 > > > >.........6 > > > > 000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1. > > > >8/portsdb.r b:587: [BUG] Bus Error > > > > ruby 1.8.1 (2004-05-02) [i386-freebsd5] > > > > > > I have just had the same thing happen to me, and I'm unable to fix > > > it by using pkgdb or portsdb. I just portupgraded kde3 using the > > > instructions in /usr/ports/UPDATING and also updated the nvidia > > > drivers. I'm running FreeBSD 5.2.1-p9. > > > > > > ---> Checking the package registry database > > > Stale dependency: gnome2-2.6.2 -> nvidia-driver-1.0.6113 > > > (x11/nvidia-driver): [Failed `Inappropriate file type or format'] > > > [Updating the portsdb in /usr/ports ... - 11726 > > > port entries found > > > .........1000.........2000.........3000.........4000.........5000.. > > >.......6000.........7000.........8000..../usr/local/lib/ruby/site_ru > > >by/1.8/portsdb.rb:587: [BUG] Bus Error > > > ruby 1.8.2 (2004-07-29) [i386-freebsd5] > > > > > > Abort trap (core dumped) > > > > > > Any ideas, or suggestions appreciated. > > > > I ended up having to move /usr/ports out of the way and doing a fresh > > cvsup. I am not sure why but this fixed it. >=20 > I tried this and still got the same error. Mine isn't choking on=20 > nvidia-driver, though. Also tried reinstalling ruby, still the same=20 > error. Ditto: 'portsdb -u' dumps core. On FreeBSD 4.10, and without KDE or the like installed: % uname -a=20 FreeBSD happy-idiot-talk.infracaninophile.co.uk 4.10-STABLE FreeBSD 4.1= 0-STABLE #81: Sat Aug 28 17:10:47 BST 2004 root@happy-idiot-talk.infrac= aninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386 Which suggests it's something in the INDEX file around line 8400-ish that portsdb can't cope with -- and it's a change since about 09:00 BST yesterday, when portsdb worked as intended. I can't see anything obviously wrong in the backtrace I got from the coredump though: #0 0x2819ac0c in kill () from /usr/lib/libc.so.4 No symbol table info available. #1 0x281dda65 in abort () from /usr/lib/libc.so.4 No symbol table info available. #2 0x2808b805 in rb_bug (fmt=3D0x28118f50 "Segmentation fault") at err= or.c:214 buf =3D "/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:587: \000= \000=C3=B1\203\t(=C2=B0=C3=8A\021(+\000\000\000l=C5=A0\a\b8=C2=AB=C2=BF=C2= =BF+\000\000\000\234=C2=AA=C2=BF=C2=BF8=C2=AA=C2=BF=C2=BF\001\000\000\000\0= 04\000\000\000=C3=A4\214C\b\001\000\000\000(=C2=AA=C2=BF=C2=BF\000\000\000\= 0008=C2=AF=C2=BF=C2=BF\001\000\000\000=C3=B4=C2=A9=C2=BF=C2=BF_7\000\000=C2= =B19\000\000=C5=BE_\a\b<=C2=AF=C2=BF=C2=BF\000\000\000\000\f\215C\b\001\000= \000\000\210=C2=AB=C2=BF=C2=BFL\001\000\000L\001\000\000=C3=ACS\a\bL=C2=AF= =C2=BF=C2=BF\000\000\000\000\220=C2=AD=C2=BF=C2=BF\000\000\000\000\000\000\= 000\000=C2=B2t \000\004\000\000\000@=C2=AB=C2=BF=C2=BF\030\226\t("... out =3D (FILE *) 0x281e97f0 len =3D 50 #3 0x280efeca in sigsegv (sig=3D11) at signal.c:446 No locals. #4 0xbfbfffac in ?? () No symbol table info available. #5 0x281d207f in __bt_put () from /usr/lib/libc.so.4 No symbol table info available. #6 0x28214ef6 in bdb1_put () from /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd4/bdb1.so No symbol table info available. #7 0x28214f5d in bdb1_assign () from /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd4/bdb1.so No symbol table info available. #8 0x28098b6d in rb_call0 (klass=3D136611476, recv=3D136550876, id=3D3= 33, oid=3D333,=20 argc=3D2, argv=3D0xbfbfb308, body=3D0x82484b4, nosuper=3D0) at eval= .c:5411 func =3D (VALUE (*)()) 0x28214f2c recv =3D 136550876 len =3D 2 argc =3D 2 argv =3D (VALUE *) 0xbfbfb308 len =3D 2 _frame =3D {self =3D 136550876, argc =3D 2, argv =3D 0xbfbfb308= ,=20 last_func =3D 333, orig_func =3D 333, last_class =3D 136611476, prev = =3D 0xbfbfba0c,=20 tmp =3D 0x0, node =3D 0x8116980, iter =3D 0, flags =3D 0, uniq =3D 21= 27051} _iter =3D {iter =3D 0, prev =3D 0xbfbfb9b0} nosuper =3D 0 b2 =3D (NODE *) 0x281ddcfd result =3D 4 itr =3D 673271596 tick =3D 2126983 #9 0x28099618 in rb_call (klass=3D136611476, recv=3D136550876, mid=3D3= 33, argc=3D2,=20 argv=3D0xbfbfb308, scope=3D0) at eval.c:5757 mid =3D 333 body =3D (NODE *) 0x82484b4 noex =3D 0 id =3D 333 ent =3D (struct cache_entry *) 0x298 #10 0x2809377b in rb_eval (self=3D136603516, n=3D0x81171b4) at eval.c:3= 239 recv =3D 136550876 argc =3D 2 argv =3D (VALUE *) 0xbfbfb308 scope =3D 0 n =3D (NODE *) 0x0 contnode =3D (NODE *) 0x8116840 node =3D (NODE *) 0x8116980 state =3D 0 result =3D 136550996 #11 0x2809300a in rb_eval (self=3D136603516, n=3D0x81164bc) at eval.c:3= 088 resq =3D (NODE *) 0xbfbfc540 _tag =3D {buf =3D {{_jb =3D {671690545, 672254640, -1077955004,= -1077954208,=20 -1077951168, -1077953988, 137302655, 136550736, -1077954572,=20 672140926, 137071872, 16146}}}, frame =3D 0xbfbfba0c, iter =3D = 0xbfbfb9b0,=20 tag =3D 0, retval =3D 4, scope =3D 0x8239cfc, dst =3D 0, prev =3D 0xb= fbfb9b8,=20 blkid =3D 0} e_info =3D 4 rescuing =3D 0 n =3D (NODE *) 0x0 contnode =3D (NODE *) 0x0 node =3D (NODE *) 0x81165ac state =3D 0 result =3D 4 [...etc..] =20 Another datapoint is that this doesn't happen with an INDEX file freshly downloaded via 'make fetchindex'. =20 Hmmm... something to do with XFree86 vs X.Org perhaps? I have X_WINDOW_SYSTEM=3Dxorg in /etc/make.conf Taking that out and rebuilding the index [...] makes no difference: % sudo portsdb -u=20 [Updating the portsdb in /usr/ports ... - 11724 por= t entries found .........1000.........2000.........3000.........4000.......= ..5000.........6000.........7000.........8000..../usr/local/lib/ruby/site_r= uby/1.8/portsdb.rb:587: [BUG] Segmentation fault ruby 1.8.2 (2004-07-29) [i386-freebsd4] =20 Abort (core dumped) Perplexed. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBOEnHiD657aJF7eIRAr49AJ9RRU6KngnYgpEWIpaT/AB+HQ3lLgCfVu7R A/gwmzovPszsVQJfWyzBVJs= =x1LH -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--