Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230011 - <=sys-apps/openrc-0.2.5 output scrambled when using rc_parallel="YES"
Summary: <=sys-apps/openrc-0.2.5 output scrambled when using rc_parallel="YES"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-29 12:28 UTC by Stephan Friedrichs
Modified: 2008-10-07 14:23 UTC (History)
1 user (show)

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 Stephan Friedrichs 2008-06-29 12:28:07 UTC
I'm using openrc-0.2.5 (but the error also occured for earlier versions) in combination with

rc_parallal="YES"

in /etc/rc.conf. During boot, the output (boot console output as well as /var/log/rc.log) sometimes gets scrambled like this (regard the line after syslog-ng):

dbus          | * Starting D-BUS system messagebus ...
netmount      | * Mounting network filesystems ...
hddtemp       | * Starting hddtemp daemon ...
 [ ok ]
syslog-ng     | * Starting syslog-ng ...
 4m[G [32 34m[km o  4m]
[1m]
avahi-daemon  | * Starting avahi-daemon ...
 [ ok ]
hald          | * Starting Hardware Abstraction Layer daemon ...
anacron       | * Running anacron ...
ntp-client    | * Setting clock via the NTP client 'ntpdate' ...
 [ ok ]
 [ ok ]

The init scripts mixing their output is of course expected behaviour when parallely booting, but each line should still be intact, right?

I've been observing this for a few weeks now and it's fairly unpredictable when the scrambling occurs, or if it occurs at all, which is of course a typical symptom for a bug in parallelisation. I'm running a dual core, so there should actually be non-pseudo parallelism.

Reproducible: Sometimes

Steps to Reproduce:
1. configure rc_parallel="YES" on a multicore system
2. boot

Actual Results:  
Boot output (sometimes) gets scrambled on the console as well as in /var/log/rc.log

Expected Results:  
Linewise, not totally scrambled output :)

* sys-apps/openrc [R 0.2.5]
    Reasons: sys-apps/baselayout-2.0.0:0::installed
    -debug ncurses pam unicode kernel: (-FreeBSD) (linux)

on ~amd64 intel dual core:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"

I'll leave the severity on 'normal', as I don't know if the output is the only thing that gets messed up.
Comment 1 Roy Marples 2008-06-29 16:37:29 UTC
(In reply to comment #0)
> The init scripts mixing their output is of course expected behaviour when
> parallely booting, but each line should still be intact, right?

There is no guarantee that is the case as the syntax is like so

ebegin "some message"
some_command
eend $? "some_command failed"

Those are 3 seperate commands and all are fighting for console. The tricky one is eend as it's logic is "go up one line and then to the rightmost column. Then step back for the text, finally print the text".

If we have a display daemon instead of dumping to console via a spinlock we may be able to fix this. But don't expect that anytime soon - unless someone else wants to code it :)
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 14:23:42 UTC
Fixed in 0.3.0