From owner-freebsd-current@freebsd.org Wed Apr 20 08:25:27 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 C8902B15EC9 for ; Wed, 20 Apr 2016 08:25:27 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id F0E7E1EED; Wed, 20 Apr 2016 08:25:26 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA00753; Wed, 20 Apr 2016 11:25:18 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1asnRm-0004wH-Ia; Wed, 20 Apr 2016 11:25:18 +0300 To: FreeBSD Current From: Andriy Gapon Subject: Error: stack underflow Message-ID: Date: Wed, 20 Apr 2016 11:24:22 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 08:25:27 -0000 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? 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. 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 ; +: toggle_gui ( N -- N TRUE ) + toggle_menuitem + menu-redraw + + \ Now we're going to make the change effective + + dup toggle_stateN @ 0= if + s" inhibit_gui" unsetenv + else + s" set inhibit_gui=1" 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]=118 set optionsansi_caption[6]="^[1mV^[merbose..... ^[34;1mOff^[m" set optionstoggled_ansi[6]="^[1mV^[merbose..... ^[32;7mOn^[m" +set optionsmenu_caption[7]="Inhibit [G]UI. off" +set optionstoggled_text[7]="Inhibit [G]UI. On" +set optionsmenu_command[7]="toggle_gui" +set optionsmenu_keycode[7]=103 +set optionsansi_caption[7]="Inhibit GUI. Off" +set optionstoggled_ansi[7]="Inhibit GUI. On" + \ \ BOOT ENVIRONMENT MENU \ -- Andriy Gapon