From nobody  Sun Mar  9 20:05:56 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id UAA03791;
          Sun, 9 Mar 1997 20:05:56 -0800 (PST)
Message-Id: <199703100405.UAA03791@freefall.freebsd.org>
Date: Sun, 9 Mar 1997 20:05:56 -0800 (PST)
From: h-nokubi@nmit.mt.nec.co.jp
To: freebsd-gnats-submit@freebsd.org
Subject: sysinstall get SIGSEGV, kind of bug of dialog_menu(3)?
X-Send-Pr-Version: www-1.0

>Number:         2927
>Category:       misc
>Synopsis:       sysinstall get SIGSEGV, kind of bug of dialog_menu(3)?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar  9 20:10:02 PST 1997
>Closed-Date:    Mon Mar 10 02:34:19 PST 1997
>Last-Modified:  Mon Mar 10 02:34:32 PST 1997
>Originator:     NOKUBI Hirotaka
>Release:        2.2-970225-GAMMA
>Organization:
NEC Microcomputer Technology Ltd.
>Environment:
sorry, I'm using other BSD box (2.2-961014-SNAP)
it's /stand/sysinstall does not have this probrem...
>Description:
sysinstall get SIGSEGV, kind of bug of dialog_menu(3)?
>How-To-Repeat:
Invoke /stand/sysinstall, select ``Custom'' => ``Distributions'' and
check something (ex. Minimal), then ``Cancel''.

Select ``Extract'', sysinstall requests setting install media. So, select
``ftp'' => ``URL''. When dialog contains ``ftp://'' is appeared, pressing ESC
causes SIGSEGV.

>Fix:
At the first `if' statement in distExtractAll(), mediaVerify() should return 0
in the above situation. But, it returns something non-zero value and mediaDevice
is NULL, then SIGSEGV occurs.

One reason I found is that dialog_menu() drops return value from callback function.
So, mediaSetFTP() returns DITEM_FAILURE when ESC is pressed, but dialog_menu() ignores it
and returns DITEM_SUCCESS. 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Mar 10 02:34:19 PST 1997 
State-Changed-Why:  
Already fixed, thanks! 
>Unformatted:
