From owner-freebsd-stable@freebsd.org Tue Aug 23 17:47:42 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 806EEBC4CC0 for ; Tue, 23 Aug 2016 17:47:42 +0000 (UTC) (envelope-from cowbert@gmail.com) Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 534681187 for ; Tue, 23 Aug 2016 17:47:42 +0000 (UTC) (envelope-from cowbert@gmail.com) Received: by mail-oi0-x234.google.com with SMTP id 4so207166082oih.2 for ; Tue, 23 Aug 2016 10:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:cc; bh=3MEtJrUm5guJyuZoFDE1D/E/QG3i6OhqBnmJr6MSDxs=; b=DKwIY3zgwFpXupLdfLedfKdioCvYFuIjjJkGpeGtQzEInRgvT+MuPF4tVBX3PWg3h7 xdAL6NiXXcWOMF4nzy6gdNcKn037CYBSVNBQaWpNKsa7OtIQLvejgOgfwtaia2BUWlux OjVj7e5dpV1DIEj1JTBCZ3xOLhveHTUgMHQ9j7sW79pg5lb3D8Cn5UFZoow6BmF/I/H7 KjJRyIhpIB9qKdba5t1KEhGilYGr0xj4uiHeUu/hKqMscRG3amGImGZ1J4sULWlLRAA+ fHSoFNyomXIUpKZWInztWdz3ViyemNqhffCic5eeOJgehuRtzfw0dRa5zfjakM/LCxy7 doTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=3MEtJrUm5guJyuZoFDE1D/E/QG3i6OhqBnmJr6MSDxs=; b=Jb2jdWXU6n/3Kkh0zyPTupQykq6WWkpY34TiAzBt6Q0Ue5oGHG5Hq1IQUwCtMoZ373 KUy3JzHU2dhD0ccz9c3ihi//vKZizvUw2qkKWLMHjBuczRjyjfU52K06VkXRj6J85M0s d8uVisC7zv57wREIkobMj4Wn/oy/dG9bMgOCvqwfh23WCpHUrFnbQH01PQb5nUemSTOo 8o4kf3O2cwdX1/Un19RewJ9Jg3YARIhWebLGzDZUOW4kJfGkgq7LLEsKfrGBvFdULgdC oja8fQuwmlZBlUPTPyBGUrWIhn9d4cH0iWc3aY8xSCkLPReVi2B1I+gKWzT/OYbw071K zWqw== X-Gm-Message-State: AEkoouuH5IAQti/OoQgfqk+q3gBg9PDCUg/41vuLsd0473wDxPACNfUQ0jHCuRCBCOEjyCw6ge96cAswjnWBBw== X-Received: by 10.157.27.41 with SMTP id l38mr18626620otl.0.1471974461533; Tue, 23 Aug 2016 10:47:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.49.52 with HTTP; Tue, 23 Aug 2016 10:47:41 -0700 (PDT) From: Peter Lai Date: Tue, 23 Aug 2016 13:47:41 -0400 Message-ID: Subject: Re: upgrading from 10.0 to 10.3 problem To: freebsd-stable@freebsd.org Cc: sem@semmy.ru Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 17:47:42 -0000 > Hello. I tried to upgrade from 10.0-RELEASE: # freebsd-update -r 10.3-RELEASE upgrade > ... > # freebsd-update install > ... > # reboot > ... > # freebsd-update install > Installing updates...Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) Now I have: > # freebsd-version -ku > 10.3-RELEASE-p4 > 10.0-RELEASE It's not looking good. How to fix? PS. In /var/log/messages I see "(gunzip), uid 0: exited on signal 11" > And yes: > # gunzip > Segmentation fault (core dumped) Hi Sergey: I ran into this problem the week before you did: https://lists.freebsd.org/pipermail/freebsd-stable/2016-July/085115.html Because just about all of the binaries were trashed (including /lib, /[s]bin, /usr/lib, /usr/[s]bin files were truncated to 0), I had to /rescue/nc > base.txz (where I fetched base.txz from the ftp site in the 10.3-RELEASE distribution), then /rescue/tar -zxvf base.txz into a directory, then tar | tar each of /lib and so on to get my binaries back (apparently /rescue does not have a statically compiled cpio). After sending the above to the mailing list I went ahead and replaced the kernel that the broken freebsd-update install installed with the one from 10.3-RELEASE (from the distribution base.txz:boot/kernel), which made the system entirely binary 10.3-RELEASE then I was able to freebsd-update to FreeBSD-10.3-RELEASE-p6 with no problems. Note that the initial freebsd-update from 10.0 also severely trashed my /etc, I had to restore master.passwd and friends! (many of /etc files were also truncated to 0), even though the merge process seemed to complete ok before the broken freebsd-update install.