From owner-freebsd-stable@FreeBSD.ORG Mon Oct 29 17:06:47 2007 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 267DE16A421 for ; Mon, 29 Oct 2007 17:06:47 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 6E51913C48E for ; Mon, 29 Oct 2007 17:06:31 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 29 Oct 2007 08:06:02 -0000 Received: from vpn-cl-165-209.rz.uni-karlsruhe.de (EHLO mobileKamikaze.norad) [141.3.165.209] by mail.gmx.net (mp004) with SMTP; 29 Oct 2007 09:06:02 +0100 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX19VhUIj0e5VBUFT55p1rKiw9ulRdgKnHWkIQD2vG3 QhZLTsTCFHd7nV Message-ID: <47259469.5040501@gmx.de> Date: Mon, 29 Oct 2007 09:06:01 +0100 From: "[LoN]Kamikaze" User-Agent: Thunderbird 2.0.0.6 (X11/20071015) MIME-Version: 1.0 To: Roland Smith References: <20071028184559.7154d472.ubm@u-boot-man.de> <20071028233149.2fa94250.ubm@u-boot-man.de> <20071028224322.GC39510@slackbox.xs4all.nl> In-Reply-To: <20071028224322.GC39510@slackbox.xs4all.nl> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: stable@freebsd.org Subject: Re: portupgrade error with 7.0-BETA1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 17:06:47 -0000 Roland Smith wrote: > On Sun, Oct 28, 2007 at 11:31:49PM +0100, Marc UBM Bocklet wrote: >>> and then tried using portupgrade, which promptly fails with: >>> >>> Fatal error 'Cannot allocate red zone for initial thread' at line 382 >>> in file /usr/src/lib/libthr/thread/thr_init.c (errno = 12) >>> Illegal instruction: 4 (core dumped) >>> >>> (the red zone error ist repeated about 20 times). > [snip] >> This one bit me as well. It's an obsolete library (libthr) in the >> binary, Recompile ruby18 and problem will go away. You'll find other >> programs will do this too, but a lot of them disapear after doing a >> portupgrade. > > After updated to a new major version of FreeBSD (6->7, not 6.2->6.3) is > to make a list of all ports, remove them all with pkg_delete and install > them from scratch. > > That is the only sure way to prevent programs linking to older libraries. > > And while your at it, it would be a good idea to clean out the old cruft > from (/usr)/lib as well. > > Roland The new sysutils/bsdadminscripts release has a script called pkg_libchk that tells you all the packages which need to be rebuild/relinked. http://www.freebsd.org/cgi/query-pr.cgi?pr=117533 I wrote it just for the occasion to update from RELENG_6 to RELENG_7.