Date: Wed, 20 Apr 2016 09:39:27 -0700 From: Devin Teske <dteske@freebsd.org> To: Andriy Gapon <avg@FreeBSD.org> Cc: FreeBSD Current <freebsd-current@FreeBSD.org>, Devin Teske <dteske@FreeBSD.org> Subject: Re: Error: stack underflow Message-ID: <82BDB7D2-B803-404B-90C8-88050B41F5B4@freebsd.org> In-Reply-To: <d3611bf4-53a1-6f1f-c941-f786d8d6b7ee@FreeBSD.org> References: <d3611bf4-53a1-6f1f-c941-f786d8d6b7ee@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Apr 20, 2016, at 1:24 AM, Andriy Gapon <avg@FreeBSD.org> 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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82BDB7D2-B803-404B-90C8-88050B41F5B4>