Characters sent to tty1

Bug #802271 reported by Hernando Torque
82
This bug affects 12 people
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Fix Released
Critical
Robert Ancell
Oneiric
Fix Released
Critical
Robert Ancell

Bug Description

Every now and then I see some characters sent to tty1 (see attached screenshot). It even seems to try to login... I'm getting this on two different up-to-date Oneiric systems.

I'm not sure if that's caused by lightdm but that's my best guess.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lightdm 0.4.0-0ubuntu5
Uname: Linux 3.0.0-rc1-light x86_64
Architecture: amd64
Date: Sun Jun 26 22:42:37 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110112)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.utf8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: lightdm
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Hernando Torque (htorque) wrote :
description: updated
description: updated
Revision history for this message
Hernando Torque (htorque) wrote :
Steve Langasek (vorlon)
Changed in lightdm (Ubuntu):
importance: Undecided → Critical
tags: added: i386
Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

In duplicate bug 798509, some characters (on a US/English keyboard, the 2 key in the alphanumeric portion of the keyboard, and both enter keys) trigger the X server to terminate (so it is not just that characters are sent to tty1--the X server also quits, popping the user back to a virtual console on tty1). Is that happening here as well? (Duplicate bug 798509 contains details about the specific conditions under which those keys do and do not trigger X server termination.)

Duplicate bug 803559 also seems to suggest that the "crash" occurs when the enter key is pressed, though I extrapolate in saying so.

Revision history for this message
jerrylamos (jerrylamos) wrote :

amd64 30 June Daily Build same error, X window crash.
(This is on Aspire 5253 notebook, also failed with i386 this morning on Aspire one netbook.)
Boot
BFB select terminal
df
enter
X windows quit back to command line

Tried to do ubuntu-bug xorg and got:

ubuntu@ubuntu:~$ ubuntu-bug xorg
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 25, in <module>
    import apport
ImportError: No module named apport
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 59, in apport_excepthook
    from apport.fileutils import likely_packaged
ImportError: No module named apport.fileutils

Original exception was:
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 25, in <module>
    import apport
ImportError: No module named apport
ubuntu@ubuntu:~$

Jerry

Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

@jerrylamos
Does it *only* occur when you type df and press enter, or does it occur **every time you press enter, no matter what** (as has been the case in all of my testing)? Does it occur when you press the 2 key on the alphanumeric portion (i.e., not the number pad) of the keyboard, as well (as has also been the case in all of my testing)?

Revision history for this message
Steve Langasek (vorlon) wrote :

Analysis with Robert:

- currently lightdm tries to start on the active VT. It shouldn't do this; if plymouth is running it should use the active VT (after proper hand-off), otherwise it should take the next available
- /etc/init/plymouth-stop.conf doesn't special-case lightdm currently, so plymouth is *never* running when lightdm starts - so we never get the hand off. As a result, we always have a race condition between the VT switch on plymouth exit, and the lightdm start-up.

Changed in lightdm (Ubuntu Oneiric):
status: New → Triaged
Revision history for this message
jerrylamos (jerrylamos) wrote :

1 July Daily Build live on boot, Acer Aspire one netbook
Ctrl-Alt-t terminal session:
df<enter>
killed Xorg. I don't know lightdm or plymouth code but it does appear to be consistent with the comment #6 above about a race condition.

Difference is 1 July Xorg crashed then ubuntu immediately restarted X back to a login screen. I did not have to manually restart X.

Subsequent df<enter> no problem.

Jerry

Revision history for this message
Martin Pitt (pitti) wrote :

This also happens on the live system, the first session seems to start on a VT which also has a getty on it (presumably VT1). At first startup, lightdm needs to ensure that it starts on a vt >= 7, i. e. it cannot rely on X.org's "grab the next free terminal" detection.

The alternative would be to not run a getty on vt1.

I'm not 100% sure if oneiric's plymouth requires a different handling, but the above is what we did in natty and earlier for gdm:

http://bazaar.launchpad.net/~ubuntu-desktop/gdm/ubuntu/view/head:/debian/patches/06_first_vt.patch

Changed in lightdm (Ubuntu Oneiric):
assignee: nobody → Robert Ancell (robert-ancell)
milestone: none → oneiric-alpha-2
Revision history for this message
Hernando Torque (htorque) wrote :

Setting 'vt=7' in the '[seat-0]' portion of '/etc/lightdm/lightdm.conf' seems to have stopped the crashing (which I got from time to time - NOT always - using the '2' and 'Enter' key).

Revision history for this message
Eric Appleman (erappleman) wrote :

I can "crash" and "uncrash" X with Alt+Left/Right on an Oneiric liveusb with ubiquity-dm (not pressing anything during live-cd boot).

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I think this is fixed with 0.4.2-0ubuntu1, but as Plymouth generally doesn't work I'm not going to close this until someone confirms it.

Revision history for this message
Martin Pitt (pitti) wrote :

I confirm that the new version fixes this. lightdm now starts X at vt7, as it should. Thanks!

Changed in lightdm (Ubuntu Oneiric):
status: Triaged → Fix Released
Revision history for this message
IC Raibow (icrbow) wrote :

Looks like it! No crashes today, yay!

Revision history for this message
Gunnar (ubuntu-hwbqs6tox) wrote :

Strange. Fix released and it crashes for me hitting ENTER at the login prompt (running 11.10)

I added vt=7 to /etc/lightdm/lightdm.conf as below

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
vt=7

and it stops crashing when hitting ENTER at the login promtpt. Nice!
First question: Fix Released, but what is acctually fixed?

Second question: it crashes if I start a terminal and press ENTER.
Is there something else I need to fix?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.