usplash screen corruption on some init.d scripts

Bug #291543 reported by Matthias Andree
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lsb (Ubuntu)
Fix Released
Low
Kees Cook

Bug Description

Binary package hint: usplash

When using usplash-0.5.25 on Kubuntu 8.10 (also observed in Ubuntu 8.04), some init scripts create output that yields rather long lines. However, only part of these scrolled area is scrolled up and things look rather ugly, since the message is torn apart and the left part (example below) scrolls up, but the right part remains fixed on the screen.

Apparently the scrolled area for texts in usplash screens is smaller than the printable area.

I'm booting with vga=791, hence I get a VESA 1024x768x16 framebuffer.

To reproduce, install openvpn, set AUTOSTART=none in /etc/default/openvpn and reboot with usplash.
You'll probably observe that /etc/init.d/openvpn logs the start, and then a warning (shown below).

On a usplash screen, the output looks like this:

Starting virtual private network daemon(s)... Autostart disabled, no VPN will be started.
(the right part starts aligned with the OK)

When further messages are printed, the right hand side is ripped apart and roughly the part "Starting virtual private network daemon(s)... Autostart di" scrolls up and "sabled, no VPN will be started." remains static to the right hand side of new lines scrolling by.

Note that there is some magic in /etc/lsb-base-logging.sh to trigger line wraps, which might not be used on uscreen output, depending on if they allow fancy output, and depending on if their TERM variable reports xenl, i. e. if "tput xenl" exits with a 0 or non-0 exit code. It might be related or help debugging to look at this too.

I see three alternatives to fix this:
1- (preferred) make sure that the whole printable area is scrolled
2- make sure that long lines wrap at the end (right hand side) of the scrolled region
3- make sure that the line-wrapping magic around tput xenl from /etc/lsb-base-logging.sh works for usplash (if possible)

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: openafs
Package: usplash 0.5.25
ProcEnviron:
 LANGUAGE=de
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/username/mantis/mos-0.9.5/tools/bin
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: usplash
Uname: Linux 2.6.27-7-generic i686

Tags: apport-bug

Related branches

Revision history for this message
Matthias Andree (matthias-andree) wrote :
Revision history for this message
Matthias Andree (matthias-andree) wrote :
Kees Cook (kees)
Changed in usplash:
assignee: nobody → kees
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lsb - 3.2-20ubuntu3

---------------
lsb (3.2-20ubuntu3) jaunty; urgency=low

  * lsb-base-logging-ubuntu.sh: change log_{success,warning,failure}_msg()
    to use usplash_write "TEXT" instead of "STATUS" to avoid unreadable
    line-wrapping when using usplash in verbose mode (LP: #291543).

 -- Kees Cook <email address hidden> Sat, 07 Feb 2009 14:22:19 -0800

Changed in lsb:
status: Fix Committed → Fix Released
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.