From owner-freebsd-current@freebsd.org Tue Mar 27 19:31:37 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3A58F5213F for ; Tue, 27 Mar 2018 19:31:37 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) (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 055487C07E; Tue, 27 Mar 2018 19:31:37 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-lf0-f51.google.com with SMTP id e5-v6so52666lfb.7; Tue, 27 Mar 2018 12:31:36 -0700 (PDT) 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=y5mPy6MqR7ECNjr2rD0DVQP940zQjfxBYpdI+2BmIIE=; b=HQY1q16Dhi1dhvn7jUTmpfGh3MhySWO+in4v1dQXm3qYwKs8hCnlOf7Dw+8t6dCub8 hdOrtO5byg0FZgyVb0uGa2HnZwCfronTaIvWPYQzR4GD2um0g62OXyp3Cp/f/yHuHoSD Y3ovPHM1FZEFlL/EnbqOk3sY1KcBvrQdfdBuYHMsOIyoxIkk+7uNIR2V49a6d27uzd/9 3H0vh7sl9WUlJOaCx2sg+b83ef+cZv+1gaWNOLoYX2QnRSFPpWGewzwTfs8yuDhncJfU YAa5wY9LtuCg/FEEa+BvTMpywj6tLOO3juqPOzmS5SvWPNdmmYxVskoOPv1AEwV4PXAl 0AKg== X-Gm-Message-State: AElRT7HUKF8HOPXG6CPaOBprWavOp5Hfj8ZQ5kF1TK+em3LBdFWAX2mU adWnpqzKX0hTOBuqde7sJJs1i5Z4 X-Google-Smtp-Source: AIpwx48hgu/4PlKkrJdnOM7K/SUNgTtg0YNrUuQtcwuf1pxqiFKl9JYtP2diaz8kkdw6wMrGQQ40YQ== X-Received: by 2002:a19:a387:: with SMTP id m129-v6mr364766lfe.31.1522179095255; Tue, 27 Mar 2018 12:31:35 -0700 (PDT) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com. [209.85.215.54]) by smtp.gmail.com with ESMTPSA id p66-v6sm360942lfp.79.2018.03.27.12.31.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 12:31:35 -0700 (PDT) Received: by mail-lf0-f54.google.com with SMTP id x205-v6so79163lfa.0; Tue, 27 Mar 2018 12:31:35 -0700 (PDT) X-Received: by 10.46.127.30 with SMTP id a30mr390095ljd.93.1522179095009; Tue, 27 Mar 2018 12:31:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.129.90 with HTTP; Tue, 27 Mar 2018 12:31:14 -0700 (PDT) In-Reply-To: <79d2bd72-f8b2-6476-9589-ebad9716698f@freebsd.org> References: <79d2bd72-f8b2-6476-9589-ebad9716698f@freebsd.org> From: Kyle Evans Date: Tue, 27 Mar 2018 14:31:14 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Boot failure: panic: No heap setup To: Stefan Esser Cc: "" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Tue, 27 Mar 2018 19:31:37 -0000 On Tue, Mar 27, 2018 at 11:06 AM, Stefan Esser wrote: > A few weeks ago I tried the LUA boot and found, that my kernel did not start > (i.e. did not print the initial FreeBSD version line), but instead stopped > with: Oy =/ > panic: No heap setup > > I recovered by booting from an alternate boot device and kept my system > running until today, where I decided to give the LUA boot another try. > > The boot failure happened again, with identical message: > > panic: No heap setup Hmm... that's an sbrk panic [1], indicating that setheap hadn't been called. zfsgptboot is zfsboot with gpt bits included, so the relevant setheap call is [2] I believe. It's not immediately clear to me how switching interpreters could actually be breaking it in this way. At what point are you hitting this panic? After menu, before kernel transition? > I tried booting a GENERIC kernel, but only rebuilding the boot loader > (gptzfsloader in my case) without LUA support fixed the issue for me ... > > The system is -CURRENT (built today) on amd64 (not converted to UEFI, yet). [1] https://svnweb.freebsd.org/base/head/stand/libsa/sbrk.c?view=markup#l56 [2] https://svnweb.freebsd.org/base/head/stand/i386/zfsboot/zfsboot.c?view=markup#l688