public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11432] getsysstat.c returns erroneous results
[not found] <bug-11432-131@http.sourceware.org/bugzilla/>
@ 2014-06-30 18:23 ` fweimer at redhat dot com
0 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30 18:23 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=11432
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/11432] getsysstat.c returns erroneous results
2010-03-25 16:02 [Bug libc/11432] New: " rsa at us dot ibm dot com
2010-03-25 16:05 ` [Bug libc/11432] " rsa at us dot ibm dot com
2010-03-25 16:10 ` rsa at us dot ibm dot com
@ 2010-04-04 2:21 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2010-04-04 2:21 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2010-04-04 02:21 -------
I've checked in the change.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11432
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/11432] getsysstat.c returns erroneous results
2010-03-25 16:02 [Bug libc/11432] New: " rsa at us dot ibm dot com
2010-03-25 16:05 ` [Bug libc/11432] " rsa at us dot ibm dot com
@ 2010-03-25 16:10 ` rsa at us dot ibm dot com
2010-04-04 2:21 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: rsa at us dot ibm dot com @ 2010-03-25 16:10 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From rsa at us dot ibm dot com 2010-03-25 16:09 -------
Created an attachment (id=4681)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4681&action=view)
patch to remove erroneous else block from next_line() function.
This patch removes the erroneous else block. It has been shown in testing to
eliminate the error and the test returns the correct number of CPUs.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11432
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/11432] getsysstat.c returns erroneous results
2010-03-25 16:02 [Bug libc/11432] New: " rsa at us dot ibm dot com
@ 2010-03-25 16:05 ` rsa at us dot ibm dot com
2010-03-25 16:10 ` rsa at us dot ibm dot com
2010-04-04 2:21 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: rsa at us dot ibm dot com @ 2010-03-25 16:05 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From rsa at us dot ibm dot com 2010-03-25 16:04 -------
Created an attachment (id=4680)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4680&action=view)
example /proc/stat file which shows the error
The following test case:
#include<stdio.h>
#include<sys/sysinfo.h>
int main()
{
int lcpus=get_nprocs();
printf("logical cpus = %d\n",lcpus);
return 0;
}
Can be run against the attached /proc/stat file which is known to reproduce the
problem:
This stat file can be used with the testcase by bind mounting it over
/proc/stat:
cp stat /dev/shm/stat
mount --bind /dev/shm/stat /proc/stat
When run this should show:
logical cpus = 1024
since cpu1024 is high cpu number. But it shows something like (which may vary
based on the size of the 'buffer' in the next_line algorithm):
logical cpus = 137
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11432
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-30 18:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11432-131@http.sourceware.org/bugzilla/>
2014-06-30 18:23 ` [Bug libc/11432] getsysstat.c returns erroneous results fweimer at redhat dot com
2010-03-25 16:02 [Bug libc/11432] New: " rsa at us dot ibm dot com
2010-03-25 16:05 ` [Bug libc/11432] " rsa at us dot ibm dot com
2010-03-25 16:10 ` rsa at us dot ibm dot com
2010-04-04 2:21 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).