[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#234513: debian-installer: segfault when starting kbd-chooser



On Tue, Feb 24, 2004 at 11:48:16AM +0100, Thomas Arendsen Hein wrote:
> Package: debian-installer
> Version: N/A; reported 2004-02-24
> Severity: important
> 
> Installation using sarge-powerpc-netinst.iso downloaded from
> http://gluck.debian.org/cdimage/testing/sid_d-i/powerpc/20040223/
> can't start kbd-chooser.
> 
> When starting kbd-chooser on the command line on tty2 and proceeding
> with <enter> multiple times, there is a segfault after 'GET
> console-tools/archs'

I'm not really in a position to check this in the d-i environment, but I
can reproduce it on powerpc by just hitting enter at kbd-chooser in a
normal Debian system (although the segfault is after 'SET
console-tools/archs', not 'GET console-tools/archs').

The segfault is here, on line 627 of kbd-chooser.c in version 0.42:

        return (preferred->present == TRUE) ? "low" : "medium";

The code above this includes:

        if (((preferred == NULL) || (preferred->present == UNKNOWN))
            && check_if_serial_console ()) {

... and:

        mydebconf_default_set ("console-tools/archs",
                              preferred ? preferred->description : none);

... so it looks like there's simply a (preferred == NULL) check missing
from line 627? I don't know what the sense should be.

In addition to this, is it a bad sign that no preferred keyboard seems
to be found?

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: