From owner-freebsd-current@FreeBSD.ORG Wed Jul 25 21:56:12 2007 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A61116A417 for ; Wed, 25 Jul 2007 21:56:12 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.freebsd.org (Postfix) with ESMTP id D3F1913C45B for ; Wed, 25 Jul 2007 21:56:11 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.61] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id l6PLu7pf068180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Jul 2007 14:56:10 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <46A7C6E8.8040200@FreeBSD.org> Date: Wed, 25 Jul 2007 14:55:52 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Marcel Moolenaar References: <46A7A5FB.90203@sippysoft.com> <5865861B-E29E-451C-B07B-B52028549F50@mac.com> In-Reply-To: <5865861B-E29E-451C-B07B-B52028549F50@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "current@freebsd.org" , peter@FreeBSD.org Subject: Re: installworld breaks my FreeBSD/powerpc system!!! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2007 21:56:12 -0000 Marcel Moolenaar wrote: > > On Jul 25, 2007, at 12:35 PM, Maxim Sobolev wrote: > >> It seems that installworld from yesterday sources severely corrupted >> my 7-CURRENT FreeBSD/ppc installation. :( >> >> I believe this is caused by the recent libc changes that go together >> with dynamic linker changes, but since dynamic linker is installed >> *after* libc in installworld process, one who does source upgrade ends >> up with broken system containing old dynamic linker, while new libc >> after installworld explodes! :((( > > I think it's a mmap(2) problem, rather than a libc/ld-elf problem. I > suspect > that the peter@'s change to not align arguments is causing the problem. > It's > difficult to analyze because I don't trust the output of truss and ktrace > anymore in this case: the file offset argument is garbage according to > those > tools. The file offset is garbage on all platforms, not just PowerPC :-/ > > Other signs of mmap problems: dhclient complaining about a corrupted lease > file and rpc.statd complaining about an invalid database file... > > Unfortunately, I don't have the time to look into it right now. Yes, looks like you are right. I've booted into single-user and copied both libc.so.7 and ld-elf.so.1 by hand and everything works now. I think that the problem happens when install(8) invokes strip(1) to get rid of debug symbols and strip(1) uses mmap(), which messes up the library. This has to be resolved ASAP. -Maxim