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

Re: [console-data] upgrade problem in preconfigure


Bug found and disabled in upload.

unicode_start is buggy; while fine on a VT, its bad news in X, (sounds
like screen, too). Run as a normal user under X, it gives appropriate
sounding error messages ( "is_in_UTF8_mode: Inappropriate ioctl for
device") for all the wrong reasons: run as root, kbd_mode -u trashes the
console under X (a switch to a VT & back restores), while in vt-is-UTF8
get_console_fd() picks the wrong console device in too many

unicode_start in the kbd package is also broken, for the same reasons.

I'm working on fixing these now; in particular I need to sort out a
reliable method of determining when we're at a real VT, and not
X/screen/ ssh, etc. Until then, calling unicode_start is disabled in the
/etc/init.d/console-screen.sh conffile. While its safe to call it at
boot-time, (ie not under X), it was killing the console-tools install in
postinst, in certain circumstances. So, you may need to do
unicode_start by hand for the moment.

Thanks to those who sent in the reports, Particularly Daniel, and sorry
about that.


On Wed, 2002-12-11 at 17:58, Daniel Burrows wrote:
> On Fri, Dec 06, 2002 at 11:29:37PM +0000, Alastair McKinstry <mckinstry@debian.org> was heard to say:
> > Oops. Yes, I did. I don't understand why it should hang; I'll log it as
> > a bug and investigate. Might it be due to what you installed next? (I
> > can't reproduce it yet; any further info would help).
>   console-tools (or part of that suite of stuff, anyway) just hung on me
> while doing an upgrade.  Here's the relevant part of pstree:
>      |
>      |-xterm---zsh---aptitude---dpkg---console-tools.p---invoke-rc.d---console-screen.---unicode_start---vt-is-UTF8
>   Here are ps lines for those processes:
> root      3830  0.0  0.3  2472 1208 pts/3    SN   12:37   0:00 /bin/sh /var/lib/dpkg/info/console-tools.postinst configure 1:0.2.3dbs-26
> root      3837  0.0  0.3  2532 1324 pts/3    SN   12:37   0:00 /bin/sh /usr/sbin/invoke-rc.d console-screen.sh start
> root      3841  0.0  0.3  2532 1320 pts/3    SN   12:37   0:00 /bin/sh /etc/init.d/console-screen.sh start
> root      3854  0.0  0.3  2460 1184 pts/3    SN   12:37   0:00 /bin/sh /usr/bin/unicode_start
> root      3856  0.0  0.1  1624  692 pts/3    SN   12:37   0:00 /usr/bin/vt-is-UTF8 --quiet
>   It might be relevant that I'm running the upgrade remotely on an
> ssh-tunneled xterm.
>   Daniel
> -- 
> /-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
> |          Whoever fights monsters should see to it that in the               |
> |          process he does not become a monster.  And when you look           |
> |          into an abyss, the abyss also looks into you.                      |
> |           -- Friedrich Nietzsche                                            |
> \---------------------- A duck! -- http://www.python.org ---------------------/
Alastair McKinstry <mckinstry@debian.org>
GPG Key fingerprint = 9E64 E714 8E08 81F9 F3DC  1020 FA8E 3790 9051 38F4

He that would make his own liberty secure must guard even his enemy from
oppression; for if he violates this duty he establishes a precedent that
will reach to himself.

- --Thomas Paine

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: