Bug 711192 - "Non-standard uts for running kernel" with linux 3.0
Summary: "Non-standard uts for running kernel" with linux 3.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: procps
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaromír Cápík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-06 18:55 UTC by Matthew Miller
Modified: 2016-02-01 01:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-21 16:42:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch for handling the kernel3 version string properly (986 bytes, patch)
2011-06-10 16:06 UTC, Jaromír Cápík
no flags Details | Diff

Description Matthew Miller 2011-06-06 18:55:43 UTC
Description of problem:


Version-Release number of selected component (if applicable):

procps-3.2.8-21.20110302git.fc16.x86_64
kernel-3.0-0.rc1.git0.2.fc16.x86_64

How reproducible:

always

Steps to Reproduce:
1. run uptime or ps
  
Actual results:

Non-standard uts for running kernel:
release 3.0-0.rc1.git0.2.fc16.x86_64=3.0.0 gives version code 196608
14:54:24 up 10 min,  6 users,  load average: 4.26, 3.96, 2.27



Expected results:

Same thing without the warning

Additional info:

There's an sscanf in proc/version.c which assumes %d.%d.%d for version numbers.

Comment 1 leigh scott 2011-06-09 16:20:10 UTC
Same here

[leigh@main_pc ~]$ uptime
Non-standard uts for running kernel:
release 3.0-0.rc2.git0.1.el6.x86_64=3.0.0 gives version code 196608
 17:18:12 up  2:31,  3 users,  load average: 0.32, 0.13, 0.08
[leigh@main_pc ~]$

Comment 2 leigh scott 2011-06-09 16:23:40 UTC
(In reply to comment #0)
> Description of problem:
> 
> 
> Version-Release number of selected component (if applicable):
> 
> procps-3.2.8-21.20110302git.fc16.x86_64
> kernel-3.0-0.rc1.git0.2.fc16.x86_64
> 
> How reproducible:
> 
> always
> 
> Steps to Reproduce:
> 1. run uptime or ps
> 
> Actual results:
> 
> Non-standard uts for running kernel:
> release 3.0-0.rc1.git0.2.fc16.x86_64=3.0.0 gives version code 196608
> 14:54:24 up 10 min,  6 users,  load average: 4.26, 3.96, 2.27
> 
> 
> 
> Expected results:
> 
> Same thing without the warning
> 
> Additional info:
> 
> There's an sscanf in proc/version.c which assumes %d.%d.%d for version numbers.

Are you sure you have reported this against the right package?, I see it as a kernel issue.

Comment 3 Matthew Miller 2011-06-09 17:31:02 UTC
(In reply to comment #2)
> Are you sure you have reported this against the right package?, I see it as a
> kernel issue.

I'm positive. The problem is that the utilities make the erroneous assumption that the kernel version always matches "%d.%d.%d" — three digits separated by dots. But the kernel is now just "3.0".

You could argue that it'd be more polite of the kernel to just claim to be 3.0.0, but as far as I can see Linus Torvalds is against that. (Part of the _point_ of the change was to reduce the number of digits.)

Comment 4 leigh scott 2011-06-10 08:32:30 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Are you sure you have reported this against the right package?, I see it as a
> > kernel issue.
> 
> I'm positive. The problem is that the utilities make the erroneous assumption
> that the kernel version always matches "%d.%d.%d" — three digits separated by
> dots. But the kernel is now just "3.0".
> 
> You could argue that it'd be more polite of the kernel to just claim to be
> 3.0.0, but as far as I can see Linus Torvalds is against that. (Part of the
> _point_ of the change was to reduce the number of digits.)

Thank you for the explanation.

Comment 5 Jaromír Cápík 2011-06-10 16:06:56 UTC
Created attachment 504153 [details]
Patch for handling the kernel3 version string properly

Hello guys.

I've just built the procps-3.2.8-22.20110302git.fc16 containing the attached patch for proper kernel3 version string handling.

Please, test it and let me know.

Thanks in advance,
Jaromir.

Comment 6 leigh scott 2011-06-11 10:18:04 UTC
(In reply to comment #5)
> Created attachment 504153 [details]
> Patch for handling the kernel3 version string properly
> 
> Hello guys.
> 
> I've just built the procps-3.2.8-22.20110302git.fc16 containing the attached
> patch for proper kernel3 version string handling.
> 
> Please, test it and let me know.
> 
> Thanks in advance,
> Jaromir.

It fixes the issue here


[root@main_pc leigh]# uptime
 11:16:44 up 1 day, 20:29,  5 users,  load average: 0.05, 0.03, 0.05
[root@main_pc leigh]# uname -r
3.0-0.rc2.git0.1.el6.x86_64
[root@main_pc leigh]#

Comment 7 Orion Poplawski 2011-06-20 22:06:27 UTC
3.2.8-22 is missing from rawhide.  I don't see any koji builds.

Comment 8 gene c 2011-06-21 12:41:21 UTC
I can also confirm it fixes the issue for me.


uname -r
3.0-0.rc3.git5.1.fc16.x86_64

procps-3.2.8-22.20110302git.fc16.x86_64

Comment 9 Orion Poplawski 2011-06-21 16:42:13 UTC
Built in rawhide.


Note You need to log in before you can comment on or make changes to this bug.