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: misc/2927: sysinstall get SIGSEGV, kind of bug of dialog_menu(3)? Message-ID: <199703100405.UAA03791@freefall.freebsd.org> Resent-Message-ID: <199703100410.UAA03926@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 9 20:10:02 PST 1997 >Last-Modified: >Originator: NOKUBI Hirotaka >Organization: NEC Microcomputer Technology Ltd. >Release: 2.2-970225-GAMMA >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. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703100405.UAA03791>