Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102291 - installer 20050810 dialog frontend crashes
Summary: installer 20050810 dialog frontend crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 15:26 UTC by Wernfried Haas (RETIRED)
Modified: 2006-03-24 13:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wernfried Haas (RETIRED) gentoo-dev 2005-08-12 15:26:47 UTC
3 ways to crash the dialog frontend, mainly by giving missing/incorrect input.

boot gentoo-nofb nox nodhcp
net-setup eth0 (192.168.1.156)
start sshd
set root password


log in via ssh
cd /
/opt/installer/misc/getgli
cd /installer/src/fe/dialog/
screen
./gli-dialog.py

real -> standard -> cancel -> no -> wizard mode -> save -> save -> 1 ->
http://192.168.0.75/stage1-x86-2005.1.tar.bz2 -> sync -> ok, ok,
gentoo-sources, genkernel, grub, utc, save (without adding NIC) ->
Traceback (most recent call last):
  File "./gli-dialog.py", line 215, in ?
    gen_install_profile = Setup_InstallProfile(client_profile, install_profile,
local_install, advanced_mode)
  File "./gli-dialog.py", line 44, in __init__
    self.set_networking()
  File "../../GLIGenDialog.py", line 802, in set_networking
    code, gateway_iface = self._d.radiolist(string3, choices=choice_list,
height=20, width=67)
  File "/installer/src/fe/dialog/dialog.py", line 1368, in radiolist
    (code, tag) = self._perform(*(cmd,), **kwargs)
  File "/installer/src/fe/dialog/dialog.py", line 795, in _perform
    (exit_code, output) = self._wait_for_program_termination(child_pid, child_rfd)
  File "/installer/src/fe/dialog/dialog.py", line 740, in
_wait_for_program_termination
    raise DialogError("the dialog-like program exited with code %d (was passed
to it as the DIALOG_ERROR environment variable)" % exit_code)
dialog.DialogError: <DialogError: the dialog-like program exited with code 3
(was passed to it as the DIALOG_ERROR environment variable)>

start again:
real -> standard -> cancel -> no -> wizard mode -> set up / and swap ->
save -> save -> 1 ->
http://192.168.0.75/stage1-x86-2005.1.tar.bz2 -> sync -> ok, ok,
gentoo-sources, genkernel, grub, utc,
add: eth0 -> static, 192.168.1.156 192.168.1.255 255.255.255.0
save ->
  a) not select radio button and OK -->
Traceback (most recent call last):
  File "./gli-dialog.py", line 215, in ?
    gen_install_profile = Setup_InstallProfile(client_profile, install_profile,
local_install, advanced_mode)
  File "./gli-dialog.py", line 44, in __init__
    self.set_networking()
  File "../../GLIGenDialog.py", line 804, in set_networking
    while interfaces[gateway_iface][0] != 'dhcp':
KeyError: ''

  b) check radio button -> save -> set gateway (192.168.1.155)
        add DNS -> OK
save, ok, password (2x)
save & continue -> save xml file: press enter (without typing a file name) ->
Traceback (most recent call last):
  File "./gli-dialog.py", line 215, in ?
    gen_install_profile = Setup_InstallProfile(client_profile, install_profile,
local_install, advanced_mode)
  File "./gli-dialog.py", line 96, in __init__
    self.install_profile_xml_file = self.save_install_profile()
  File "../../GLIGenDialog.py", line 1282, in save_install_profile
    configuration = open(filename ,"w")
IOError: [Errno 2] No such file or directory: ''

let me know if you can't reproduce the problem, it's always a bit harder with
guis than command line. i should be available on irc, too.

Reproducible: Always
Steps to Reproduce:




just for the record, i'm using a qemu virtual machine here.
Comment 1 Preston Cody (RETIRED) gentoo-dev 2005-08-14 11:39:01 UTC
fixes for these problems are now in CVS.  thanks for the good bug-spots and
please keep testing gli-dialog!
Comment 2 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-24 13:46:31 UTC
Moving to Release Media/Installer.