From owner-freebsd-current@freebsd.org Wed Apr 20 16:39:33 2016 Return-Path: Delivered-To: freebsd-current@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 53A07B16D4A for ; Wed, 20 Apr 2016 16:39:33 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from shxd.cx (mail.shxd.cx [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 477A81175; Wed, 20 Apr 2016 16:39:33 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from [64.201.244.132] (port=52807 helo=[10.0.0.105]) by shxd.cx with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1asmpM-0002aG-By; Wed, 20 Apr 2016 00:45:36 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Error: stack underflow From: Devin Teske In-Reply-To: Date: Wed, 20 Apr 2016 09:39:27 -0700 Cc: FreeBSD Current , Devin Teske Content-Transfer-Encoding: quoted-printable Message-Id: <82BDB7D2-B803-404B-90C8-88050B41F5B4@freebsd.org> References: To: Andriy Gapon X-Mailer: Apple Mail (2.2104) Sender: devin@shxd.cx X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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, 20 Apr 2016 16:39:33 -0000 > On Apr 20, 2016, at 1:24 AM, Andriy Gapon wrote: >=20 >=20 > I see this message "Error: stack underflow" when a loader menu is = presented. > It seems that it comes from ficl. This is on a quite recent (< 2 = weeks) head. > How can I debug this problem? >=20 > I have one local modification to forth files, but I'm not sure if the = problem is > caused by it or by something in my boot configuration files. >=20 > diff --git a/sys/boot/forth/menu-commands.4th = b/sys/boot/forth/menu-commands.4th > index 9adf30a46b661..813cbf12e9655 100644 > --- a/sys/boot/forth/menu-commands.4th > +++ b/sys/boot/forth/menu-commands.4th > @@ -243,6 +243,21 @@ also menu-namespace also menu-command-helpers > TRUE \ loop menu again > ; >=20 > +: toggle_gui ( N -- N TRUE ) > + toggle_menuitem > + menu-redraw > + > + \ Now we're going to make the change effective > + > + dup toggle_stateN @ 0=3D if > + s" inhibit_gui" unsetenv > + else > + s" set inhibit_gui=3D1" evaluate > + then > + > + TRUE \ loop menu again > +; > + > \ > \ Escape to Prompt > \ > diff --git a/sys/boot/forth/menu.rc b/sys/boot/forth/menu.rc > index 3c7de7138b8ad..ddeccc9679fea 100644 > --- a/sys/boot/forth/menu.rc > +++ b/sys/boot/forth/menu.rc > @@ -126,6 +126,13 @@ set optionsmenu_keycode[6]=3D118 > set optionsansi_caption[6]=3D"^[1mV^[merbose..... ^[34;1mOff^[m" > set optionstoggled_ansi[6]=3D"^[1mV^[merbose..... ^[32;7mOn^[m" >=20 > +set optionsmenu_caption[7]=3D"Inhibit [G]UI. off" > +set optionstoggled_text[7]=3D"Inhibit [G]UI. On" > +set optionsmenu_command[7]=3D"toggle_gui" > +set optionsmenu_keycode[7]=3D103 > +set optionsansi_caption[7]=3D"Inhibit =1B[1mG=1B[37mUI. = =1B[34;1mOff=1B[37m" > +set optionstoggled_ansi[7]=3D"Inhibit =1B[1mG=1B[37mUI. = =1B[32;7mOn=1B[0;37m" > + > \ > \ BOOT ENVIRONMENT MENU > \ >=20 I'll look into this. Thanks for bring it to our/my attention. --=20 Cheers, Devin=