Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385305 - sys-apps/util-linux-2.20: dmesg command stops before two consecutive 'newline' in the kernel log buffer
Summary: sys-apps/util-linux-2.20: dmesg command stops before two consecutive 'newline...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-02 03:52 UTC by Maxime Gervais
Modified: 2011-10-17 22:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.11 KB, text/plain)
2011-10-02 03:53 UTC, Maxime Gervais
Details
Test module (nn.c,316 bytes, text/plain)
2011-10-02 03:54 UTC, Maxime Gervais
Details
Makefile for test module (Makefile,165 bytes, text/plain)
2011-10-02 03:57 UTC, Maxime Gervais
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Gervais 2011-10-02 03:52:17 UTC
When I run the dmesg command, the output stops (no error, output code 0) after these lines :

md/raid0:md127: md_size is 2500516864 sectors. 
******* md127 configuration ********* 
zone0=[sda1/sdb1/] 
       zone offset=0kb device offset=0kb size=1250258432kb 
********************************** 

This is caused by the following line in the kernel tree (drivers/md/raid0.c:77) that has two consecutive '\n' at the end:
printk(KERN_INFO "**********************************\n\n");



- Raw dmesg output (dmesg -r) works fine.
- sys-apps/util-linux-2.19.1-r1 works fine.

Reproducible: Always

Steps to Reproduce:
1. Clear the kernel log buffer (dmesg -C) 
1. Load the test module
2. Run dmesg
Actual Results:  
dmesg output:
foo

Expected Results:  
dmesg output:
foo

bar

Kernel: sys-kernel/gentoo-sources-3.0.4-r1
Comment 1 Maxime Gervais 2011-10-02 03:53:57 UTC
Created attachment 288513 [details]
emerge --info
Comment 2 Maxime Gervais 2011-10-02 03:54:48 UTC
Created attachment 288515 [details]
Test module
Comment 3 Maxime Gervais 2011-10-02 03:57:02 UTC
Created attachment 288517 [details]
Makefile for test module
Comment 4 Mads 2011-10-02 14:51:43 UTC
I've also noticed that dmesg after a while stops showing new output after updating util-linux... nice that you found out what was causing it.
Comment 5 SpanKY gentoo-dev 2011-10-02 18:34:11 UTC
easy to reproduce by doing:
# dmesg -c >/dev/null
# printf 'one\ntwo\n\nthree\nfour\n' > /dev/kmsg
# dmesg
Comment 6 SpanKY gentoo-dev 2011-10-03 02:44:41 UTC
latest upstream dmesg has this already fixed