From owner-freebsd-stable@freebsd.org Wed Jan 17 19:42:30 2018 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 D627DEB3443 for ; Wed, 17 Jan 2018 19:42:30 +0000 (UTC) (envelope-from firmdog@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 5D9387EDFF for ; Wed, 17 Jan 2018 19:42:30 +0000 (UTC) (envelope-from firmdog@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id i11so17992785wmf.4 for ; Wed, 17 Jan 2018 11:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eNyIJO62nTHNbyPPf+KJ3Sbqz/6Es+etlfSxJ4JrpAc=; b=u1VtZPXixPfOgP/e7SUJe54FUjKFuCfEWdBaMYLe3CTA+MbJakcA+MQxHONcpeG+ne LuMu1ul7NNHxvM9Iw3fNCc0NoYU4HJKRpdMqwAFmGoQpzasKTxy6Ap4FYn/+sEL5623A clC8Owq0c0F/hsKuRmCDn3yGX4m+Q6QpGXqrh6zVVD4oA1O3rXJ6dxdztOk1ZYGTA2/d bxp/kdIngDtqPcH/wcemCCBT5l89PX9cFWgGl1haflXlUMI5eUQOvlE53tia/jhy0PnQ hCuri5SBkRldRKRG8e1bxDwP91qJxU6kakey+rV/1B6tySM36b1dFGsaRT/f3gyVZ82i CwHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eNyIJO62nTHNbyPPf+KJ3Sbqz/6Es+etlfSxJ4JrpAc=; b=MA5LDEaOD7urOKeqcJI/5tlSqDczrpRVFR9Boy1jCLTygkEIdTFN7BsKWHOHZerPJa /q1rOlJYJTcfRMlOHnaA4ZBSXYpeiiQDGk2XqrozeWWS7ruh0Hx/+3GjO7+28Bwy5sra iqu8cFcz2cD+G1PBEUy5k980C5Pufb6/G9q1uUc7i1OapSmSs6d9Cef0LcFeU9i8vr/r H5Czp/9a46iGRTo4yxnn+vWfr87d8V7abK0zjvjldL7YwY6x/V8GJCZ3lBuifbiaDVrn jagTlK70WfaPXLl+7ln+YkaeO8PS525wb68AVtfFIuOFdyQsNrOA2Z+gUWUTGThjfr/N LXSQ== X-Gm-Message-State: AKwxytdTRmP+fw3M2rwdMRoz6oHJJv8CsEEDdqtydyBUKyMtVw9emWIF E6aAXhawap3bJ1EWlq4nVtg64hQ4RLOyh3CtKqU= X-Google-Smtp-Source: ACJfBou/J9TQBTQc8gIYyqagG4xADfrSpLDDQQ4TLMLvtmfUy1sTrvZhM/vdLEBs7O22NZ3mI328LfXByZ4iWQ7GzD0= X-Received: by 10.28.54.221 with SMTP id y90mr2918606wmh.156.1516218148592; Wed, 17 Jan 2018 11:42:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.154.102 with HTTP; Wed, 17 Jan 2018 11:42:28 -0800 (PST) In-Reply-To: References: From: Andy Firman Date: Wed, 17 Jan 2018 14:42:28 -0500 Message-ID: Subject: Re: upgrading from 10.0 to 10.3 problem To: Peter Lai Cc: freebsd-stable@freebsd.org, sem@semmy.ru Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 19:42:30 -0000 On Tue, Aug 23, 2016 at 1:47 PM, Peter Lai wrote: > > 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. > _______________________________________________ > > I just experienced the same thing. Sent this to freebsd-questions last night, no response yet, so thought I would also try here on this thread. Here is my disaster from last night: *Following this guide:* https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html # uname -a FreeBSD 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9 #0: Mon Sep 15 14:35:52 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 *Run this command:* # freebsd-update -r 10.4-RELEASE upgrade # freebsd-update install reboot *Success...system came back up as 10.4* # uname -a FreeBSD 10.4-RELEASE-p3 FreeBSD 10.4-RELEASE-p3 #0: Tue Nov 14 09:43:55 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 *Run this command one more time per the guide above:* # 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) *System is totally down and had to recover from snaphot* *What on earth happened here?*